cloudflared

Command line tool to create a persistent connection to the Cloudflare network.

TLDR

Authenticate and associate the connection to a domain in the Cloudflare account

$ cloudflared tunnel login
copy


Establish a tunnel to a host in Cloudflare from the local server
$ cloudflared tunnel --hostname [hostname] localhost:[port_number]
copy


Establish a tunnel to a host in Cloudflare from the local server, without verifying the local server's certificate
$ cloudflared tunnel --hostname [hostname] localhost:[port_number] --no-tls-verify
copy


Save logs to a file
$ cloudflared tunnel --hostname [hostname] http://localhost:[port_number] --loglevel [panic|fatal|error|warn|info|debug] --logfile [path/to/file]
copy


Install cloudflared as a system service
$ cloudflared service install
copy

DESCRIPTION

cloudflared creates a persistent connection between a local service and the Cloudflare network. Once the daemon is running and the Tunnel has been configured, the local service can be locked down to only allow connections from Cloudflare.

Copied to clipboard