LinuxCommandLibrary

cloudflared

Cloudflare Tunnel client for secure connections

TLDR

Login to Cloudflare

$ cloudflared tunnel login
copy
Create tunnel
$ cloudflared tunnel create [tunnel-name]
copy
List tunnels
$ cloudflared tunnel list
copy
Run tunnel
$ cloudflared tunnel run [tunnel-name]
copy
Route DNS to tunnel
$ cloudflared tunnel route dns [tunnel-name] [hostname]
copy
Quick tunnel (temporary)
$ cloudflared tunnel --url http://localhost:[8080]
copy
Delete tunnel
$ cloudflared tunnel delete [tunnel-name]
copy

SYNOPSIS

cloudflared tunnel command [options]
cloudflared access command [options]

DESCRIPTION

cloudflared is the Cloudflare Tunnel client that creates secure, outbound-only connections from your origin server to Cloudflare's global network. This eliminates the need to expose public IP addresses or open inbound firewall ports, as all traffic is routed through Cloudflare's edge.
The tool supports tunneling HTTP, SSH, RDP, and arbitrary TCP protocols. Named tunnels provide persistent configurations, while quick tunnels offer temporary public URLs for development and testing. Tunnels can be configured to route traffic based on hostname and path rules defined in a YAML configuration file.
cloudflared also provides Cloudflare Access integration for authenticating users before they reach your origin, and can run as a system service for production deployments.

PARAMETERS

--url url

Local service URL
--hostname host
Public hostname
--config file
Configuration file path
--credentials-file file
Tunnel credentials
--origincert file
Origin certificate path
--no-autoupdate
Disable auto-updates

CONFIGURATION

~/.cloudflared/config.yml

Main tunnel configuration defining tunnel ID, credentials path, and ingress routing rules.
~/.cloudflared/cert.pem
Origin certificate obtained during `cloudflared tunnel login`, used to authenticate tunnel creation.

TUNNEL COMMANDS

login

Authenticate with Cloudflare
create name
Create new tunnel
run name
Start tunnel
list
List all tunnels
delete name
Remove tunnel
route dns/ip
Configure routing
info name
Show tunnel details
cleanup
Delete stale connections

CAVEATS

Tunnel credentials are per-tunnel. Quick tunnels are temporary. Free tier available. Previously called Argo Tunnel.

SEE ALSO

ngrok(1), ssh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community