forked from pub-solar/os
dumpyourvms: update vpn
This commit is contained in:
parent
58b6b7f0ca
commit
4de6cd9641
|
@ -8,13 +8,13 @@
|
||||||
wireguard.enable = true;
|
wireguard.enable = true;
|
||||||
wg-quick.interfaces = {
|
wg-quick.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
address = [ "5.0.0.6/32" ];
|
address = [ "10.8.8.6/32" ];
|
||||||
privateKeyFile = "/etc/wireguard/wg0.privatekey";
|
privateKeyFile = "/etc/wireguard/wg0.privatekey";
|
||||||
|
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = "l0DJLicCrcrixNP6zAWTXNSEaNM2jML253BXEZ1KpiU=";
|
publicKey = "l0DJLicCrcrixNP6zAWTXNSEaNM2jML253BXEZ1KpiU=";
|
||||||
allowedIPs = [ "5.0.0.16/32" "10.0.0.0/24" "10.88.88.0/24" ];
|
allowedIPs = [ "10.8.8.16/32" "10.0.0.0/24" "10.88.88.0/24" ];
|
||||||
endpoint = "85.88.23.16:51820";
|
endpoint = "85.88.23.16:51820";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
|
@ -48,5 +48,19 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
wg3 = {
|
||||||
|
address = [ "10.11.11.2/32" ];
|
||||||
|
privateKeyFile = "/etc/wireguard/wg3.privatekey";
|
||||||
|
|
||||||
|
peers = [
|
||||||
|
{
|
||||||
|
publicKey = "7RRgfZSneqAtAHBeI6+aaYLqz9e1jikg/lIK8mhW928=";
|
||||||
|
presharedKeyFile = "/etc/wireguard/wg3.presharedkey";
|
||||||
|
allowedIPs = [ "10.11.11.1/32" "192.168.1.0/24" "10.0.1.0/24" ];
|
||||||
|
endpoint = "94.186.235.148:51820";
|
||||||
|
persistentKeepalive = 16;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue