Files
nixos-config/modules/networking/firewall.nix
2025-08-14 12:21:52 +00:00

10 lines
232 B
Nix

{config, ...}: {
networking.firewall = {
enable = true;
trustedInterfaces = ["eno1" "tailscale0"];
allowedUDPPorts = [config.services.tailscale.port];
allowedTCPPorts = [22];
checkReversePath = "loose";
};
}