Forrest logo
back to the cloudflared tool

cloudflared:tldr:ba5a4

cloudflared: 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
try on your machine

This command is using the cloudflared tool to create a tunnel between a local machine and Cloudflare's network. Here is the breakdown of each component:

  • cloudflared: This is the command to run the cloudflared tool, which is a lightweight proxy that establishes secure tunnels to Cloudflare's edge servers.

  • tunnel: This is the command provided by cloudflared to create a tunnel.

  • --hostname ${hostname}: This option specifies the hostname for the tunnel. ${hostname} is a variable that represents the hostname you want to associate with the tunnel. You need to replace ${hostname} with your desired hostname.

  • localhost:${port_number}: This specifies the local address and port number where the traffic from the tunnel should be forwarded. localhost refers to the local machine, and ${port_number} is a variable that represents the specific port number you want to use. You need to replace ${port_number} with the desired port number.

  • --no-tls-verify: This option instructs cloudflared to not verify the server's TLS certificate during the connection establishment. It is generally used for testing purposes in situations where the certificate cannot be validated or is self-signed.

Overall, this command sets up a secure tunnel between your local machine and Cloudflare's network, allowing traffic to be forwarded from the specified hostname and port to your local machine.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the cloudflared tool