Skip to the content.

cloudflared (Cloudflare Tunnel)

What it is

A lightweight connector that creates an outbound-only, encrypted tunnel from your host to Cloudflare.

Why I use it

To expose internal services securely without opening inbound firewall ports, and to layer Cloudflare Zero Trust auth in front.

Modes

Quick start

1) Copy .env.example.env and set TUNNEL_TOKEN (or prepare named tunnel files). 2) Start:

docker compose up -d

3) In Cloudflare Zero Trust, add Access policies for your apps.

Security