Install Cloudfare tunnel as container in Proxmox VE

I have already installed Proxmox VE, therefore this guide is only to use with Proxmox VE.

  1. Go to your Proxmox VE, open Shell page in your preferred node.
  2. I will use “Proxmox VE Helper-Scripts” script to make it easier, to proceed paste this in the shell:
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/cloudflared.sh)"
  1. I just change the storage location and leave the rest of the settings as it is.
  2. I recommend to rename the Proxmox container created in case of having more than one tunnel container in the same Proxmox node. To do this go select the newly created Proxmox container, click on it, go to “DNS” – “Hostname”. Double click the default name there, and put the desired name.
  3. Now, login to Cloudflare and create a new tunnel in case there is none yet. To do this click on “Websites” – “Zero Trust” – “Network” – “Tunnels” – “Create a tunnel”.
  4. Select “Cloudflared” as tunnel type.
  5. Insert the name for the tunnel.
  6. Click on “Save tunnel”.
  7. Go to the newly created tunnel, click the three dots in the right side. Click on “Configure”.
  8. Choose Debian 64-bit for the environment.
  9. Copy the small window which have the title “If you already have cloudflared installed on your machine:”
  10. Just copy the text there.
  11. Now go back to the newly created Proxmox container and open the “Shell” menu.
  12. Paste the command there. If you are new to Proxmox, note that you cannot use “Ctrl + V” instead just use right click and paste there and press “Enter”.
  13. Go back to the tunnel main page in Cloudflare website, it should show “Status’ as “Healthy” now. If not, wait at least a few minutes and refresh the page. If it still red after some time do the steps above again as it seems you missed some steps.