ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
5 replies
JustinNoel

How to Create Tunnels for Different Accounts with `cloudflared`?

I'm trying to use cloudflared to create tunnels for different accounts.

I already have the first created for account "A". It's working fine.

Now, I want to create another tunnel for account "B".
-
cloudflared tunnel create smn-dev
cloudflared tunnel create smn-dev

-
cloudflared tunnel list
cloudflared tunnel list


All is good.

Now, I try to add the DNS:
-
cloudflared tunnel route dns [TUNNEL_ID] smn-dev
cloudflared tunnel route dns [TUNNEL_ID] smn-dev


When I do this, it adds the dns entry to the domain associated with my first tunnel on account "A" instead of account "B".

I can't find anyway of associating a tunnel to anything but the first account.

Perhaps it's because I just started this off all wrong. Is there a step by step guide to doing something like this? The docs really just seem to assume all your tunnels will be on the same zone and account.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Monitoring Cloudflared Tunnels
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Creating different tunnels for different VPS
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
IPv6 cloudflared (zero trust tunnels)
Cloudflare DevelopersCDCloudflare Developers / general-help
13mo ago
Multiple accounts in Cloudflared
Cloudflare DevelopersCDCloudflare Developers / general-help
12mo ago