Self-hosted Relay Server addresses not shown in netbird status -d #2006

Closed
opened 2025-11-20 06:11:04 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @dadastory on GitHub (Jun 24, 2025).

Describe the problem

After adding a custom rel:// relay address to the management.json in a self-hosted NetBird deployment, I confirmed from management logs that the relay address is being loaded correctly:

2025-06-25T01:44:07Z INFO management/cmd/management.go:563 Relay addresses: [rel://1.2.3.4:33080]

However, on the client side, running netbird status -d shows only the default Relays. Clients cannot use the new added relay even when direct P2P connections are unavailable.

To Reproduce

  1. Edit management.json and add:
"Relay": {
  "Addresses": [
    "rels://netbird.xxxxx.com:443",
     "rels://1.2.3.4:33080"
  ],
  "Secret": "my-secret",
  "CredentialsTTL": "24h0m0s"
}

  1. Restart the management container:
docker-compose restart netbird-management

  1. On another public server, run the relay container:
docker run -d \
  --name netbird-relay \
  --network host \
  --cap-add=NET_ADMIN \
  --device /dev/net/tun \
  -e NB_LISTEN_ADDRESS=":33080" \
  -e NB_EXPOSED_ADDRESS="1.2.3.4:33080" \
  -e NB_AUTH_SECRET="my-secret" \
  netbirdio/relay:latest

  1. On the client machine:
sudo systemctl restart netbird
netbird status -d

Expected behavior

Client should show the new added Relay address listed in the Relays: section of netbird status -d

Relays:
  [stun:netbird.xxxx.com:3478] is Available
  [turn:netbird.xxxxx.com:3478?transport=udp] is Available
  [rels://netbird.xxxxx.com:443] is Available
  ## but newer relays server no exist in this content:
  ##  rels://1.2.3.4:33080??? where is it?

Are you using NetBird Cloud?

No, using self-hosted NetBird control plane.

NetBird version

Daemon version: 0.49.0
CLI version: 0.49.0

Is any other VPN software installed?

No.

Debug output

netbird status -d

Output omitted for brevity — no newer Relays added: section visible.

Uploaded files are automatically deleted after 30 days.

Alternatively, create the file only and attach it here manually:

netbird debug for 1m -AS

Screenshots

N/A

Additional context

Confirmed management log outputs correct relay list.
Verified relay server port is accessible via nc -vz 1.2.3.4 33080.
Tried resetting client (netbird down, delete /etc/netbird/store.json, re-register via netbird up).
Relay container is running with --network host and correct NB_AUTH_SECRET.

Have you tried these troubleshooting steps?

  • [ x] Reviewed client troubleshooting (if applicable)
  • [ x] Checked for newer NetBird versions
  • [ x] Searched for similar issues on GitHub (including closed ones)
  • [ x] Restarted the NetBird client
  • [ x] Disabled other VPN software
  • [ x] Checked firewall settings
Originally created by @dadastory on GitHub (Jun 24, 2025). **Describe the problem** After adding a custom rel:// relay address to the management.json in a self-hosted NetBird deployment, I confirmed from management logs that the relay address is being loaded correctly: ``` 2025-06-25T01:44:07Z INFO management/cmd/management.go:563 Relay addresses: [rel://1.2.3.4:33080] ``` However, on the client side, running netbird status -d shows only the default Relays. Clients cannot use the new added relay even when direct P2P connections are unavailable. **To Reproduce** 1. Edit management.json and add: ``` "Relay": { "Addresses": [ "rels://netbird.xxxxx.com:443", "rels://1.2.3.4:33080" ], "Secret": "my-secret", "CredentialsTTL": "24h0m0s" } ``` 2. Restart the management container: ``` docker-compose restart netbird-management ``` 3. On another public server, run the relay container: ``` docker run -d \ --name netbird-relay \ --network host \ --cap-add=NET_ADMIN \ --device /dev/net/tun \ -e NB_LISTEN_ADDRESS=":33080" \ -e NB_EXPOSED_ADDRESS="1.2.3.4:33080" \ -e NB_AUTH_SECRET="my-secret" \ netbirdio/relay:latest ``` 4. On the client machine: ``` sudo systemctl restart netbird netbird status -d ``` **Expected behavior** Client should show the new added Relay address listed in the Relays: section of netbird status -d ``` Relays: [stun:netbird.xxxx.com:3478] is Available [turn:netbird.xxxxx.com:3478?transport=udp] is Available [rels://netbird.xxxxx.com:443] is Available ## but newer relays server no exist in this content: ## rels://1.2.3.4:33080??? where is it? ``` **Are you using NetBird Cloud?** ❌ No, using self-hosted NetBird control plane. **NetBird version** Daemon version: 0.49.0 CLI version: 0.49.0 **Is any other VPN software installed?** No. **Debug output** ``` netbird status -d ``` Output omitted for brevity — no newer Relays added: section visible. *Uploaded files are automatically deleted after 30 days.* Alternatively, create the file only and attach it here manually: netbird debug for 1m -AS **Screenshots** N/A **Additional context** Confirmed management log outputs correct relay list. Verified relay server port is accessible via nc -vz 1.2.3.4 33080. Tried resetting client (netbird down, delete /etc/netbird/store.json, re-register via netbird up). Relay container is running with --network host and correct NB_AUTH_SECRET. **Have you tried these troubleshooting steps?** - [ x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [ x] Checked for newer NetBird versions - [ x] Searched for similar issues on GitHub (including closed ones) - [ x] Restarted the NetBird client - [ x] Disabled other VPN software - [ x] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 06:11:04 -05:00
Author
Owner

@dadastory commented on GitHub (Jun 24, 2025):

  • i change the protocol from refs to ref ,because i have no cert, and Client reconnect the server, it works, it succeed show in my Relay Lists, but why it only show one Relay Serve rather than a list of server's relay server
@dadastory commented on GitHub (Jun 24, 2025): - i change the protocol from refs to ref ,because i have no cert, and Client reconnect the server, it works, it succeed show in my Relay Lists, but why it only show one Relay Serve rather than a list of server's relay server
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2006