mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
* firewall.nix: Only flush/delete the chains created by us.
svn path=/nixos/trunk/; revision=26271
This commit is contained in:
parent
f672aa71bf
commit
ab0ce6734b
@ -116,7 +116,8 @@ in
|
||||
ip6tables "$@"
|
||||
}
|
||||
|
||||
ip46tables -F
|
||||
ip46tables -F INPUT
|
||||
ip46tables -F FW_REFUSE || true
|
||||
ip46tables -X # flush unused chains
|
||||
ip46tables -P INPUT DROP
|
||||
|
||||
@ -179,9 +180,9 @@ in
|
||||
|
||||
postStop =
|
||||
''
|
||||
iptables -F
|
||||
iptables -F INPUT
|
||||
iptables -P INPUT ACCEPT
|
||||
ip6tables -F
|
||||
ip6tables -F INPUT
|
||||
ip6tables -P INPUT ACCEPT
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user