forked from mirrors/nixpkgs
firewall service: run stop commands in reload
Do cleanup of user-created additional rules. Of course it'd be much better to just use iptables-{save,restore} for declarative management, but as it's still not there...
This commit is contained in:
parent
e0c9a25588
commit
b81aa02800
|
@ -242,6 +242,9 @@ let
|
|||
|
||||
# Don't allow traffic to leak out until the script has completed
|
||||
ip46tables -A INPUT -j nixos-drop
|
||||
|
||||
${cfg.extraStopCommands}
|
||||
|
||||
if ${startScript}; then
|
||||
ip46tables -D INPUT -j nixos-drop 2>/dev/null || true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue