cloudflared tunnel: reach a service without opening a port
Expose an internal service through Cloudflare Tunnel and Access when there is no public IP or port forwarding is unwanted.
When you need it
The home connection has no public IP, or it has one but you would rather not open a router port. A tunnel connects from the inside out, so nothing inbound is exposed; Access then puts an identity check in front of the service.
What gets delivered
- Tunnel creation with a token for remote management; credentials are not baked into an image.
- Ingress rules: which hostname maps to which local address and port, and what happens to everything else.
- DNS: the hostname points at the tunnel, certificates handled by Cloudflare.
- Access: applications, policies and identity providers (email code, Google, GitHub, as needed).
- Origin checks: how the backend confirms a request really came through Cloudflare.
- A debugging order: tunnel healthy but 502, DNS not applying, Access login loops.
Not included
- Bypassing carrier limits. A tunnel fixes inbound access, not line quality or blocked ports upstream.
- Cloudflare accounts, domains and plan fees.
- The application's own permission model. Access protects the entrance, not the roles inside the app.
Who it fits
You want to reach home services from outside without exposing an admin page, or you already keep a domain on Cloudflare and want the entrance, certificate and login in one place.
How to start
Email which services should be reachable, who uses them, whether there is a public IP, and whether login is required. Scope first, then a quote.
Questions
The tunnel is healthy. Why 502?
Healthy only means the connection is up. Next check whether ingress matches, whether the local service is listening, and whether the Host header is right, in that order.
Can I limit access to a few people?
Yes. Access policies by email or identity group; delivered and verified together.
Related
Not sure where to start?
Run the assessment first, or send your setup and goal by email. The reply says whether it fits and what happens next.