← All notes

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

Sources

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

Permanent ID: iil:note:vy5syst3

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.},
}

Markdown

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.

All artifact files (JSON index)

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.