Cloudflare Tunnel lets you put a website, an API or an admin panel on the internet without opening a single inbound port on your server. A small program called cloudflared runs next to your application and dials out to Cloudflare. Visitors reach your hostname through Cloudflare’s network, and nothing on the server listens to the outside world. It is one of the cheapest security upgrades a small business can make. It also has a few traps you should know about before you rely on it.
Cloudflare Tunnel connects your server to Cloudflare through outbound connections, so the origin needs no public IP or open inbound port. Every account includes 1,000 tunnels at no cost. Set it up from the dashboard or run cloudflared in Docker, then close the old ports and put a login in front of anything private. Error 1033 means Cloudflare cannot find a running connector.
We read Cloudflare’s Tunnel documentation, the Tunnel FAQ and the error 1033 page on 26 November 2026. Commands and limits below come from those pages.
What Cloudflare Tunnel does
Outbound connections only
A normal web server waits for visitors on ports 80 and 443. Anyone who finds its IP address can knock on those ports, whether or not they come through Cloudflare. Cloudflare Tunnel turns that around. The cloudflared program opens outbound connections from your server to Cloudflare, and requests travel back down those connections.
According to the Cloudflare Tunnel documentation , each tunnel keeps four long-lived connections to two Cloudflare data centres. Cloudflare’s CDN, WAF and DDoS protection apply to the traffic on the way in. Your firewall can then drop every unsolicited inbound connection, because nothing needs one any more.
As a result, it closes a real gap. When the nginx2root flaws appeared in November 2026, Cloudflare explained that proxied origins were shielded only when attackers could not reach them directly. A tunnel was the first fix it listed. Our nginx2root guide covers that case in detail.
Public applications and private networks
Cloudflare now splits the job in two. Cloudflare Tunnel is the tool for publishing an HTTP application or API on the public internet under your own hostname. For private access, such as staff reaching internal systems, Cloudflare recommends a newer product called Cloudflare Mesh. Mesh gives each enrolled server, laptop and phone a private IP address so they can talk to each other directly.
Older guides use Cloudflare Tunnel for both jobs, and existing private routes keep working. For a new setup, follow the split. It decides which documentation you read and which settings you need.
What Cloudflare Tunnel costs
The tunnel itself costs nothing on any plan. Cloudflare’s documentation says every account includes 1,000 tunnels at no cost. Platforms that need more can buy extra capacity through a programme called Tunnels for Platforms.
The traffic through a tunnel follows the rules of your Cloudflare plan. The Tunnel FAQ points out one catch. On the Free, Pro and Business plans, Cloudflare’s service terms require a specific paid service for video and other large files. A tunnel does not change that. Any Access seats, Load Balancing or other paid products you put in front of the tunnel are billed on their own terms too.
For a typical small business site, the tunnel therefore adds nothing to the bill. The costs you might notice come from what you build around it. For example, a login page in front of an admin area uses Cloudflare Access, which is priced separately.
Setting up Cloudflare Tunnel
From the dashboard
The dashboard route takes a few minutes once your domain is on Cloudflare.
- In the Cloudflare dashboard, go to Networking and then Tunnels, and select Create Tunnel.
- Name the tunnel after what it connects, for example production-web.
- Choose your server’s operating system, then copy the install command and run it on the server.
- Wait until the tunnel shows as Healthy, then add a published application route.
- Enter the hostname, such as app.example.com, and the local service, such as http://localhost:8080.
If the server sits behind a strict firewall, check first that it can reach Cloudflare on port 7844. The documentation lists that as the first check when a tunnel will not connect.
With Docker
Cloudflare publishes an official cloudflared image. The dashboard gives you a token, and the container needs nothing else.
1docker run cloudflare/cloudflared:latest tunnel --no-autoupdate run --token <TUNNEL_TOKEN>
Add a restart policy such as --restart unless-stopped, so the connector comes back after a reboot. Treat the token as a password. Anyone holding it can run a connector for your tunnel. Keep it in your secrets store, and rotate it if it ever leaks.
Quick tunnels for testing
For a quick demo you do not even need an account. Running cloudflared tunnel --url http://localhost:8080 prints a temporary trycloudflare.com address that points at your local service. Since October 2026 you can add --allowed-mail with an email address, so visitors must enter a one-time code first.
Quick tunnels are for testing only. Cloudflare’s documentation lists their limits. They have no uptime guarantee, handle up to 200 requests in flight and do not support server-sent events. The hostname also changes every time.
Protecting what a Cloudflare Tunnel publishes
A tunnel hides your server, but it publishes whatever you point it at. An admin panel on a tunnel hostname is just as public as before, unless you add a login. For anything private, create a Cloudflare Access application for that hostname. Visitors then have to sign in before their request ever reaches your server.
The same goes for SSH and remote desktop. Cloudflare lists both among the services a tunnel can carry. However, an SSH server published through a tunnel is still an SSH server. So either put Access in front of it or keep it on a private mesh instead.
Next, close the old door. The Tunnel FAQ suggests checking from outside that the server no longer answers on ports 80 and 443. Running netcat -zv <your-server-ip> 443 from another machine should fail once the firewall drops inbound traffic. If it still connects, attackers can skip Cloudflare entirely.
One side effect catches people out. Cloudflare Tunnel does not pass visitor IP addresses to your origin, because every request arrives from cloudflared. Your logs, rate limits and fraud checks will see a local address. Cloudflare’s documentation explains how to restore the original visitor IP from request headers, so plan for that before you switch.
Keeping a Cloudflare Tunnel running
One cloudflared process already spreads its four connections across at least two data centres. A crash of the host running it still takes the site down. For that, Cloudflare supports replicas, which are extra cloudflared processes on other hosts that all serve the same tunnel. Cloudflare sends each request to the nearest healthy replica.
Replicas do not balance load in any clever way, as the availability documentation makes clear. If you need round-robin or health-based steering between several origins, that is a job for Cloudflare Load Balancing. Replicas also let you update cloudflared without downtime, one host at a time. Keep cloudflared current, since many tunnel problems disappear after an upgrade.
Finally, keep a record of where each tunnel runs and what it serves. According to the Tunnel FAQ, a deleted tunnel cannot be restored. A remotely managed tunnel also loses its configuration when it goes.
Fixing error 1033 and other tunnel errors
Error 1033 is the one most people meet first. Cloudflare’s error 1033 page
explains it plainly. Cloudflare cannot find a healthy cloudflared instance to receive traffic for that hostname. Check the tunnel’s status under Networking and then Tunnels, or run cloudflared tunnel list.
| Tunnel status | What it means | What to do |
|---|---|---|
| Healthy | Four connections are up and serving traffic | Nothing, look elsewhere for the fault |
| Inactive | The tunnel exists but cloudflared has never connected | Install and run cloudflared on the server |
| Down | cloudflared was connected and has stopped | Restart the service and check the host |
| Degraded | Traffic flows but at least one connection failed | Check the network path and the logs |
Docker setups also have one more common failure. If cloudflared logs that it cannot look up Cloudflare’s edge addresses, the container’s DNS resolver is usually at fault. The troubleshooting guide suggests starting the container with --dns 1.1.1.1 in that case.
Cloudflare Tunnel or Tailscale
The two get compared constantly, yet they solve different problems. Cloudflare Tunnel publishes a service on a public hostname through Cloudflare’s network. Tailscale describes itself as a peer-to-peer mesh network built on WireGuard, where only devices on your private network can talk to each other. One puts something on the internet safely, while the other keeps things off it.
So the question to ask is who needs to reach the service. For example, customers on the open web point to Cloudflare Tunnel, with Access in front of anything that needs a login. Only your own staff and devices point to a private mesh. Tailscale offers that, and so does Cloudflare’s own Mesh. Plenty of small businesses end up using a tunnel for the public site and a mesh for admin work.
Moving a server behind a tunnel works best alongside a proper look at the rest of the machine. Our server security analysis reviews open ports, firewall rules, SSH and remote desktop settings, running services and logging, with a risk rating for every finding. The full tier applies the hardening and firewall changes for you and runs a verification scan 30 days later. If you want a Cloudflare Tunnel set up on a server that has also been checked properly, see our server security analysis or use the quote request form .