Skip to content

Instantly share code, notes, and snippets.

View RoccoHoward's full-sized avatar
🏠
Home Office

Rocco Howard RoccoHoward

🏠
Home Office
View GitHub Profile
@RoccoHoward
RoccoHoward / Running multiple Cloudflare Tunnel services.md
Last active October 1, 2025 13:06 — forked from shrmnk/README.md
Running multiple cloudflared tunnels with token

Running multiple Cloudflare Tunnel services

This is a simple guide to setting up multiple cloudflared services (via systemctl). Useful if you have to run tunnels authenticated by different accounts and want to let each account handle their tunneling configurations via the Dashboard/UI.

  1. (optional, so its easy to clone the service definition file) Setup your first tunnel using the standard sudo cloudflared service install <token> command
  2. cd into the folder containing the cloudflared.service definition (usually /etc/systemd/system or /usr/lib/systemd/system
  3. Duplicate the existing cloudflared.service into another file with a unique name e.g. sudo cp cloudflared.service cloudflared-b.service
  4. Open up your new service cloudflared-b.service in your favorite text editor
  5. Change the token within the ExecStart= line to match your second tunnel
  6. Change the service Description= to match your service filename