networking.firewall.extraStopCommands

NixOS option

strings concatenated with "\n"
Written as a quoted string

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 in: nixos/modules/services/networking/firewall-iptables.nixView source on NixOS/nixpkgs →