networking.firewall.extraStopCommands

NixOS option

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 →