Install on Linux

curl -fsSL https://raw.githubusercontent.com/VickyDev810/Cloudify-Tunnel-Manager/main/install.sh | bash

Or read it first:

curl -fsSLO https://raw.githubusercontent.com/VickyDev810/Cloudify-Tunnel-Manager/main/install.sh
less install.sh
bash install.sh

Open a new terminal if cloudify is not found. Continue with Getting started. What the script does: The idea behind it.

Options#

Pass options after bash -s -- when piping:

curl -fsSL .../install.sh | bash -s -- --update
bash install.sh --branch dev --verbose
Option Effect
--update Update an existing installation, including Cloudify 1.x (details)
--branch NAME Install a branch or tag instead of main
--repo URL Install from another Git repository (a fork, or a local path)
--local DIR Install from a folder you already have (bash install.sh --local .); no git needed
--skip-cloudflared Don't install or update cloudflared
--uninstall Remove Cloudify; tunnels, settings and cloudflared stay
--uninstall --purge Also delete Cloudify's own data in ~/.cloudflared/cloudify (users, connections)
--verbose, -v Show the output of every command
-h, --help Show the options

Distribution notes#

  • RHEL/Rocky/Alma 8, older Ubuntu/Debian: install a newer Python first, e.g. sudo dnf install -y python3.11 (RHEL 8) or sudo apt install python3.9 python3.9-venv (Ubuntu 18.04).
  • Arch, Manjaro, EndeavourOS: if the installer stops, run sudo pacman -Syu python python-pipx git.
  • Alpine: first apk add bash curl. For auto-start: rc-update add crond.
  • NixOS, Gentoo, Void, Clear Linux: install Python 3.8+, pipx and git first.
  • No root or sudo: Python 3.8+, git and curl must already be installed.

Manual installation#

# 1. cloudflared: Cloudflare's package repository (Debian/Ubuntu example)
#    https://pkg.cloudflare.com/index.html, or a release binary:
curl -fsSL -o cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64
sudo install -m 0755 cloudflared /usr/local/bin/cloudflared

# 2. Cloudify with pipx
pipx install git+https://github.com/VickyDev810/Cloudify-Tunnel-Manager.git

# or in a virtualenv
python3 -m venv ~/.local/share/cloudify/venv
~/.local/share/cloudify/venv/bin/pip install git+https://github.com/VickyDev810/Cloudify-Tunnel-Manager.git
ln -s ~/.local/share/cloudify/venv/bin/cloudify ~/.local/bin/cloudify

Check: cloudify --version and cloudflared --version.

Auto-start#

With systemd:

systemctl --user status cloudflared-tunnel-web
journalctl --user -u cloudflared-tunnel-web -f      # live logs
systemctl --user restart cloudflared-tunnel-web

If a tunnel only starts at login, check loginctl show-user $USER -p Linger. An administrator can run sudo loginctl enable-linger <user>.

Without systemd: crontab -l shows the @reboot line. The log is ~/.cloudflared/logs/<name>.log.

Run the dashboard as a service#

Create a user service:

mkdir -p ~/.config/systemd/user
cat > ~/.config/systemd/user/cloudify-dashboard.service <<'EOF'
[Unit]
Description=Cloudify dashboard
After=network-online.target

[Service]
ExecStart=%h/.local/bin/cloudify serve --serve-port 8765
Restart=on-failure
RestartSec=5

[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable --now cloudify-dashboard
loginctl enable-linger "$USER"        # start at boot without logging in

Warning: by default the dashboard listens on every interface over plain HTTP, so passwords cross the network unencrypted. Read Security first.

  • HTTPS: add --ssl-certfile ... --ssl-keyfile ....
  • This machine only: add --secure, then use ssh -L 8765:localhost:8765 user@server and open http://localhost:8765.
  • Remote access: allow TCP port 8765 in the security group.

Firewall#

Tunnels need no inbound port. They connect out to Cloudflare on port 7844 (UDP, TCP as fallback).

Next steps#