Compare commits

..

No commits in common. "d3c201d200518ee04f40e612a7217f0574315df4" and "e1732d12cf14bb4b5e5a9dc499afc0df29538647" have entirely different histories.

1 changed files with 10 additions and 0 deletions

View File

@ -44,6 +44,9 @@
138 # Samba 138 # Samba
1194 # Wireguard 1194 # Wireguard
]; ];
extraCommands = ''
iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
'';
}; };
# Enable NAT for wireguard # Enable NAT for wireguard
@ -62,9 +65,16 @@
peers = [ peers = [
# Amin # Amin
{ {
# Placeholder public key
publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38="; publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38=";
allowedIPs = [ "10.9.0.2/32" ]; allowedIPs = [ "10.9.0.2/32" ];
} }
# Fernando
{
# Placeholder public key
publicKey = "XMkTztU2Y8hw6Fu/2o4Gszij+EmNacvFMXuZyHS1n38=";
allowedIPs = [ "10.9.0.3/32" ];
}
]; ];
}; };
}; };