networking.firewall.rejectPackets

NixOS option

If set, refused packets are rejected rather than dropped (ignored). This means that an ICMP “port unreachable” error message is sent back to the client (or a TCP RST packet in case of an existing connection). Rejecting packets makes port scanning somewhat easier.

type: boolean
Default
false
declared in: nixos/modules/services/networking/firewall.nixView source on NixOS/nixpkgs →