forked from Deuxfleurs/nixcfg
Fix firewall rule for IGD
This commit is contained in:
parent
178107af0c
commit
1e23341710
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ in
|
|||
# Allow specific hosts access to specific things in the cluster
|
||||
extraCommands = ''
|
||||
# Allow everything from router (usefull for UPnP/IGD)
|
||||
iptables -A INPUT -s 192.168.1.254 -j ACCEPT
|
||||
iptables -A INPUT -s ${cfg.lan_default_gateway} -j ACCEPT
|
||||
|
||||
# Allow docker containers to access all ports
|
||||
iptables -A INPUT -s 172.17.0.0/16 -j ACCEPT
|
||||
|
@ -230,7 +230,7 @@ in
|
|||
|
||||
# When stopping firewall, delete all rules that were configured manually above
|
||||
extraStopCommands = ''
|
||||
iptables -D INPUT -s 192.168.1.254 -j ACCEPT
|
||||
iptables -D INPUT -s ${cfg.lan_default_gateway} -j ACCEPT
|
||||
iptables -D INPUT -s 172.17.0.0/16 -j ACCEPT
|
||||
iptables -D INPUT -s ${cfg.wesher_cluster_prefix}/${toString cfg.wesher_cluster_prefix_length} -j ACCEPT
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue