networking.nat.extraCommands

Additional shell commands executed as part of the nat initialisation script.

This option is incompatible with the nftables based nat module.

Type
strings concatenated with "\n"
Default
""
Example
"iptables -A INPUT -p icmp -j ACCEPT"
Declared
<nixpkgs/nixos/modules/services/networking/nat-iptables.nix>