How To Set Up Cloudflared Tunnel
Overview
I used the link below as a guide:
Steps
1. Install and Login
sudo wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared-linux-amd64.deb
cloudflared tunnel login
You will pick which domain to connect to during the log in process.
2. Create Tunnel with a name
cloudflared tunnel create TUNNEL_NAME
This should start an active session, leave that running and go on to next step (3).
3. Migrate Tunnel in Zero Trust Dashboard
- Login to Zero Trust via the account you connected
- Navigate: Access > Tunnels
- You should see your TUNNEL_NAME with status active
- Click configure
- Click through steps to migrate
- Add public hostname and path to service.
Click
Save hostname
Back on the Tunnel Overview Tab, copy the service install code and run it on your machine to get setting pulled down
4. Securing Host (if needed)
- Navigate: Access > Applications
- Click App an application
- Select
Self-hosted
- Give it the same subdomain and domain as the tunnel
- Policies, add the admins