networking.nat.externalIP
NixOS option
The public IP address to which packets from the local network are to be rewritten. If this is left empty, the IP address associated with the external interface will be used. Only connections made to this IP address will be forwarded to the internal network when using forwardPorts.
type: null or stringDefault
null
Example
declared in: nixos/modules/services/networking/nat.nixView source on NixOS/nixpkgs →"203.0.113.123"