nix.firewall.allowedTCPPorts
NixOS option
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
declared in: nixos/modules/services/system/nix-daemon-firewall.nixView source on NixOS/nixpkgs →[ "http" 443 "30000-31000" ]