Expose an origin with Cloudflare Tunnel and cloudflared
Answer: Cloudflare Tunnel provides a secure way to connect your resources to Cloudflare without a publicly routable IP address. The cloudflared daemon creates outbound-only connections to Cloudflare's global network and proxies traffic from the Cloudflare network to your origins.
How the tunnel is structured
With Tunnel, you do not send traffic to an external IP. HTTP web servers, SSH servers, remote desktops, and other protocols can connect safely to Cloudflare. A tunnel is a persistent object identified by a UUID. That object is the logical link between your origin and Cloudflare. You can run as many cloudflared processes (connectors) as needed in one tunnel. Each connector sends traffic to the nearest Cloudflare data center.
The client daemon
The command-line client is a tunneling daemon that sits between the Cloudflare network and your origin, for example a webserver. The origin can remain as closed as possible, because the daemon receives the client requests from Cloudflare. Proxying to origins is available under cloudflared tunnel help. cloudflared access help covers TCP traffic at Layer 4, such as SSH or RDP, to origins protected with cloudflared tunnel. The README also describes the WARP client as a way to access private origins behind Tunnels without cloudflared access on the client side.
| cloudflared | tunnel | |---|---| | cloudflared | Daemon that creates outbound connections | | tunnel UUID | Persistent logical link to Cloudflare | | connectors | cloudflared processes within the same tunnel | | cloudflared access | TCP access, such as SSH or RDP |
See also
Claims
- id: C1 claim: cloudflared creates outbound-only connections from your infrastructure to Cloudflare. source: S1 evidence: "creates outbound-only connections"
- id: C2 claim: A tunnel is a persistent object identified by a UUID. source: S1 evidence: "a persistent object identified by a UUID"
- id: C3 claim: The cloudflared daemon proxies traffic from the Cloudflare network to your origins. source: S2 evidence: "proxies traffic from the Cloudflare network to your origins"
Sources
- [S1] Cloudflare Tunnel. Cloudflare docs. https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/ . License: CC-BY-4.0. Accessed 2026-11-19.
- [S2] cloudflared README. cloudflared (GitHub). https://raw.githubusercontent.com/cloudflare/cloudflared/master/README.md . License: Apache-2.0. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Cloudflare docs, Cloudflare Tunnel; cloudflared (GitHub), cloudflared README. CC-BY-4.0; Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Cloudflare docs, Cloudflare Tunnel; cloudflared (GitHub), cloudflared README. CC-BY-4.0; Apache-2.0.
Cite this
iinventedlight. 2026. "Expose an origin with Cloudflare Tunnel and cloudflared." iinventedlight Library, iil:note:vy5syst3, version of 2026-11-19. https://iinventedlight.com/library/notes/cloudflare-tunnels/. License: CC-BY-4.0.
@misc{iil_note_vy5syst3,
author = {{iinventedlight}},
title = {{Expose an origin with Cloudflare Tunnel and cloudflared}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/cloudflare-tunnels/},
note = {Permanent ID iil:note:vy5syst3. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- cloudflare-tunnels.table.json (table; CC-BY-4.0)
- cloudflare-tunnels.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/cloudflare-tunnels.md.