networking.nat.extraCommands
NixOS option
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
declared in: nixos/modules/services/networking/nat-iptables.nixView source on NixOS/nixpkgs →"iptables -A INPUT -p icmp -j ACCEPT"