1
0

Fix firewall for guest network

This commit is contained in:
clerie 2021-08-29 17:43:04 +02:00
parent 57eb487427
commit b3df6d4032

View File

@ -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
''; '';