* firewall.nix: Only flush/delete the chains created by us.

svn path=/nixos/trunk/; revision=26271
This commit is contained in:
Eelco Dolstra 2011-03-11 11:53:18 +00:00
parent f672aa71bf
commit ab0ce6734b
1 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,8 @@ in
ip6tables "$@" ip6tables "$@"
} }
ip46tables -F ip46tables -F INPUT
ip46tables -F FW_REFUSE || true
ip46tables -X # flush unused chains ip46tables -X # flush unused chains
ip46tables -P INPUT DROP ip46tables -P INPUT DROP
@ -179,9 +180,9 @@ in
postStop = postStop =
'' ''
iptables -F iptables -F INPUT
iptables -P INPUT ACCEPT iptables -P INPUT ACCEPT
ip6tables -F ip6tables -F INPUT
ip6tables -P INPUT ACCEPT ip6tables -P INPUT ACCEPT
''; '';
}; };