NetBird behind a Cloudflare Tunnel: gRPC trailers get stripped, clients loop
I self-host NetBird, the WireGuard mesh VPN. I've written before about why I picked it over Tailscale. What I didn't cover is the fight I had getting devices outside my house to connect to it, because my public services all sit behind a Cloudflare Tunnel, and NetBird's control plane speaks gRPC. It took four goes. One of them returned HTTP 200 and still didn't work, and that's the bit worth…
NetBird is a self-hosted WireGuard mesh VPN. The author faced challenges connecting devices outside their house due to NetBird's control plane speaking gRPC and being behind a Cloudflare Tunnel. Attempts to fix the issue included using Cloudflare's gRPC support, which resulted in a 404 error, and changing to a direct connection using a public name and a DDNS script.
The most effective solution was to move the gRPC and relay traffic to a direct connection, while keeping the dashboard and SSO login behind the Cloudflare Tunnel.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to