MyNixOS website logo
option

nix.firewall.allowedTCPPorts

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

Declarations
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"
]