Files
NixConfig/hosts/darkgui-vps/config/self-host/firewall.nix
T
2026-04-19 15:17:37 -03:00

32 lines
437 B
Nix

{
config,
lib,
inputs,
pkgs,
...
}:
{
# Open ports in the firewall.
networking.firewall = {
enable = false;
allowedTCPPorts = [
80
443
];
allowedUDPPortRanges = [
{
from = 47998;
to = 48000;
}
{
from = 48002;
to = 48010;
}
];
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}