nix/system/Firewall.nix

23 lines
480 B
Nix
Raw Normal View History

2024-12-08 22:25:43 +03:00
{
lib,
...
}: {
networking.firewall = {
enable = true;
# NOTE: Configure manually with `extraCommands`.
allowedTCPPortRanges = lib.mkForce [ ];
allowedTCPPorts = lib.mkForce [ ];
allowedUDPPortRanges = lib.mkForce [ ];
allowedUDPPorts = lib.mkForce [ ];
allowPing = true;
rejectPackets = false; # Drop.
logRefusedConnections = false;
logRefusedPackets = false;
logRefusedUnicastsOnly = true;
logReversePathDrops = false;
};
}