Slow speed if relayed #1835

Closed
opened 2025-11-20 06:07:41 -05:00 by saavagebueno · 4 comments
Owner

Originally created by @netandreus on GitHub (Apr 25, 2025).

Describe the problem

I have two peers in different countries. All peers behind NAT (Mikrotik) and has 100 Mbps internet channel.
When I test network between Mikrotiks I have a good speed.

Image

58 / 94 Mbps

and

Image

76 / 85 Mbps

But when I try to test with iperf from one netbird peer to another I have very small speed.

Image

3 / 13 Mbps

Both peers are Relayed for each other.

Image

What should I do to increase speed?

Are you using NetBird Cloud?

No, self-hosted.

NetBird version

0.38.2

Is any other VPN software installed?

No

Have you tried these troubleshooting steps?

  • [-] Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings

Related issues

Originally created by @netandreus on GitHub (Apr 25, 2025). **Describe the problem** I have two peers in different countries. All peers behind NAT (Mikrotik) and has 100 Mbps internet channel. When I test network between Mikrotiks I have a good speed. ![Image](https://github.com/user-attachments/assets/665a1742-8585-478f-b0be-d537281cee4c) 58 / 94 Mbps and ![Image](https://github.com/user-attachments/assets/02a6c523-7eb7-4090-920d-ed89704194bd) 76 / 85 Mbps But when I try to test with iperf from one netbird peer to another I have very small speed. ![Image](https://github.com/user-attachments/assets/5047da8b-9bed-4eba-a0a8-699b7d9ceab0) 3 / 13 Mbps Both peers are ```Relayed``` for each other. <img width="1627" alt="Image" src="https://github.com/user-attachments/assets/cfebb576-3f6a-4393-bd63-8c67b1cbdfc1" /> What should I do to increase speed? **Are you using NetBird Cloud?** No, self-hosted. **NetBird version** 0.38.2 **Is any other VPN software installed?** No **Have you tried these troubleshooting steps?** - [-] 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 **Related issues** - [P2P Connection Across Subnets / VLANs?](https://github.com/netbirdio/netbird/issues/3648)
saavagebueno added the triage-needed label 2025-11-20 06:07:41 -05:00
Author
Owner

@Gauss23 commented on GitHub (Apr 26, 2025):

A relayed connection is always slower than a direct connection. Both peers are behind NAT and they don’t seem to be able to open ports from the outside.
Easiest solution would be to open the Netbird port on the Mikrotik boxes and forward the traffic to the peer. It could be sufficient to do it on one side.

@Gauss23 commented on GitHub (Apr 26, 2025): A relayed connection is always slower than a direct connection. Both peers are behind NAT and they don’t seem to be able to open ports from the outside. Easiest solution would be to open the Netbird port on the Mikrotik boxes and forward the traffic to the peer. It could be sufficient to do it on one side.
Author
Owner

@netandreus commented on GitHub (Apr 26, 2025):

@Gauss23 thank you for quick reply! What ports should I open in Mikrotik? How can I know what port NetBird use?

@netandreus commented on GitHub (Apr 26, 2025): @Gauss23 thank you for quick reply! What ports should I open in Mikrotik? How can I know what port NetBird use?
Author
Owner

@Gauss23 commented on GitHub (Apr 26, 2025):

Default Wireguard port 51820. you can change that port on the peer, if port 51820 is already in use.

@Gauss23 commented on GitHub (Apr 26, 2025): Default Wireguard port 51820. you can change that port on the peer, if port 51820 is already in use.
Author
Owner

@netandreus commented on GitHub (May 4, 2025):

Yes, now it is much better.

@netandreus commented on GitHub (May 4, 2025): Yes, now it is much better.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1835