From c025f420d0145e5a252171a5ab558c3feb7a6cb5 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 7 Aug 2025 09:51:12 -0500 Subject: [PATCH] port change --- system-config/services/containers/netbird/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/system-config/services/containers/netbird/default.nix b/system-config/services/containers/netbird/default.nix index fe71c70..25d2c97 100644 --- a/system-config/services/containers/netbird/default.nix +++ b/system-config/services/containers/netbird/default.nix @@ -22,8 +22,7 @@ }; networking.firewall = { - allowedTCPPorts = [ 33080 ]; - allowedUDPPorts = [ 3478 33073 ]; + allowedUDPPorts = [ 3478 ]; 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 = [ @@ -197,7 +196,7 @@ user = "netbird"; 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 = { @@ -219,13 +218,13 @@ script = '' cat ''${CREDENTIALS_DIRECTORY}/coturnPass > /etc/netbird/coturnPass - ''; + ''; }; networking.firewall = { allowedTCPPorts = [ 80 ]; allowedUDPPorts = [ 3478 ]; - allowedUDPPortRanges = [{ from = 49152; to = 54152; }]; + allowedUDPPortRanges = [{ from = 51100; to = 56100; }]; }; system.stateVersion = "25.05";