Hi, my postgres database which I want to connect to requires non HTTP (TCP) connections. I created a tunnel and set up a super simple express.js app and configured the tunnel to forward http requests to that server:
The connection times out.
I checked that the database is accessible via the local network. When I directly connect via the local network it works. The ufw on the machine itself is disabled.
My rough understanding of cloudflared is that it only listens on a few ports.
My Ingress rule for HTTP certainly listens on the regular HTTP/S ports on the Proxied hostname.
But my Ingress Rule for SSH probably listens on 7844. So I proxy my SSH connection through cloudflared on my Mac so it can tunnel through to my server.
My PiHole is similar. Cloudflared on my Pi listens for PiHole requests on 5053, then proxies DoH through cloudflared.
Point being that if it’s not web traffic, I’m pretty sure you have to tunnel that traffic locally with Cloudflared.