Cloudflare Tunnels on Raspberry Pi

I've recently been testing Cloudflare's free tunneling/access/zero trust solution to avoid have to open ports on my home network to access a couple of resources. The setup process was fairly straightforward, the "trickiest" part was pulling the correct version for the Raspberry Pi 3 that I was using.

Assuming you already have a Cloudflare Tunnel setup and have your token you can run the following to get it installed and started on your Pi. This will install the latest version available and start the tunnel.

curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-armhf.deb 
sudo dpkg -i cloudflared.deb 
sudo cloudflared service install YOUR_KEY

To update an existing install use the following.

curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64.deb
sudo dpkg -i cloudflared.deb
sudo systemctl restart cloudflared.service

Upgrade

If you notice any errors or have any recommendations, please feel free to leave a comment below.