networking.firewall.extraStopCommands

Additional shell commands executed as part of the firewall shutdown script. These are executed just after the removal of the NixOS input rule, or if the service enters a failed state.

This option only works with the iptables based firewall.

Type
strings concatenated with "\n"
Default
""
Example
"iptables -P INPUT ACCEPT"
Declared
<nixpkgs/nixos/modules/services/networking/firewall-iptables.nix>