port change

This commit is contained in:
2025-08-07 09:51:12 -05:00
parent d39d4bbeec
commit c025f420d0

View File

@@ -22,8 +22,7 @@
}; };
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ 33080 ]; allowedUDPPorts = [ 3478 ];
allowedUDPPorts = [ 3478 33073 ];
allowedUDPPortRanges = [{ from = 49152; to = 54152; }]; allowedUDPPortRanges = [{ from = 49152; to = 54152; }];
}; };
@@ -45,7 +44,7 @@
} }
] ++ map (x: { hostPort = x; containerPort = x; protocol = "udp"; }) (builtins.genList (y: 49152 + y) (54152 - 49152)); ] ++ map (x: { hostPort = x; containerPort = x; protocol = "udp"; }) (builtins.genList (y: 51100 + y) (56100 - 51100));
extraFlags = [ extraFlags = [
@@ -197,7 +196,7 @@
user = "netbird"; user = "netbird";
passwordFile = "/etc/netbird/coturnPass"; passwordFile = "/etc/netbird/coturnPass";
openPorts = map (x: x) (builtins.genList (y: 49152 + y) (54152 - 49152)); openPorts = map (x: x) (builtins.genList (y: 51100 + y) (56100 - 51100));
}; };
signal = { signal = {
@@ -219,13 +218,13 @@
script = '' script = ''
cat ''${CREDENTIALS_DIRECTORY}/coturnPass > /etc/netbird/coturnPass cat ''${CREDENTIALS_DIRECTORY}/coturnPass > /etc/netbird/coturnPass
''; '';
}; };
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ 80 ]; allowedTCPPorts = [ 80 ];
allowedUDPPorts = [ 3478 ]; allowedUDPPorts = [ 3478 ];
allowedUDPPortRanges = [{ from = 49152; to = 54152; }]; allowedUDPPortRanges = [{ from = 51100; to = 56100; }];
}; };
system.stateVersion = "25.05"; system.stateVersion = "25.05";