Test
This commit is contained in:
parent
de39d067dd
commit
2df48d47a7
1 changed files with 2 additions and 2 deletions
|
@ -49,13 +49,13 @@
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
${pkgs.iptables}/bin/iptables -A FORWARD -i %i -j ACCEPT
|
${pkgs.iptables}/bin/iptables -A FORWARD -i %i -j ACCEPT
|
||||||
${pkgs.iptables}/bin/iptables -A FORWARD -o %i -j ACCEPT
|
${pkgs.iptables}/bin/iptables -A FORWARD -o %i -j ACCEPT
|
||||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 -o eno3 -p tcp -m tcp --dport 80 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -d 10.100.0.2 --dport 80 -j MASQUERADE
|
||||||
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
postShutdown = ''
|
postShutdown = ''
|
||||||
${pkgs.iptables}/bin/iptables -D FORWARD -i %i -j ACCEPT
|
${pkgs.iptables}/bin/iptables -D FORWARD -i %i -j ACCEPT
|
||||||
${pkgs.iptables}/bin/iptables -D FORWARD -o %i -j ACCEPT
|
${pkgs.iptables}/bin/iptables -D FORWARD -o %i -j ACCEPT
|
||||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -d 10.100.0.2 -o eno3 -p tcp -m tcp --dport 80 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -d 10.100.0.2 --dport 80 -j MASQUERADE
|
||||||
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
# Testing
|
# Testing
|
||||||
|
|
Loading…
Reference in a new issue