Compare commits
1 Commits
448e4dfda8
...
c8348b49d8
Author | SHA1 | Date | |
---|---|---|---|
c8348b49d8 |
@ -43,7 +43,7 @@
|
|||||||
1194 # Wireguard
|
1194 # Wireguard
|
||||||
];
|
];
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -57,7 +57,7 @@
|
|||||||
# Wireguard setup
|
# Wireguard setup
|
||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
ips = [ "10.9.0.1/24" ];
|
ips = [ "10.8.0.1/24" ];
|
||||||
listenPort = 1194;
|
listenPort = 1194;
|
||||||
privateKeyFile = "/home/coace/.wg/keys/privatekey";
|
privateKeyFile = "/home/coace/.wg/keys/privatekey";
|
||||||
peers = [
|
peers = [
|
||||||
@ -65,7 +65,7 @@
|
|||||||
{
|
{
|
||||||
# Placeholder public key
|
# Placeholder public key
|
||||||
publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38=";
|
publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38=";
|
||||||
allowedIPs = [ "10.9.0.2/32" ];
|
allowedIPs = [ "10.8.0.2/32" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user