Problem Running Multiple Cloudflare Tunnels with Separate systemd Services

What is the name of the domain?

2ss.net.br and angiobrasilia.com.br

Related to

Cloudflare Tunnel

What is the issue you’re encountering

Cloudflare Tunnel: Only One of Two Tunnels Accessible Externally (Same Server, Separate Services)

What steps have you taken to resolve the issue?

I have configured two Cloudflare Tunnels (2ss and angio) using the command line on my Linux server running Nginx. Each tunnel is associated with a different domain, and both domains are properly configured in Cloudflare DNS.

Since only one tunnel service can run natively per server, I created two separate systemd services — one for each tunnel — to manage them independently.
Each tunnel has its own config.yml file. In both configs, I define two ingress rules, one forwarding to a service on port 80 and another to a service on port 12321. The configurations are identical, except for the domain names.

Both tunnels show as “Active” in the Cloudflare dashboard.

The problem:

I can externally access the services for the angio tunnel without any issues.

The services behind the 2ss tunnel are not accessible externally.

Locally, on the network, all services (both for angio and 2ss) are running fine.

DNS records for both domains are properly set up and point to the correct tunnels.

It seems that only one tunnel (angio) is routing traffic correctly from the outside, while the other (2ss) is not reachable, even though it appears active.

What I’ve already checked:

Local services are responding correctly.

DNS settings for both domains are correct.

Tunnel services are running and appear active.

Questions:

Is it possible that there is a conflict when running two tunnels on the same server, even with separate systemd services?

Is there a limitation or best practice when configuring multiple tunnels on a single host?

Could there be an issue related to how Cloudflare assigns connections to the tunnels internally?

Any insights or suggestions are highly appreciated!

This topic was automatically closed after 15 days. New replies are no longer allowed.