Is Cloudflare Zero Trust Worth Using for Self-Hosted Apps?

Cloudflare Zero Trust bundles the two things self-hosters ask for most: a way to expose services without opening ports, and a login wall that works even on apps that never had one. The free plan covers Cloudflare Tunnel and Cloudflare Access for up to 50 users, with no bandwidth metering on tunnels. That sounds like a clear win, but the real question is narrower: on a VPS or home server running a handful of apps, is Cloudflare Zero Trust worth using for self hosted apps in practice, or does a plain reverse proxy behind a closed firewall do the job just as well? I have run both setups. Here is the breakdown.

What the Free Plan Actually Includes

The Zero Trust free tier is the real product, not a trial. You get:

  • Cloudflare Tunnel (cloudflared): a small daemon on your server that opens outbound-only connections to Cloudflare’s network. No inbound ports, no public IP required. It works behind CG-NAT, Starlink, and mobile hotspots, where port forwarding is not an option at all.
  • Cloudflare Access: an identity check at Cloudflare’s edge, placed in front of any hostname. Applications deny by default; you add Allow policies per email address or domain. The one-time PIN identity provider means a guest types their email, receives a code, and gets in, with no account on your side.
  • Up to 50 seats. Seats count as people who log in, so one family member opening the app every day still occupies one seat.
  • No per-gigabyte charge for traffic passing through a tunnel, which is the real contrast with cloud egress billing on providers like AWS or GCP.

Limits worth knowing: free-tier activity logs keep for 24 hours only, support is community-only, and you are capped at roughly three physical locations. Paid plans run about $7 per user per month once you pass 50 seats or need longer log retention. Check Cloudflare’s official pricing page before planning a larger rollout, since seat counts do shift.

What the Setup Actually Involves

Budget 30 to 45 minutes the first time. The shape of it:

  • Install cloudflared on the VPS, either the .deb package on Ubuntu or the cloudflare/cloudflared Docker image.
  • Create the tunnel in the Zero Trust dashboard at one.dash.cloudflare.com and paste the token into your server or container.
  • Map hostnames to local services in the config, for example photos.yourdomain.com to http://localhost:2283 or dash.yourdomain.com to http://localhost:8080.
  • Create one Access application per hostname, then attach an Allow policy limited to your email or one-time PIN identities.

Once the tunnel carries all inbound traffic, you can close every port on the VPS firewall except SSH. That single change is most of the security posture: port scanners find nothing, and every app sits behind HTTPS plus an identity check.

One prerequisite hides in the fine print: your domain’s DNS has to live on Cloudflare, because the dashboard can only create tunnel DNS records for zones on your account. Moving DNS is free and propagation usually settles within a few hours, but it is a real step if your registrar or another provider hosts your records today, and people often discover it halfway through setup.

How It Compares to the Alternatives

Cloudflare Tunnel + Access Nginx/Caddy + open ports Tailscale / WireGuard
Exposed ports None 80/443 at minimum None
Login wall for apps without auth Yes, at the edge No Yes, but every device needs a client
Needs a public IP No Yes No
Third party in the path Cloudflare None Coordination server, or none for plain WireGuard
Cost at homelab scale $0 $0, plus your time on hardening $0

The table is the honest summary. Tunnel wins on exposure and effort, the self-hosted reverse proxy wins on independence, and the VPN wins when you want peer-to-peer with no edge network in between.

Access Policies: The Part Worth Getting Right

The tunnel is the visible work, but the policies decide whether Access is a security layer or just an annoying login page. Three settings matter most.

Session length. Access sessions default to 24 hours, after which everyone logs in again — on personal apps, that gets old within a week. Set the duration per application: a week or a month for low-risk tools like a photo viewer, and keep the short default for anything with an admin panel or a delete button.

Non-browser clients. Access assumes a browser that can complete the login flow. Mobile apps, sync clients, and API callers cannot type a one-time PIN into a redirect page, so they fail silently against a protected hostname. The supported fix is a service token: Access issues a client ID and secret that the client sends as headers, and your policy accepts the token. Where a client cannot send custom headers, leave that hostname outside Access and let the app’s own login stand on its own.

What to protect first. Start with apps that have weak logins or none at all. A password vault is the classic case: the web interface behaves fine behind Access, but the phone app syncs outside a browser, so the policy needs a service token or a deliberate exception. If you are still deciding how to run the vault itself, the cost breakdown in Vaultwarden vs Bitwarden Cloud assumes the app can reach your server, which is exactly what the policy controls.

Operational Gotchas Worth Knowing

Large uploads can hit a wall. Requests proxied through Cloudflare are subject to upload size limits that vary by plan, and big single-file uploads are where people notice first. If file sync is one of your apps, test a large upload early: the trade-offs between Nextcloud vs Syncthing vs Seafile include how each client moves big files, and chunked uploads sidestep most of the limit. Check Cloudflare’s official documentation for the current cap on your plan.

The connector needs babysitting. Run cloudflared as a systemd service or a Docker container with a restart policy, so it comes back after reboots and crashes. Cloudflare retires old connector versions on a schedule, and an outdated connector eventually refuses to connect, so fold its updates into your OS patch routine.

The token is a skeleton key. Whoever holds the tunnel token controls where that tunnel points. Store it like a password, keep it out of screenshots and dotfile repos, and rotate it from the dashboard if it ever leaks.

The Honest Downsides

  • TLS terminates at Cloudflare’s edge. HTTPS between your browser and your origin stays encrypted, but Cloudflare sits in the middle of it and can see traffic metadata. If no third party touching your packets is a hard requirement, self-hosted WireGuard is the correct answer.
  • It is a dependency. When Cloudflare has an incident, your apps go unreachable from outside. Keep SSH open on the VPS so you can always reach the box directly, and keep your tunnel token out of any public repository.
  • Heavy media is the wrong workload. Tunnels are not built for multi-terabyte streaming or bulk dataset transfers. Serve large static files from object storage or bypass the tunnel for those jobs.
  • Small auth friction. Visitors meet a Cloudflare login page before your app’s own login. For non-technical family, the one-time PIN flow is the easiest identity provider to explain.

Verdict: Is Cloudflare Zero Trust Worth Using for Self-Hosted Apps?

Yes, for the common case: a solo admin or small family running a handful of web apps on a VPS or a box at home. You get closed ports, a real identity layer, and HTTPS on every service, all inside the free tier with no egress bill added to your VPS and hosting costs.

The apps that gain the most are the ones with weak or missing logins: monitoring dashboards, admin panels, and internal tools. Three comparisons on this site cover the usual first candidates: Uptime Kuma vs Checkly vs Better Uptime for monitoring, Plausible vs Matomo Cloud vs Umami for analytics, and n8n Cloud vs self-hosted n8n for automation. Most people land here from some version of the search “cloudflare zero trust worth self hosted apps”, usually running exactly that mix on a single box. For that mix, the answer stays yes.

Skip it if you push serious bandwidth, if compliance keeps you off US-based infrastructure, or if you do not want any third party in the path at all. Those setups belong on WireGuard plus a self-hosted reverse proxy.

FAQ

Is Cloudflare Zero Trust really free for self-hosting?

Yes. The free plan includes unlimited tunnels, Access policies, and up to 50 user seats, with no bandwidth charges on tunnel traffic. You only pay if you exceed 50 seats or need paid features like longer log retention.

Do I need a public IP or port forwarding?

No. The tunnel makes outbound-only connections to Cloudflare, so it works behind NAT and CG-NAT, including connections like Starlink where you cannot open ports.

Can I still use my own domain?

Yes. You route hostnames like app.yourdomain.com through the tunnel, and Cloudflare handles DNS, HTTPS certificates, and the Access login page.

Can I protect only some of my apps?

Yes. Access applications are created per hostname, so protection is opt-in app by app. Put the password manager and admin panels behind policies, and leave a public blog open by not creating an Access application for its hostname. The tunnel still hides its ports either way.

What happens to my apps if Cloudflare has an outage?

They become unreachable from outside your network until service returns, because all inbound traffic rides the tunnel. The server itself keeps running, and SSH plus local network access still work — keep a direct admin path open.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.