Creating different tunnels for different VPS

I have 2 servers and I want to set up Cloudflare tunnels to protect them. I already created and connected a tunnel for one of my servers. Would you create another tunnel or add another public hostname and connect that to the other VPS?
9 Replies
KQ
KQOP10mo ago
These servers are under the same domain name, in different subdomains.
Kasumi
Kasumi10mo ago
You dont have to Just copy paste the Config
KQ
KQOP10mo ago
Ok thanks @Akama Aka | Cloudflare Simp |PoR Apparently that was a bad idea @Akama Aka | Cloudflare Simp |PoR
Kasumi
Kasumi10mo ago
Why?
KQ
KQOP10mo ago
Both domains pointed to the same VPS :D I created another tunnel
Kasumi
Kasumi10mo ago
okay
KQ
KQOP10mo ago
Thanks again
Chaika
Chaika10mo ago
Public Hostnames are the local config on each device. By connecting more then one vps to a tunnel, it just randomly picks the vps to send the connection to, and then it tries to connect to the origin. It has no concept of which public hostname lives where but yea, multiple tunnels as you've already figured out is the way to go all public hostnames must be available from all connectors/machines running that tunnel
KQ
KQOP10mo ago
Thanks @Chaika

Did you find this page helpful?