MyNixOS website logo
option

networking.nat.extraCommands

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

This option is incompatible with the nftables based nat module.

Declarations
Type
strings concatenated with "\n"
Default
""
Example
"iptables -A INPUT -p icmp -j ACCEPT"