Cloudflare Tunnels vs. NetBird Reverse Proxy

Cloudflare Tunnels vs. NetBird Reverse Proxy

A detailed comparison of NetBird Reverse Proxy and Cloudflare Tunnels for exposing internal services to the internet without opening ports, covering architecture, TLS termination, authentication, deployment, data sovereignty, and ephemeral CLI exposure.


Written by Damaso Sanoja

Published on March 12th, 2026

What is NetBird’s reverse proxy?

NetBird’s Reverse Proxy lets you expose any internal service, running on a peer or behind a network resource, to the public internet without opening ports or touching your firewall. The key differentiator versus standalone reverse proxies like Nginx or Caddy: the mesh is already there. You surface services through an encrypted network you already operate.

The mechanism works through your existing WireGuard mesh: incoming HTTPS requests hit the NetBird proxy cluster (running on your infrastructure), which terminates TLS and forwards traffic through an encrypted WireGuard tunnel to the target service. The target service only needs to be reachable within your NetBird network. The proxy cluster connects to your management server via gRPC, provisions TLS certificates automatically (ACME/Let’s Encrypt or static), and supports path-based routing to consolidate multiple services under a single domain. Path-based routing is configured in the NetBird management UI when defining a service: you specify the public URL path prefix and the target internal service, and Traefik applies the routing rule automatically.

The authentication layer (SSO via your identity provider, shared passwords, or PINs) means the proxy is also an access control point, not just a traffic forwarder.

What are Cloudflare tunnels?

Cloudflare Tunnel (cloudflared) creates a secure outbound connection from your server to Cloudflare’s global edge network, making any internal service reachable via HTTPS without a public IP or open inbound port. The cloudflared daemon dials out to Cloudflare’s edge; Cloudflare terminates TLS there and proxies traffic to your origin. This architecture is the defining choice: Cloudflare sits in the middle.

Where this architecture creates constraints: TLS terminates at Cloudflare’s edge, not at your origin, which means Cloudflare has the technical ability to read decrypted traffic between their edge and your server. UDP traffic is not supported for public hostnames through tunnels. Cloudflare’s Terms of Service also restrict using tunnels for large non-web traffic, including video streaming, which affects self-hosters running media servers such as Plex or Jellyfin.

NetBird and Cloudflare capability overview

The following table compares NetBird Reverse Proxy and Cloudflare Tunnel by capability.

Capability NetBird Reverse Proxy Cloudflare Tunnel
TLS termination location Your proxy cluster (self-hosted infrastructure) Cloudflare edge (third-party managed)
Inbound port requirement None (outbound WireGuard only) None (outbound cloudflared only)
Authentication SSO (OIDC/IdP), Password, PIN Cloudflare Access (OIDC), Zero Trust policies
Self-hosting Full self-host or NetBird Cloud cloudflared client open source; control plane is Cloudflare-managed
UDP support Mesh peers only (not via Reverse Proxy) Not supported for public hostnames (TCP/HTTP only)
Path-based routing Supported Supported
Custom domains Supported Supported
High availability Multiple proxy instances with DNS round-robin Cloudflare global edge (automatic)
Open source BSD-3-Clause client / AGPLv3 server (full open source) cloudflared client open source; dashboard is proprietary
Maturity Beta (v0.65.0+, Cloud and self-hosted) Production (GA)
Traffic inspection/filtering Via NetBird access policies Cloudflare Gateway (HTTP/network policies)
Ephemeral CLI exposure netbird expose (authenticated, custom domains) Quick Tunnels (public-only, random subdomain)

Capability parity hides real differences in privacy, control, and operational cost. The next four sections unpack each.

Tunneling architecture and TLS termination

Who can read your traffic depends entirely on where TLS terminates. That single decision shapes everything else about how these two tools compare.

Aspect NetBird Cloudflare
TLS termination Your infrastructure (NetBird proxy cluster) Cloudflare edge (third-party)
Tunnel protocol WireGuard (encrypted mesh) QUIC/HTTP2 (IETF standards, RFC 9000/RFC 9113) (cloudflared)
E2EE to origin Traffic decrypted only on your proxy Cloudflare decrypts at edge before forwarding
Port requirements None (WireGuard outbound only) None (HTTPS outbound only)

NetBird

The proxy cluster must run on infrastructure with a public IP, typically a VPS or cloud instance. External HTTPS requests resolve to that IP via DNS, terminate TLS at the proxy cluster, and forward traffic through the WireGuard tunnel to the internal service. The internal service never needs a public IP or open ports; it only needs to be reachable within the NetBird network.

This architecture means you control the entire TLS chain. Certificate provisioning happens at the proxy via ACME/Let's Encrypt. The challenge type is configurable via NB_PROXY_ACME_CHALLENGE_TYPE: tls-alpn-01 (default, requires port 443) or http-01 (requires port 80). Wildcard certificates (required for *.proxy.yourdomain.com) are not supported through the built-in ACME integration, since DNS-01 is unavailable; provision wildcard certs externally and supply them via NB_PROXY_CERTIFICATE_FILE and NB_PROXY_CERTIFICATE_KEY_FILE. WireGuard’s authenticated encryption protects the tunnel segment. For workloads involving sensitive data such as financial records, health data, or credential stores, the architecture itself prevents third-party decryption.

Authentication and access control

Aspect NetBird Cloudflare
SSO/OIDC Your configured IdP Cloudflare Access (any OIDC IdP)
Password/PIN auth Supported Not supported (Cloudflare Access only)
Group-based restriction Supported (restrict SSO to specific IdP groups) Supported (Access policies)
Auth control plane Your infrastructure Cloudflare (SaaS)
Clientless access Supported (browser-based, no agent needed) Supported

Setup, deployment, and operational complexity

You’ve decided which trust model fits. Now the question is: what does getting there actually look like?

Aspect NetBird Cloudflare
Prerequisites Self-hosted NetBird + Traefik, proxy container cloudflared binary or Docker image, Cloudflare account
Infrastructure required VPS/server running your NetBird stack None (Cloudflare manages infra)
TLS certificate management Automatic (ACME/Let’s Encrypt or static) Automatic (Cloudflare manages)
High availability setup Multiple proxy instances (DNS round-robin) Automatic (Cloudflare global edge)
Upgrade path Self-managed (Docker Compose, version pinning) Automatic (SaaS)

Privacy, data sovereignty, and ecosystem lock-in

Ephemeral CLI exposure: netbird expose vs. Cloudflare Quick Tunnels

Aspect netbird expose Cloudflare Quick Tunnels
Command netbird expose <port> cloudflared tunnel --url http://localhost:<port>
Account required Yes (NetBird peer on an existing mesh) No
Infrastructure dependency Proxy cluster (NetBird Cloud or self-hosted) Cloudflare edge (fully managed)
Session lifecycle 30 s keep-alive, 90 s TTL; terminates on Ctrl-C or TTL expiry Lasts until process is stopped
Auth options SSO (OIDC), password, PIN (inherited from proxy service config) None (public-only)
Protocol support HTTP/HTTPS (via proxy cluster) HTTP/HTTPS

When each fits best

At one or two exposed services, Cloudflare’s zero-infrastructure model is objectively simpler. At five to ten services across environments, DNS entry, policy, and migration overhead begins to accumulate. At fifteen-plus services with data residency or compliance constraints, the control-plane ownership argument for self-hosted architecture becomes an operational necessity, not a philosophical preference.

NetBird Reverse Proxy fits best when:

Cloudflare Tunnel fits best when: