netbird: change STUN to port 3479, add trustedHTTPProxies

This commit is contained in:
2026-07-21 21:18:20 -05:00
parent f42fd8684e
commit fcaa023730
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
networking.firewall.allowedTCPPorts = [ 6443 80 443 33073 ]; networking.firewall.allowedTCPPorts = [ 6443 80 443 33073 ];
networking.firewall.allowedUDPPorts = [ 3478 ]; networking.firewall.allowedUDPPorts = [ 3479 ];
services.k3s = { services.k3s = {
enable = true; enable = true;
+6 -1
View File
@@ -12,6 +12,8 @@ data:
healthcheckAddress: ":9000" healthcheckAddress: ":9000"
logLevel: "info" logLevel: "info"
logFile: "console" logFile: "console"
stunPorts:
- 3479
tls: tls:
certFile: "" certFile: ""
keyFile: "" keyFile: ""
@@ -21,7 +23,7 @@ data:
domains: [] domains: []
email: "" email: ""
awsRoute53: false awsRoute53: false
authSecret: "CHANGE_ME_openssl_rand_-hex_32" authSecret: "182c13eec94ba6ef89ce8f3e33b4694b051fe4b0bf6d2c9188f738d1c000b6d7"
dataDir: "/var/lib/netbird/" dataDir: "/var/lib/netbird/"
disableAnonymousMetrics: false disableAnonymousMetrics: false
disableGeoliteUpdate: false disableGeoliteUpdate: false
@@ -38,3 +40,6 @@ data:
engine: "sqlite" engine: "sqlite"
dsn: "" dsn: ""
encryptionKey: "" encryptionKey: ""
reverseProxy:
trustedHTTPProxies:
- "10.0.1.45/32"
+3 -3
View File
@@ -19,7 +19,7 @@ spec:
args: ["--config", "/etc/netbird/config.yaml"] args: ["--config", "/etc/netbird/config.yaml"]
ports: ports:
- containerPort: 80 - containerPort: 80
- containerPort: 3478 - containerPort: 3479
protocol: UDP protocol: UDP
- containerPort: 33073 - containerPort: 33073
volumeMounts: volumeMounts:
@@ -63,6 +63,6 @@ spec:
port: 33073 port: 33073
targetPort: 33073 targetPort: 33073
- name: stun - name: stun
port: 3478 port: 3479
targetPort: 3478 targetPort: 3479
protocol: UDP protocol: UDP