ativar firewall

This commit is contained in:
2026-05-11 19:11:02 -03:00
parent 18895f34ca
commit d4872894ea
2 changed files with 6 additions and 25 deletions
@@ -9,16 +9,17 @@
# Open ports in the firewall.
networking.firewall = {
enable = false;
enable = true;
allowedTCPPorts = [
22
80
81
443
3000
5335
7777
];
allowedTCPPorts = [
5335
7777
9000
11000
];
trustedInterfaces = [ "tailscale0" "docker0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
@@ -16,26 +16,6 @@
};
};
# 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 ];
};
boot.kernel.sysctl = {
"net.ipv4.ip_unprivileged_port_start" = 53;