Repository navigation
Releases
v1.2.1 — service gate and symlink-safe uninstall
Fixed
- Every
cftun service ...subcommand (status, start, stop, restart, enable, disable, logs) now offers to install cloudflared when it is missing, not onlyservice install. cftun uninstallno longer aborts when the config, its backup,~/.cloudflaredor a leftover temporary tunnel config is a symlink: the link itself is removed (never followed), so no system files are left behind.- A permission error is no longer treated as "file does not exist" when detecting the service, the login certificate or completion files.
- Temporary file close errors are no longer discarded.
Internal
Shared menu helper, error formats moved to package constants, file reader and temp directory access injected into the config store and installer.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bashv1.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 | bashv1.1.1 — installer sets up cloudflared
- The installer now installs cloudflared right away with the native method of your distribution (skip with
CFTUN_SKIP_CLOUDFLARED=1). cftun tunnelno longer printsERR Configuration file ... was empty.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bashv1.1.0 — temporary tunnels and tab completion
New
cftun tunnel [--port P]: temporary public URL (https://<name>.trycloudflare.com) for a local port, no domain or Cloudflare account needed.cftun setupoffers it when you have no domain.- Tab completion: the installer sets it up for bash, zsh and fish; the uninstaller removes it.
- Commands that need cloudflared offer to install it when it is missing.
Changed
- Named-tunnel management moved from
cftun tunnel ...tocftun tunnels create|list|delete.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bashv1.0.2 — fix uninstall without a registered service
Fixes cftun uninstall failing with systemctl stop cloudflared: exit status 5 when the service was never registered (for example, when setup was interrupted before installing it). The failure made uninstall.sh stop before removing the cftun binary.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bashv1.0.1 — fix curl|bash exit error
Fixes tmp: unbound variable printed at the end of the one-liner installer. The binary was installed correctly, but the script exited with status 1.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cloudfare/v1.0.1/install.sh | CFTUN_VERSION=v1.0.1 bashv1.0.0 — cftun: Cloudflare Tunnel manager
First release of cftun, a CLI to run one Cloudflare Tunnel on a Linux server and publish local apps on your domain without editing YAML.
Install
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cloudfare/v1.0.0/install.sh | CFTUN_VERSION=v1.0.0 bash
cftun setupHighlights
cftun setup: guided flow from zero to a working tunnelcftun add|rm|edit|list: manage hostname → port routes with validation, backup and rollbackcftun check: local and public health checks with hintscftun service ...: systemd, OpenRC and SysVcftun uninstall: removes cloudflared and everything it created- Interactive menu when run without arguments
Binaries: linux amd64, arm64, arm, 386 (static). Verify with checksums.txt.