Hi,
I'm not sure if this is the right place to post this but here we go
I've created an install / uninstall script to setup a Cloudflare tunnel on an Rasberry Pi4 running as a OpenWrt router
I am going to start on a Luci app to make this easier to create and maintain Cloudflare tunnels
Please let me know if you find this useful or any changes
This script will quickly complete a full install of Cloudflare tunnel onto a Raspberry Pi running OpenWrt
The script pulls down the latest version of cloudflared and installs it
sets up the service to run it
creates the required config in the cloudflare console and system files
sets up the service to check for new updates daily
Prerequisite:
You have a active cloudflare account
You have a domain with DNS managed via cloudflare
you are logged into the cloudflare web console (time saver)
I recently had the opportunity to briefly review the installation process of Cloudflared using opkg. I observed that it mandates a specific yaml path and creates an init.d script confined to this path, along with other configurations which seem rather restrictive.
In contrast, my method seems to be more versatile and comprehensive, providing users with the option to configure using either approach. Additionally, I've found that managing these tunnels through the Cloudflare dashboard is generally more effective, as it allows for online configuration adjustments. It's noteworthy that Cloudflare offers a one-way conversion from Yaml to Console management, which is quite telling in itself.