networking.firewall.trustedInterfaces

NixOS option

Traffic coming in from these interfaces will be accepted unconditionally. Traffic from the loopback (lo) interface will always be accepted.

type: list of string
Default
[ ]
Example
[
  "enp0s2"
]
declared in: nixos/modules/services/networking/firewall.nixView source on NixOS/nixpkgs →