test
This commit is contained in:
parent
7cfac4e857
commit
25f9674207
1 changed files with 10 additions and 2 deletions
|
@ -49,8 +49,16 @@
|
|||
listenPort = 51820;
|
||||
privateKeyFile = "/run/secrets/wireguard_keys/osaka-vultr-01";
|
||||
|
||||
postSetup = ''${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE'';
|
||||
postShutdown = ''${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE'';
|
||||
postSetup = ''
|
||||
${pkgs.iptables}/bin/iptables -A FORWARD -i %i -j ACCEPT
|
||||
${pkgs.iptables}/bin/iptables -A FORWARD -o %i -j ACCEPT
|
||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
||||
'';
|
||||
postShutdown = ''
|
||||
${pkgs.iptables}/bin/iptables -D FORWARD -i %i -j ACCEPT
|
||||
${pkgs.iptables}/bin/iptables -D FORWARD -o %i -j ACCEPT
|
||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
||||
'';
|
||||
# Testing
|
||||
peers = [
|
||||
{ # nixos-rpi4-03
|
||||
|
|
Loading…
Reference in a new issue