Establish a tunnel to a host in Cloudflare from the local server, without verifying the local server's certificate

cloudflared

  • Command-line tool to create a persistent connection to the Cloudflare network.
    More information: <https://developers.cloudflare.com/argo-tunnel/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}} --no-tls-verify

click the source code to copy