ativar firewall
This commit is contained in:
@@ -9,16 +9,17 @@
|
|||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = false;
|
enable = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
22
|
||||||
80
|
80
|
||||||
|
81
|
||||||
443
|
443
|
||||||
|
3000
|
||||||
5335
|
5335
|
||||||
7777
|
7777
|
||||||
];
|
9000
|
||||||
allowedTCPPorts = [
|
11000
|
||||||
5335
|
|
||||||
7777
|
|
||||||
];
|
];
|
||||||
trustedInterfaces = [ "tailscale0" "docker0" ];
|
trustedInterfaces = [ "tailscale0" "docker0" ];
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
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 = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_unprivileged_port_start" = 53;
|
"net.ipv4.ip_unprivileged_port_start" = 53;
|
||||||
|
|||||||
Reference in New Issue
Block a user