Allow grouping relay servers in the dashboard #2435

Open
opened 2025-11-20 07:09:47 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @jakeslee on GitHub (Nov 3, 2025).

Is your feature request related to a problem? Please describe.

P2P/UDP in my network was be limited, so some peers must to be communicated via TCP relay and turning on NB_FORCE_RELAY, otherwise bandwidth limited to 1Mbps.

For this case, I deployed some relay nodes in more than one region. For example, a peer deployed in Japen with a local relay server, some peers deployed with local relay server in mainland China.

As I know, when peers starts, managemant server pushes the configured relay server list to the peers. The peer concurrently connects to the relay server, and takes the first connected relay server as peer relay server.

The workflow works fine in most situations, but when network delays the peers in China may take Japen relay server. It causes that another peers in China connect to the peer with huge latency.

Describe the solution you'd like

If dashboard supports configuring, grouping and peers visible controlling relay servers, I can limit the peers whiches can only take local region relay server(only announced relay server, not affect cross-region connection).

Describe alternatives you've considered

I modified netbird client codes, add NB_FORCE_RELAY_ADDR env to overwrite the relay servers from management server.

The solution is tricky and hard to maintain, so hope that netbird supports more powerful features to maintain relay servers(such as registering, grouping, access controlling, priority, etc.).

Originally created by @jakeslee on GitHub (Nov 3, 2025). **Is your feature request related to a problem? Please describe.** P2P/UDP in my network was be limited, so some peers must to be communicated via TCP relay and turning on `NB_FORCE_RELAY`, otherwise bandwidth limited to 1Mbps. For this case, I deployed some relay nodes in more than one region. For example, a peer deployed in Japen with a local relay server, some peers deployed with local relay server in mainland China. As I know, when peers starts, managemant server pushes the configured relay server list to the peers. The peer concurrently connects to the relay server, and takes the first connected relay server as peer relay server. The workflow works fine in most situations, but when network delays the peers in China may take Japen relay server. It causes that another peers in China connect to the peer with huge latency. **Describe the solution you'd like** If dashboard supports configuring, grouping and peers visible controlling relay servers, I can limit the peers whiches can only take local region relay server(only announced relay server, not affect cross-region connection). **Describe alternatives you've considered** I modified netbird client codes, add `NB_FORCE_RELAY_ADDR` env to overwrite the relay servers from management server. The solution is tricky and hard to maintain, so hope that netbird supports more powerful features to maintain relay servers(such as registering, grouping, access controlling, priority, etc.).
saavagebueno added the feature-request label 2025-11-20 07:09:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2435