Skip to content

Releases

v1.2.1 — service gate and symlink-safe uninstall

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 17:33

Fixed

  • Every cftun service ... subcommand (status, start, stop, restart, enable, disable, logs) now offers to install cloudflared when it is missing, not only service install.
  • cftun uninstall no longer aborts when the config, its backup, ~/.cloudflared or 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 | bash

v1.2.0 — self-uninstall, verified downloads, safer teardown

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 17:27

New

  • cftun uninstall (and "Uninstall everything" in the menu) now also removes cftun itself and its shell completions. Use --keep-cftun to 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: --config must be a regular file, ~/.cloudflared must 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.sh now fails if sha256sum is missing instead of installing unverified.

Changed

  • cftun token set no longer accepts the token as an argument (it would stay in shell history). Paste it at the prompt or set CLOUDFLARE_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

v1.1.1 — installer sets up cloudflared

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 16:44
  • The installer now installs cloudflared right away with the native method of your distribution (skip with CFTUN_SKIP_CLOUDFLARED=1).
  • cftun tunnel no longer prints ERR Configuration file ... was empty.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bash

v1.1.0 — temporary tunnels and tab completion

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 16:39

New

  • cftun tunnel [--port P]: temporary public URL (https://<name>.trycloudflare.com) for a local port, no domain or Cloudflare account needed. cftun setup offers 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 ... to cftun tunnels create|list|delete.
curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bash

v1.0.2 — fix uninstall without a registered service

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 16:32

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 | bash

v1.0.1 — fix curl|bash exit error

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 16:24

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 bash

v1.0.0 — cftun: Cloudflare Tunnel manager

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 16:23

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 setup

Highlights

  • cftun setup: guided flow from zero to a working tunnel
  • cftun add|rm|edit|list: manage hostname → port routes with validation, backup and rollback
  • cftun check: local and public health checks with hints
  • cftun service ...: systemd, OpenRC and SysV
  • cftun uninstall: removes cloudflared and everything it created
  • Interactive menu when run without arguments

Binaries: linux amd64, arm64, arm, 386 (static). Verify with checksums.txt.