TCP tunnel with local database

Okay so I have a database running locally on my computer, I want my deployed app to connect to it but without opening the port on my router, I install cloudflared and connected it to Zero Trust but the public hostname only proxies HTTP connection and not TCP, is it possible to have like a my app running next to a container that proxies the TCP traffic to my local computer into the database there ?
2 Replies
Akama Aka
Akama Aka6mo ago
?tunnel-tcp
Flare
Flare6mo ago
Cloudflare Tunnels use Cloudflare's proxy, which only supports proxying HTTP Traffic. If you want to use non-http applications over your tunnel, Cloudflare has a few other options: For a few specific protocols such as SSH, RDP, and SMB, Cloudflare has guides for them here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/ For Arbitrary TCP like Minecraft, MySQL, and any other tcp application, Cloudflare has a guide here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/ For Arbitrary UDP like Minecraft Bedrock, SMTP, and any other udp application, you will need to use Private Networking with WARP: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/connect-private-networks/ Please note for all of these except SSH and VNC which can be browser-rendered, you will either need to use cloudflared (Cloudflare's tunnel daemon) on the client machine running in the background or Private Networking with WARP, and have WARP installed on the client machine logged into your Zero Trust Team.
Want results from more Discord servers?
Add your server