Hi Dingo,
Thanks for your question. I understand why it might seem simpler to use the Cloudflared package available through opkg (which, by the way, was not available or working when I developed my method). Here are a few reasons why I developed this:
1. Configuration Flexibility: The opkg package for Cloudflared enforces a specific YAML path and creates an init.d script confined to this path, which can be quite restrictive. In contrast, my script provides users with the flexibility to choose between two configuration methods:
- Locally Managed Configuration: This allows users to manage all configurations directly on their device.
- Web Console Managed Configuration: This leverages the Cloudflare web console for real-time adjustments and management, which is Cloudflare’s preferred method.
2. Comprehensive Solution: My script does more than just install the daemon. It sets up the service, creates the necessary configuration files, and ensures the tunnel is running smoothly. Additionally, it includes an update service that checks for and installs the latest version of Cloudflared, keeping your installation up to date with the latest features and security patches.
3. User Preferences: By offering both local and web-managed options, my script caters to a wider range of user preferences. Some users prefer the control of local management, while others appreciate the convenience of web-based management.
4. Current Limitations of the opkg Package: The existing opkg package doesn't provide the same level of flexibility and is tied to a specific configuration method. Until the package is updated to offer more flexible configuration options, my method remains a more versatile and comprehensive solution.
Conclusion: My goal was to create a method that offers maximum flexibility and control, catering to different user needs and preferences. Ideally, the opkg package would be updated to install only the daemon, allowing users to configure it using their preferred method. Until then, my script remains a robust alternative for setting up Cloudflare tunnels on OpenWrt systems.
I did try to retire my repository, but the feedback indicated that the current implementation available was limited. Thus, it still exists today. I still maintain my GitHub repository as it is heavily used, and I'm happy to work with those who maintain the opkg package to bring this complete functionality.
For detailed instructions, you can refer to the installation guide on GitHub.
I hope this clarifies things for you as to why I chose to develop and maintain this alternative method. If you have any further questions or need assistance, feel free to reach out.
Cheers