Mongodb tcp - zero trust - cloudflare tunnel

What is the name of the domain?

db-zerotrust-main-1.prieds.online

Related to

Cloudflare Tunnel

What is the error number?

without error but cant connect

What is the error message?

without error message

What is the issue you’re encountering

Failed Connect

What steps have you taken to resolve the issue?

stil not solved

What are the steps to reproduce the issue?

cloudflared [already installed , for backend , frontend, ssh no issue]

but mongodb TCP 6000 still not connect

Zero Trust → Network → db-zerotrust-main-1.prieds.online → Public Hostname Page →

[email protected]

TCP 192.168.100.122:6000

mongodb connection string :

mongodb://:@db-zerotrust-main-1.prieds.online/admin?tls=true&authSource=adminrce=admin

Screenshot of the error


Zero Trust → Network → db-zerotrust-main-1.prieds.online → Public Hostname Page →

[email protected]
TCP 0.0.0.0:6000

mongodb uri :

mongodb://(username):(password)@db-zerotrust-main-1.prieds.online:80/admin?authSource=admin&directConnection=true

tested 2024-07-16

cloudflared - zero trust - ssh in borwser [ok]
cloudflared - zero trust - backend [ok]
cloudflared - zero trust - frontend [ok]
cloudflared - zero trust - mongodb [still issue]

up, still issue mongodb

this case such as using haproxy

example :
SERVER A (mongoDB) 192.168.100.124:6000 → reserve proxy (HAProxy) → SERVER B (forward) 192.168.100.123:6000 (ISSUE invalid size)

CALL FROM SERVER B → mongodb://(username):(password)@192.168.100.123:6000?authSource=admin

CALL FROM SERVER A → mongodb://(username):(password)@192.168.100.124:6000?authSource=admin (OK)

cloudflare zero trust , reserve proxy consume from haproxy ?