r/netbird • u/Foreignwelcome2 • 8d ago
self-hosted reverse proxy slow speeds
I'm so frustrated with Netbird reverse proxy slow speeds! specially when it comes to jellyfin and nextcloud!
is this issue common?
to put my setups simply:
- VPS ubuntu (from hostinger) self-hosted netbird latest
- locally 2 Truenas servers (made as a resource and 2 routing peers for high availability on netbird)
- Jellyfin and nextcloud runing on main server truenas
- (both jellyfin and nextcloud reverse proxy configuration were made following TechHub "netbird" official tutorial so i don't believe there's a config issue here!
the issue:
P2P connection (remotely) using netbird client give full speed.
But using the reverse proxy i see 20 maybe 30% of the actual speed (for jellyfin that just constant buffering and for nextcloud slow upload and download speeds)
i have started a discussion in github https://github.com/netbirdio/netbird/discussions/8665
2
u/lagdetselv 8d ago
cause of many issues with netbird reverse proxy I started to make my own reverse proxy. Traefik on my own VPS routes on a netbird tunnle to my local (DMZ) traefik which then routes to my internal services.
1
u/StillLoading_ 8d ago
Proxy is probably only doing relayed connrctions to your backend services. You can enable the debug endpoint on the proxy container via env vars to check the embedded netbird client status. Or you check the connection to the proxy-<random id> peer on your backend server (e.g. nextcloud).
If thats the case, there has been a fix for that in 0.83 that allows you to map your VPS public IP to the proxy container. You also need to set and forward a wireguard port to the container to get P2P working.
1
u/NomadicSun 8d ago
Yes I experienced this exact issue too. Currently looking into other options
1
u/balirious 8d ago
Slooow af painfully slow
0
u/FORCEGC 8d ago
Mine is great. Extremely fast. I run on truenas as well going out to vps as control plane. Works well. You have to have a configuration error. I'd dig into speed tests between hosts and vps
0
u/WikibearTheReal 6d ago
Isn't that pretty obvious? If you're using a reverse proxy on a VPS, all your traffic goes through that VPS. Of course it's going to be slower if the VPS has limited bandwidth or network performance.
Especially when streaming video! Your home server first uploads the video stream to the VPS, and then the VPS forwards it to your device. So you're routing the entire video stream through an additional server for no good reason. Even if the connection between the VPS and your home server is P2P, you're still not bypassing the VPS.
The logical solution is to use NetBird directly on your devices and configure Split DNS, using an internal DNS server like Pi-hole, AdGuard Home, or something similar.
Use the same domain internally and externally. When you're connected through NetBird (which uses WireGuard), your internal DNS resolves the domain to your server's private NetBird IP, so you connect directly without going through the VPS.
When you're outside without NetBird, the domain resolves to the public VPS IP and traffic goes through the reverse proxy.
Same domain, different IP depending on where you are. No unnecessary detour through the VPS.
You don't even need an exit node for this. NetBird with Split DNS is enough.