Fix firewall for guest network
This commit is contained in:
parent
57eb487427
commit
b3df6d4032
@ -115,9 +115,9 @@
|
|||||||
networking.firewall.allowedUDPPorts = [ 60001 ];
|
networking.firewall.allowedUDPPorts = [ 60001 ];
|
||||||
|
|
||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
iptables -A FORWARD -i enp1s0.202 -o enp1s0.102 -j ACCEPT
|
iptables -A FORWARD -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT
|
||||||
iptables -A FORWARD -i enp1s0.202 -j DROP
|
iptables -A FORWARD -i enp1s0.202 -j DROP
|
||||||
iptables -A FORWARD -i enp1s0.102 -o enp1s0.202 -j ACCEPT
|
iptables -A FORWARD -i ppp-ntvdsl -o enp1s0.202 -j ACCEPT
|
||||||
iptables -A FORWARD -o enp1s0.202 -j DROP
|
iptables -A FORWARD -o enp1s0.202 -j DROP
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user