The $7 in this guide’s title is a Zero Trust plan price. Cloudflare’s Access plans page, checked on 2026-11-12, puts the $7 per user per month (paid annually) on the Pay-as-you-go Zero Trust plan, which Cloudflare describes as best for teams over 50 users; the Free plan is $0 with a 50-user limit, and Cloudflare’s tunnel changelog says “Every account includes 1,000 tunnels.” There are two ways to build the tunnel itself, a token-based tunnel managed in the dashboard or a locally managed tunnel driven from the command line, and Cloudflare’s get-started guide says a first published application takes under 5 minutes.
Don't miss new tech stories on Google
Add Tech Insider once in the Google app and our stories appear in your news suggestions.
The $7 seat price starts at the 51st user, not the first tunnel
On Cloudflare’s Access page the Free plan is “$0 forever” and is described as “Best for teams under 50 users or enterprise proof-of-concept tests.” Pay-as-you-go is priced at “$7 per user/month (paid annually)” and is aimed at teams over 50 users. Separately, Cloudflare’s get-started guide notes that Cloudflare automatically proxies traffic through its network, “applying CDN caching, WAF, and DDoS protection.”
The $7 comes to $84 per user per year ($7 x 12). We calculated the table below by multiplying that annual figure by headcount, with every seat charged once you are on Pay-as-you-go. Cloudflare’s page gives the per-user price, not a total, and does not say whether the first 50 seats stay free once an account passes 50 users, so treat the table as an upper estimate rather than a Cloudflare quote.
| Users | Plan | Monthly bill | Annual bill |
|---|---|---|---|
| 10 | Free | $0 | $0 |
| 50 | Free (at the limit) | $0 | $0 |
| 51 | Pay-as-you-go | $357 | $4,284 |
A homelab or a household with a handful of users stays on Free. A team that grows from 50 to 51 users moves from $0 to $4,284 a year on the table’s terms, so the 51st seat is the one to budget for before anyone adds it. A public site published through a tunnel with no login in front of it depends only on the connector.
Dashboard token, local config file or Quick Tunnel: choose before you install
Cloudflare Tunnel is, in Cloudflare’s words, an outbound-only daemon service that can run on nearly any host, which is why no router port has to be opened. Publishing an application needs three things, per the get-started guide: a Cloudflare account, a domain on Cloudflare (required to publish applications), and a server or VM with internet access to run cloudflared. If the server sits behind a restrictive firewall, the guide says to verify it can reach Cloudflare on port 7844 before you start.
| Dashboard-managed | Locally managed (CLI) | Quick Tunnel | |
|---|---|---|---|
| Cloudflare account | Required | Required | Not required: the get-started guide says you can create a public URL or restrict access by email without a Cloudflare account |
| Domain on Cloudflare | Required | Required (you pick the hostname at login) | Not used: temporary trycloudflare.com URL |
| Credential on the server | Tunnel token | cert.pem from login, plus a credentials JSON for each tunnel | None named in the guide |
| Where routes are defined | Published application routes in the dashboard | Ingress rules in config.yml | A local HTTP service exposed at a temporary URL |
| Fits | Cloudflare’s get-started route: first published application in under 5 minutes; Docker is supported with the token run command | Routing kept in a config.yml file | A temporary public URL for a local HTTP service |
The Quick Tunnel command, for a test of whether your service works behind a tunnel at all rather than for a permanent hostname:
cloudflared tunnel --url http://localhost:<APP_PORT>
Dashboard route: from Create Tunnel to a Healthy tunnel and a live hostname
Create and name the tunnel
In the Cloudflare dashboard go to Networking > Tunnels and select Create Tunnel. Give it a name such as production-web or staging-api, select Create Tunnel again, and under Setup Environment choose the operating system and architecture of your server. Pick the 64-bit Windows binary or the Apple Silicon macOS build, because Cloudflare announced on 2026-09-18 that the 32-bit Windows and Intel-based macOS builds are deprecated starting in 2027 (the changelog post is linked in the dated-changes table near the end of this guide).
Run the connector on the server
Copy the install command the dashboard shows for your platform. On Linux or macOS the cloudflared service install command takes the tunnel token, and Docker is supported as well, using the run command from Cloudflare’s guide:
sudo cloudflared service install <TUNNEL_TOKEN>
docker run cloudflare/cloudflared:latest tunnel --no-autoupdate run --token <TUNNEL_TOKEN>
A Compose version of the same token-based run command, with the token kept in a local .env file:
services:
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run --token ${TUNNEL_TOKEN}
restart: unless-stopped
Publish a hostname
Add a published application route to the tunnel. Cloudflare’s guide says the route maps a public hostname to a local service, so enter the hostname you want visitors to use and the address of the service your connector can reach. Once the connector is running, the tunnel should appear on the Tunnels page with a Healthy status.
Local CLI route: login, create, config.yml, route dns, run as a service
Choose this route if you want the routing in a file. Install cloudflared first, with Homebrew on macOS or the .deb package from the cloudflared releases on GitHub on an x86-64 Debian or Ubuntu host (or the install command the dashboard shows for your platform), then check the version:
brew install cloudflared
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared.deb
cloudflared --version
The remaining steps follow Cloudflare’s local management guide. Login opens a browser, you select your hostname, and cloudflared writes the account certificate, cert.pem, to its default directory. Creating the tunnel then produces a tunnel ID and a credentials JSON file.
cloudflared tunnel login
cloudflared tunnel create home-lab
cloudflared tunnel list
The create command prints output along these lines (the ID shown is an example; yours will differ), and the ID is what you paste into the config below:
Tunnel credentials written to /home/you/.cloudflared/a1b2c3d4-e5f6-7890-abcd-ef1234567890.json. cloudflared chose this file based on where your origin certificate was found. Keep this file secret.
Created tunnel home-lab with id a1b2c3d4-e5f6-7890-abcd-ef1234567890
Keep the credentials file private: copy it next to the config and restrict it to its owner, as the script below does, then write config.yml by hand with one rule per hostname. The script copies the credentials file but does not edit config.yml, so replace TUNNEL_ID in both of the first two config lines with the same ID you set in the script. Cloudflare’s get-started guide, in its ingress example, says the rules must include a catch-all rule at the end and that cloudflared responds with a 404 status code when a request matches no hostname. The last line of the sample config below is that catch-all.
set -eu
TUNNEL_ID="paste-your-tunnel-id-here"
sudo mkdir -p /etc/cloudflared
# adjust the source path to wherever the create command wrote the file
sudo cp "$HOME/.cloudflared/${TUNNEL_ID}.json" /etc/cloudflared/
sudo chmod u=rw,go= "/etc/cloudflared/${TUNNEL_ID}.json"
tunnel: TUNNEL_ID
credentials-file: /etc/cloudflared/TUNNEL_ID.json
ingress:
- hostname: app.YOUR_DOMAIN
service: http://localhost:<APP_PORT>
- hostname: ssh.YOUR_DOMAIN
service: ssh://localhost:<SSH_PORT>
- service: http_status:404
Point each hostname at the tunnel and run it in the foreground first:
cloudflared tunnel route dns home-lab app.YOUR_DOMAIN
cloudflared tunnel route dns home-lab ssh.YOUR_DOMAIN
cloudflared tunnel --config /etc/cloudflared/config.yml run home-lab
Cloudflare’s guide shows the DNS record for an API-created tunnel as a proxied CNAME to <TUNNEL_ID>.cfargotunnel.com. Once the foreground run connects, install it as a systemd service so it survives reboots. The service user must be able to read both the config and the credentials file.
sudo cloudflared service install
sudo systemctl enable --now cloudflared
sudo systemctl status cloudflared
journalctl -u cloudflared -f
If the service is reachable through a forwarded router or firewall port (our pfSense firewall setup guide applies if that firewall is pfSense), publish it on a temporary hostname first, move the real hostname to the tunnel once that works, and delete the forwarding rule last.
Logins, SSH, RDP and private subnets on top of a working tunnel
A published hostname answers to anyone who can reach it. The login layer is Cloudflare Access, so this is where the 50-user seat line from the first section applies. Cloudflare’s Workers documentation on Cloudflare Access says that for advanced policy configuration, such as multiple identity providers, device posture rules and service tokens, you edit the Access application in Zero Trust after you create it.
Non-HTTP services work through the same tunnel, but Cloudflare’s guide says SSH, TCP and RDP require cloudflared on the client side as well. Add the rule to the ingress block, and on the client route SSH through cloudflared:
ingress:
- hostname: desktop.YOUR_DOMAIN
service: rdp://localhost:<RDP_PORT>
- service: http_status:404
# ~/.ssh/config on the client
Host ssh.YOUR_DOMAIN
ProxyCommand cloudflared access ssh --hostname %h
To reach a whole network instead of one hostname at a time, add a private route. In the dashboard this is the CIDR tab of the tunnel, where you enter the network’s CIDR (Cloudflare’s example is 10.0.0.0/8) and select Save tunnel. From the CLI the equivalent is:
cloudflared tunnel route ip add 10.0.0.0/8 home-lab
Cloudflare’s replace-VPN guide notes that traffic reaching your internal applications over such a route carries the local source IP address of the host running cloudflared. Services that log or filter by client address will see that host, not the visitor. Cloudflare’s tunnel changelog also records private hostname and domain-based routing, launched in September 2025, which lets you route private traffic to a tunnel by hostname or domain instead of only by IP range.
Keeping the tunnel available, and the dated changes through 2027
Cloudflare’s Tunnel overview says each tunnel maintains four long-lived connections to two Cloudflare data centers for built-in redundancy. That protects against trouble at one data center, not against your own server going down. The replace-VPN guide recommends adding a cloudflared replica on another host, spreading critical services across different tunnels, keeping production and staging traffic in separate tunnels, enabling dashboard notifications to monitor tunnel health, and updating cloudflared regularly.
| Changelog date | What Cloudflare changed | What it means for your setup |
|---|---|---|
| 2026-09-18 | Announced that 32-bit Windows and Intel-based macOS builds of cloudflared are deprecated starting in 2027, with no new releases for either afterwards (changelog post) | Install the 64-bit Windows binary or the Apple Silicon macOS build on new machines |
| 2026-10-16 | Default route limit raised to 50,000 per account, up from 1,000, covering CIDR and hostname routes for Tunnel and Cloudflare Mesh (changelog post) | Only matters if you were rationing private routes. This is the route limit, a separate count from the 1,000 tunnels every account includes |
| 2026-10-16 | Tunnels for Platforms tier introduced, for running more than 1,000 tunnels in one account: 1,000 tunnels at no cost, then $4.50 per additional tunnel per month (changelog post) | Relevant only to accounts running more than 1,000 tunnels; extra tunnels are bought under Networking > Tunnels with Buy more tunnels in the Usage card |
| 2026-10-22 | cloudflared 2026.10.0 introduced URL normalization; 2026.11.0 extends it, and as of 2026-11-12 the changelog tells users to upgrade to 2026.11.0 or later (tunnel changelog) | Run cloudflared --version and update if you are below 2026.11.0. The date in this row is the changelog entry, not a release date for either version |
| As of 2026-11-12 | URL normalization is still off by default; new cloudflared releases turn it on by default from 2027-02-08, replacing the earlier 2027-01-25 date (changelog post) | Test hostnames that sit behind Access before 2027-02-08 |
Cloudflare’s changelog says to “Upgrade to version 2026.11.0 or later and test your path-based routing before that date, including rules that match paths containing semicolons.” Its own wording for the date change is that the new date gives you “time to test the updated behavior”, so the practical step is to run your Access-gated hostnames against a current cloudflared release with normalization on before the default flips.
A tunnel that will not go Healthy: the checks in order
- Outbound access. The server must reach Cloudflare on port 7844, and Cloudflare’s replace-VPN guide tells you to confirm that on-premise or cloud firewalls allow egress traffic on the required ports when a tunnel disconnects. Cloudflare’s tunnel changelog adds that since cloudflared 2026.5.2 the connector checks connectivity natively at startup and surfaces actionable remediation when something is blocked, so read the startup output first.
- The catch-all rule. Cloudflare’s guide requires a catch-all rule at the end of the ingress rules, so check that your config ends with one, as in the sample above.
- The DNS record. The hostname should be a proxied CNAME to the right <TUNNEL_ID>.cfargotunnel.com, the form shown in Cloudflare’s guide.
- The build. Check that the OS and architecture you chose match the machine, and that
cloudflared --versionreports 2026.11.0 or later, the release the changelog currently points to. - The credential. Confirm the token or credentials file belongs to the tunnel you created, and that the account running the service can read it.
For live debugging, Cloudflare’s 2026-08-10 changelog post says real-time Tunnel log streaming is available in the Cloudflare dashboard under Networking > Tunnels. To confirm the result, look for the Healthy status on the Tunnels page, or run cloudflared tunnel info home-lab, then request the public hostname:
cloudflared tunnel info home-lab
curl -I https://app.YOUR_DOMAIN
curl -I http://localhost:<APP_PORT>
If the tunnel is Healthy but the hostname fails, the last command, run on the cloudflared host, shows whether the local service answers at the address in your route.





