Repository navigation
Self-hosted Reverse Proxy: Slow and inconsistent file transfers compared to direct NetBird access #8665
Replies: 5 comments 2 replies
Update: iperf3 testing reveals asymmetric throughput and UDP packet lossI performed additional testing using Connection details:
TCP results (30 seconds): Direction | 1 stream | 4 streams -- | -- | -- VPS → TrueNAS | 176 Mbps (0 retransmissions) | 323 Mbps (6,222 retransmissions) TrueNAS → VPS | 9.68 Mbps (173 retransmissions) | 36.5 Mbps (963 retransmissions)The opposite direction (VPS → TrueNAS) showed 0% packet loss at 30 Mbps. Additional findings:
These results demonstrate unstable and asymmetric throughput independently of Nextcloud and Nginx. The tests used a separate NetBird client on the same VPS, not the embedded NetBird connection inside the Reverse Proxy, so they don't directly establish the Reverse Proxy's performance. I'm investigating whether the issue is related to UDP receive-buffer exhaustion, packet loss/reordering, or NetBird's underlying network path. Any recommendations for further troubleshooting or relevant NetBird settings would be appreciated. |
|
Your Here is what is happening and how to tune the host and container to fix it: 1. Root Cause:
|
Update: UDP buffer tuning improved performance, but slowdown persistshey atlur thank you I applied the recommended UDP buffer settings on my VPS:
I restarted both the NetBird client and Reverse Proxy containers. Results:
Unfortunately, the main issue remains: Nextcloud downloads through the public NetBird Reverse Proxy start fast, but throughput drops significantly after approximately 30 seconds, even with the larger buffers and no reported socket drops. The separate NetBird client tests improved, but the production Reverse Proxy still experiences the slowdown. Could there be another bottleneck in the Reverse Proxy's HTTP handling, routing, or TCP behavior? Any suggestions for further diagnostics would be appreciated. |
Update: improvement after NetBird 0.83.2 and DNS changesI made two additional changes:
I also kept the previously recommended VPS UDP buffer tuning (2 MiB default, 16 MiB maximum). New iperf3 results (VPS ↔ TrueNAS): Test | Before | AfterVPS → TrueNAS TCP | 176 Mbps | 179 Mbps This is an improvement in throughput and packet loss. However, I cannot confirm whether upgrading NetBird or disabling the custom DNS configuration was responsible, since both changes were made before retesting. The earlier UDP buffer tuning also remains enabled. Real Nextcloud download test (same 360 MB file):
Current situation: The underlying NetBird P2P connection is now considerably faster and packet loss is much lower. Real Nextcloud transfers have improved, but downloads through the public Reverse Proxy remain approximately 7× slower than local access. The issue is not completely resolved, but the changes have produced a noticeable improvement. Could the remaining difference be caused by HTTP Reverse Proxy processing or routing? Any additional diagnostics would be appreciated. |
|
with the improvement i had after disabling DNS from some machine i suspect my issue is related to #6994 |
Uh oh!
There was an error while loading. Please reload this page.
Before posting
Affected area
Reverse Proxy, Self-hosting / Deployment
Deployment type
Self-hosted - quickstart script
Operating system or environment
Linux, Docker
NetBird version and upgrade status
Self-Hosted
Did this work before?
Not sure
Regression details
No response
Summary
I'm experiencing slow and highly inconsistent upload/download speeds through the self-hosted NetBird Reverse Proxy compared to direct private NetBird access.
The issue affects Nextcloud and jellyfin and is also observable with OpenSpeedTest. I reproduced similar transfer performance both through Nginx Proxy Manager and by connecting NetBird Reverse Proxy directly to Nextcloud over HTTPS.
Direct P2P NetBird connections perform substantially better. I'm unsure whether this is a Reverse Proxy performance limitation, Network Resource routing issue, do not believe its configuration problem as i followed netbird official nextcloud config.
Current behavior
File transfers through the self-hosted Reverse Proxy fluctuate significantly, sometimes starting fast and slowing to a few hundred KB/s and in general much slower than direct connection.
Nextcloud results:
OpenSpeedTest:
The speeds vary across attempts and remote network conditions. No consistent improvement was found by bypassing NPM.
Expected behavior
The public self-hosted Reverse Proxy should provide reasonably stable upload and download throughput, allowing for normal overhead compared to direct NetBird connections.
Large file transfers should not unexpectedly fall to 20-30% of actual speeds when substantially higher bandwidth is available.
Steps to reproduce
Observed: Public Reverse Proxy throughput is generally lower and more variable than direct private NetBird access. Bypassing NPM does not consistently resolve the issue.
Environment and topology
VPS:
Home network:
Client:
Topology:
Remote client → VPS Traefik:443 → NetBird Reverse Proxy:8443 → NetBird encrypted connection → Network Resource (routing peer A or B) → NPM:80 → Nextcloud:30000 (HTTPS)
Also tested direct HTTPS forwarding to Nextcloud:30000, bypassing NPM.
No relayed connection was reported for the inspected proxy peer.
Self-hosted details, if available
Relevant configuration:
Traefik:
Dynamic configuration:
Proxy environment:
Exact immutable Docker image versions/digests have not been collected.
Logs, status output, or debug evidence
Interface:
VPS Docker statistics (single snapshot):
Nextcloud curl comparison (360,419,617-byte file):
Private NetBird route with split DNS:
Public Reverse Proxy:
NPM syntax test:
NPM logs showed routine reloads and certificate renewals, without obvious errors in the excerpt examined.
No NetBird debug bundle has been collected yet.
All reactions