This is the Cloudflare Tunnel network layer underneath the WordPress-to-Workers migration: the static sites have no origin at all, and everything that does have an origin is reached through a connector rather than a forwarded port.
What does “zero open ports” actually mean?
It means no inbound allow rule and no port forward at the internet edge. Services still listen on ports inside the network; what disappears is the path from the public internet to those ports.
The distinction matters: a tunnel gives a hostname a path to an internal service without a forwarded port, but the service is still reachable by anyone who passes the policy in front of it. The security is the combination of no inbound path and an identity check at the hostname.
The practical setup is:
- the router has no port-forward rules for these services;
- the host firewall blocks inbound traffic except established outbound flows;
- one or more connectors maintain outbound connections to Cloudflare;
- Cloudflare maps a hostname to the connector and applies Access policy before forwarding;
- the origin only sees requests that came through that path.
The last point is the one people skip. If the origin also accepts requests from the local network, anyone on that network bypasses Access. Cloudflare recommends validating the Access token at the origin, or enabling “Protect with Access” on the tunnel, so a bypass is rejected rather than served.
How does Cloudflare Tunnel work?
cloudflared runs inside the network and opens outbound connections to Cloudflare’s global network. The tunnel is a persistent object identified by a UUID, and one tunnel can have several connectors, each sending traffic to the nearest Cloudflare data centre (Cloudflare docs).
browser
|
v
Cloudflare edge -- Access policy --> tunnel <-- outbound -- cloudflared
|
v
local app : port
Three consequences follow from the outbound-only design:
- No public IP is required. The origin can sit behind carrier NAT and still serve a public hostname.
- The firewall can be closed. Most networks allow outbound by default, so the connector works without opening anything.
- The tunnel configuration becomes the perimeter. Anything mapped in the ingress rules is reachable through Cloudflare, with or without an Access application in front of it, so the config deserves the same review as a firewall rule.
Multiple connectors are worth running for anything important: if one host loses its connection, the others keep serving, and Cloudflare routes around the failure. A single connector is a single point of failure for every hostname on that tunnel.
Where does Access fit?
Access sits in front of a hostname and decides whether the request reaches the tunnel. It is an identity-aware proxy, not a network filter: the policy is evaluated against the user, identity provider, device or service credential, and a request matching no Allow policy is denied.
For a self-hosted app, the setup is three steps:
- Create an Access application for the hostname.
- Add an Allow policy — an email domain, an identity provider group, a device posture check or a service token.
- Publish the hostname through the tunnel.
The order matters. Cloudflare’s documentation warns that if there is no Access application in place, the published application will be available to anyone on the internet. Creating the Access app first makes the default deny real before the route exists.
The 19 Access applications are mostly internal tools: reporting dashboards, scrapers, lead tooling and operational consoles. None needs to be anonymously reachable. They need to reach the people who use them, wherever those people are, without a VPN client on every laptop. Automated callers use service tokens with a Service Auth policy rather than an interactive login.
Access is also why one tunnel can serve public and private hostnames. A marketing site behind it has no Access application and is public by design; an internal dashboard has one and is private. The difference is the policy, not a separate path.
What runs behind the tunnel?
The services fall into four groups, and each gets a different exposure model.
| Service class | How it is reached | What protects it |
|---|---|---|
| Public SaaS and marketing sites | Cloudflare edge; Workers with no origin, or tunnel to the container platform | The application’s own login and billing |
| Internal dashboards and tools | Cloudflare edge, Access application, tunnel | Identity policy, deny by default |
| Private Git forge | Private overlay network only | Network reachability plus forge authentication |
| GPU inference and image generation | Private overlay network only | Network reachability, bound to the overlay address |
| Hypervisor and storage admin | Private overlay network or jump host | Network reachability plus local login |
The pattern is deliberate. Anything a customer uses is public and authenticated by the application. Anything an employee uses is public at the edge but gated by Access. Anything that is infrastructure — Git, GPU, hypervisor, storage — is not published at all.
Why is the private Git forge not published?
Because it holds the source, the deploy keys and the webhook secrets for everything else. A public forge is a high-value target, and publishing it would add an internet-facing authentication surface for no operational benefit.
The forge runs as a private instance on the local network, with registration disabled and sign-in required. Remote access goes over the private overlay network, not a public hostname. Deploys work because the platform pulls over the local network and receives a webhook on change, so push-to-deploy never needs a public endpoint.
This is the least glamorous part of the design and the one that removes the most risk. A Git server that cannot be reached from the internet cannot be brute-forced, scanned or exploited by an unauthenticated stranger. The same is true of the GPU services: they are reachable by the internal apps that call them, and by nothing else.
The trade-off is dependence on the overlay network. That is a smaller dependency than a public forge, and it fails in a way that is easy to explain: the network is down, so the tool is unavailable.
How do the GPU services stay private?
The GPU host runs inference and image-generation services that internal tools call. Those services bind to the overlay network address rather than 0.0.0.0, so Docker publishes the port on that interface only, and the host firewall has no rule that would expose it publicly.
Two details make that work:
- Binding is explicit. A container published on all interfaces is reachable from every network the host is attached to. Publishing on the overlay address limits it to overlay hosts.
- No tunnel ingress rule exists for them. Even if the service were reachable from the tunnel host, no hostname maps to it. The tunnel config is a second gate.
A laptop on the overlay can call the image service; a laptop in a coffee shop cannot. That is the intended boundary for a service with no user authentication of its own.
Tunnel and Access compared with the alternatives
| Approach | Inbound ports | Who can reach the app | Operational cost | Main risk |
|---|---|---|---|---|
| Port forward plus firewall allowlist | Yes, at least one | Anyone the rule allows, often broad | Low | Exposed origin, IP allowlists age badly |
| VPN for every user | One VPN port | Users who connect the VPN | Medium: client, accounts, split tunnelling | A compromised VPN account reaches the network |
| Cloudflare Tunnel only | None | Anyone who knows the hostname | Low | A route without Access is public |
| Cloudflare Tunnel plus Access | None | Users and services that match a policy | Medium: identity provider, policies | Misconfigured Allow policy or a bypass path at the origin |
Which should you choose?
Choose Tunnel plus Access when the apps are web-based, the users are spread out, and you want per-application identity rather than network-level access. It removes the inbound port, gives each app its own policy, and produces an access log per request.
Choose a VPN when users need general network access — SSH to many hosts, arbitrary protocols, internal DNS — and the set of users is small and trusted. A VPN grants the network; Access grants the application. Most estates end up with both.
Choose a port forward only when the service must be reachable by something that cannot use Cloudflare, and accept that the origin is now directly attackable. If you do, put a WAF and an IP allowlist in front of it and treat the origin IP as public.
What broke and what we changed
An application opened a port behind the tunnel’s back. A media server’s remote-access feature had silently created an inbound UPnP mapping on the router, which defeated the no-open-ports claim without changing any tunnel configuration. It surfaced in an audit; its remote-access feature was disabled and the mapping removed. The lesson is that “no forwarded ports” is a property to verify, not a state configured once; applications can create their own paths.
Video through the tunnel was the wrong workload. Proxying video through Cloudflare on a free-tier zone runs into terms that discourage it, and the traffic pattern is a poor fit for a request-oriented proxy. That path was replaced with a WireGuard link to a small VPS for the media server. Tunnel plus Access is excellent for dashboards and APIs, and not the right tool for bulk video.
The wildcard DNS record caught an unintended hostname. A wildcard record routed staging and preview hostnames through the tunnel, which was convenient, but it also caught www on a zone where www had no explicit record, sending it to the container platform instead of a redirect. The fix was an explicit record and a redirect rule. Wildcards are useful for previews and dangerous for anything that should 404.
Origin health checks hit the wrong entrypoint. Two apps had HTTP-only origin routers because Cloudflare terminated TLS. Checking them directly over HTTPS on the origin returned a 503 from the catch-all router, which looked like a broken app but was a correct response to the wrong request. Health checks should go through the public hostname or match the origin’s actual entrypoint.
The hosted Git integration became unreliable. The forge was moved in-house, with the container platform pulling over the local network and receiving webhooks from the private instance. That removed the dependency on a third-party integration and made the deploy path independent of an external service’s availability.
Related
Frequently asked questions
Is Cloudflare Tunnel a VPN?
No. A VPN gives a device network-level access to a private network. Cloudflare Tunnel publishes a specific hostname to Cloudflare and forwards it to one local service. Users reach an application, not a network, and Access evaluates a policy per application rather than per connection.
Do you need a public IP address to use Cloudflare Tunnel?
No. The connector makes outbound connections to Cloudflare, so the origin can sit behind NAT with no public address. That is the main reason the design works on a home or office connection without a static IP or a port forward.
Is Cloudflare Tunnel secure on its own?
It is a secure transport, not an access control. A published route with no Access application is reachable by anyone who knows the hostname. The tunnel removes the inbound port; Access decides who gets through. Use both, and validate the Access token at the origin so a request that bypasses Cloudflare is rejected.
How many applications can sit behind one tunnel?
A tunnel can carry many hostnames, and one account can run several tunnels. The practical limit is operational: every hostname needs an ingress rule, a DNS record, an Access policy and a place in the monitoring. Splitting by environment or by host keeps the blast radius of a connector failure small.
What happens if the connector goes down?
The hostnames on that tunnel stop resolving to a working origin, while the applications themselves keep running locally. Running two connectors on separate hosts keeps the tunnel available through a single failure. The connector's health should be monitored like any other production dependency.
Can you put SSH behind Cloudflare Tunnel?
Yes. Cloudflare supports SSH through the tunnel, with Access in front of it, and this platform uses a jump host for browser-based remote desktop instead. Either way, the principle is the same: no inbound SSH port, and an identity check before the connection reaches the host.
Why not expose the Git forge through Access as well?
It could be, and that is right if remote access without the overlay is required. Leaving it off the public internet is a smaller surface: no hostname to scan, no login page to attack. The forge is infrastructure a handful of people use, not a service that must be reachable anywhere.
