- Download binary https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation#linux
- run command
cloudflared tunnel --url localhost:8000
- login and select domain
cloudflared tunnel login
- Create tunnel name
cloudflared tunnel create <NAME or UUID>
- Create config.yml in your home path
~/.cloudflared/config.yml
url: http://localhost:8000
tunnel: <NAME or UUID>
credentials-file: /home/null/.cloudflared/YOUR_TUNNEL_CREDENTIAL_FILE.json
- Map tunnel to your hostname/subdomain
cloudflared tunnel route dns <tunnel name/id> <hostname>"
- Run tunnel
cloudflared tunnel run <tunnel name>
- Run tunnel specific port
cloudflared tunnel run --url localhost:3000 <tunnel name>