2020-11-10 11:46:02 +00:00
|
|
|
# cloudflared
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Create a persistent connection to the Cloudflare network.
|
2020-11-10 11:46:02 +00:00
|
|
|
> More information: <https://developers.cloudflare.com/argo-tunnel/>.
|
|
|
|
|
|
|
|
- Authenticate and associate the connection to a domain in the Cloudflare account:
|
|
|
|
|
|
|
|
`cloudflared tunnel login`
|
|
|
|
|
2024-01-25 14:44:07 +00:00
|
|
|
- Create a tunnel with a specific name:
|
|
|
|
|
|
|
|
`cloudflared tunnel create {{name}}`
|
|
|
|
|
2020-11-10 11:46:02 +00:00
|
|
|
- Establish a tunnel to a host in Cloudflare from the local server:
|
|
|
|
|
|
|
|
`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}}`
|
|
|
|
|
|
|
|
- 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`
|
|
|
|
|
|
|
|
- Save logs to a file:
|
|
|
|
|
|
|
|
`cloudflared tunnel --hostname {{hostname}} http://localhost:{{port_number}} --loglevel {{panic|fatal|error|warn|info|debug}} --logfile {{path/to/file}}`
|
|
|
|
|
|
|
|
- Install cloudflared as a system service:
|
|
|
|
|
|
|
|
`cloudflared service install`
|