Docs cipi.yml Web panel API MCP Ecosystem Guides Compare GitHub Telegram channel
  1. Home
  2. Guides
  3. Cloudflare Zero Trust vs Tailscale vs NetBird for your servers
Choosing Cipi

Cloudflare Zero Trust vs Tailscale vs NetBird for your servers

What each one is for — Cloudflare Tunnel publishes sites to visitors, a Tailscale or NetBird mesh is the private way in for the people who run the server — how they differ on SSH, the panel, databases, deploys, self-hosting and cost, and how to combine them on one Cipi server.

By Updated 3 min read

"Zero Trust" covers two different jobs, and the three tools Cipi manages split along that line:

  • Cloudflare Tunnel (with Access) is about visitors: it publishes your sites through Cloudflare, so the server needs no open port, and puts a login in front of what should be private.
  • Tailscale and NetBird are about you: a private network on which your laptop, your team and your CI reach the server — SSH, the panel, a database — while the public ports close.

Side by side#

Cloudflare Tunnel + AccessTailscaleNetBird
Built forPublishing sites; a login wall in front of somePrivate access between your devices and serversThe same, fully open source
How it connectsThe server dials out to Cloudflare; visitors come through CloudflareWireGuard between devices; a coordination server hands out keysWireGuard between devices; a management server, yours or NetBird's
What visitors needA browser— (not for visitors)— (not for visitors)
What your team needsA browser for Access; cloudflared for SSH and databasesThe Tailscale appThe NetBird app
SSHcloudflared access ssh, short-lived certificatesPlain ssh to the mesh address; optional Tailscale SSHPlain ssh to the mesh address
Web panel and APIA hostname behind Access; service tokens for scriptsA record on the mesh addressA record on the mesh address
A database from your laptopcloudflared access tcp to a local portSSH tunnel over the meshSSH tunnel over the mesh
Ports it lets you close80/443 (sites through the tunnel) and 2222, and 80/443 for private sites22, and 80/443 for private sites
CDN, WAF, DDoSYesNoNo
Self-hostingNoCoordination via HeadscaleEverything
Who sees the trafficCloudflare terminates TLSNobody but the two endsNobody but the two ends
On Cipicipi zt enable, cipi zt hostname add, cipi zt access enable, cipi zt lockcipi zt tailscale enable, lock sshcipi zt netbird enable, lock ssh
From the web panelShown, read-onlyManaged: join, lock, unlock, leaveManaged: join, lock, unlock, leave

Which one, by situation#

SituationPick
Public Laravel or WordPress sites, you want no open port and a WAFCloudflare Tunnel
A staging site or an admin only your team should seeAccess on Cloudflare (a login wall), or the site on the mesh only
Close SSH to the world, keep using ssh as alwaysTailscale or NetBird
A team already on TailscaleTailscale, with a tag for servers
No third party in the control path, or a compliance requirement to self-hostNetBird self-hosted, or Tailscale with Headscale
A CI runner that deploys over SSHA mesh (the runner joins it), or Cloudflare's SSH with a service token
Two Cipi servers that sync apps to each otherA mesh: cipi sync uses the private addresses
All of the aboveBoth: the tunnel for visitors, the mesh for people

The combined setup#

The setup with the least exposed:

bash
# visitors: sites through Cloudflare, 80/443 closed to everything else
sudo cipi zt token set --token=CF_API_TOKEN --account=ACCOUNT_ID
sudo cipi zt enable
sudo cipi zt hostname add shop
sudo cipi zt lock http --yes
# people: SSH over Tailscale, 22 closed to the world
sudo cipi zt tailscale enable --tags=cipi
ssh cipi@100.101.102.103            # once, over the mesh
sudo cipi zt tailscale lock ssh

The two sides know each other: a port stays closed while either holds it, cipi firewall status says who holds each one, and unlock on one side tells you if the other still keeps it closed. The panel's Zero Trust tab shows both — Cloudflare's tunnel read-only, the mesh managed.

Step by step: Cloudflare Zero Trust and Tailscale or NetBird.

What none of them replaces#

Key-only SSH, Fail2ban, per-app isolation, updates and backups stay what they are. A mesh or a tunnel reduces who can knock; it doesn't change what's behind the door. And keep a way in that depends on neither — your provider's web console.

Questions

Can I use both?

Yes, and it's often the best setup: sites through the Cloudflare Tunnel with 80/443 closed, SSH and the panel over the mesh with 22 closed. Cipi keeps a port closed while either side holds it.

Which is simplest?

For SSH only, a mesh: join, sign in, lock. For public sites behind a CDN and WAF with no open port, the tunnel.

Which keeps working if the vendor is down?

A mesh keeps existing connections when its coordination server is down; a self-hosted one (Headscale, NetBird) depends on nobody. A tunnel needs Cloudflare up, as do visitors anyway behind Cloudflare.

Which sees my traffic?

Cloudflare terminates TLS for the sites it proxies. A mesh is end-to-end WireGuard between devices; the vendor only coordinates (or relays encrypted packets).

Does Cipi manage all three?

Yes: cipi zt for Cloudflare, cipi zt tailscale and cipi zt netbird for the mesh — the mesh from the web panel and the API too.

What if a step fails?

Read the matching guide's troubleshooting table first. Then check the docs, open a GitHub issue, or ask in the community.

Try it on your own server

Free and open source. One command on a fresh Ubuntu 24.04 or 26.04 VPS.

wget -O - https://cipi.sh/setup.sh | bash
Read the quickstart