MyNixOS website logo
option

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.

Declarations
Type
strings concatenated with "\n"
Default
""
Example
"iptables -P INPUT ACCEPT"