nix.firewall.allowedTCPPorts

TCP ports to which traffic is allowed. Specifying no ports will allow all TCP traffic

Type
list of ((optionally newline-terminated) single-line string or 16 bit unsigned integer; between 0 and 65535 (both inclusive))
Default
[ ]
Example
[
  "http"
  443
  "30000-31000"
]
Declared
<nixpkgs/nixos/modules/services/system/nix-daemon-firewall.nix>