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
These servers are under the same domain name, in different subdomains.
You dont have to
Just copy paste the Config
Ok thanks @Akama Aka | Cloudflare Simp |PoR
Apparently that was a bad idea @Akama Aka | Cloudflare Simp |PoR
Why?
Both domains pointed to the same VPS :D
I created another tunnel
okay
Thanks again
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
Thanks @Chaika