Repository navigation
v1.2.0 — self-uninstall, verified downloads, safer teardown
New
cftun uninstall(and "Uninstall everything" in the menu) now also removes cftun itself and its shell completions. Use--keep-cftunto remove only cloudflared.- Uninstall also deletes leftover temporary tunnel configs (
/tmp/cftun-quick-*.yml).
Security
- cloudflared downloads (deb, rpm, static binary) are verified against the SHA-256 digest published on the GitHub release before the privileged install, and only over HTTPS.
- Uninstall validates every path before deleting:
--configmust be a regular file,~/.cloudflaredmust be a real directory; anything else aborts without deleting. - Uninstall stops if the package manager query fails, instead of deleting the binary by hand.
install.shnow fails ifsha256sumis missing instead of installing unverified.
Changed
cftun token setno longer accepts the token as an argument (it would stay in shell history). Paste it at the prompt or setCLOUDFLARE_API_TOKEN.- If creating the DNS record fails on
add/edit, the previous config is restored and the service is not restarted. - All scripts accept
-h/--help.
Internal
Full best-practices refactor: consistent package layout, no hardcoded values, command groups with narrow dependencies, menu built from the command tree.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bash