Forward UDP 443 for QUIC in external relay setup - #946
Conversation
The relay serves WebSocket (TCP) and QUIC (UDP) on port 443. Without the /udp suffix, Docker only forwards TCP, so QUIC never reaches the relay container.
|
@Mudityadev is attempting to deploy a commit to the NetBird GmbH Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe external relay setup guide now includes UDP port 443 for QUIC. Its Docker Compose example maps port 443 for both TCP WebSocket traffic and UDP QUIC traffic. ChangesExternal relay QUIC setup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized documentation update adds the required UDP forwarding guidance for external relay deployments, and no actionable merge-blocking risk remains. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
src/pages/selfhosted/maintenance/scaling/set-up-external-relays.mdxtypescript-eslint does not support TS 7.0. Oops! Something went wrong! :( ESLint: 9.39.5 Error: typescript-eslint does not support TS 7.0. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes the issue reported in netbirdio/netbird#6235
The relay serves WebSocket and QUIC on the same port (default :443). The relay code in netbirdio/netbird starts both listeners on that address: a TCP listener for WebSocket and a QUIC listener over UDP (relay/server/server.go). Docker only forwards TCP unless a port mapping carries the /udp suffix, so the compose example on this page silently disabled QUIC for external relays.
Changes:
Question while I was here: high-availability.mdx also publishes relay traffic as 443:443 behind a load balancer. If QUIC is wanted there too, that deployment needs UDP forwarding through the LB as well, so I left it out of this change.
Summary by CodeRabbit