Tunnel + Direct Port Access
Hi, I want to create a tunnel for my server application (helix perforce) and allow other users in the Internet use this service:
as hostname I have something like:
perforce.domain-i-bought.com
and it is used for my private ip address (changed for sec safety):
TCP 192.168.0.1:1666
The problem is on client side, as application demands providing a port, locally I can do localhost:1666 and everything works.
Connecting to perforce.domain-i-bought.com:1666 doesn't work (and it's understandable as Cloudflare is probably filtering traffic on this port).
Do you have any advice how I can set up such connection?
Thanks in advance
4 Replies
?tunnel-tcp
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.
TLDR: Tunnel non-http (like arbitrary tcp/udp) requires the client to install some sort of software & run to be able to connect
Make sure the Cloudflared service is running on the remote server. Then, you need to install Cloudflared locally on the client and execute the command:
After that, try connecting in the local application using
127.0.0.1
and port 23333
.
Cloudflared documentation: Cloudflare Tunnel Run Parameters - https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-run-parameters/Cloudflare Docs
Tunnel run parameters | Cloudflare Zero Trust docs
This page lists general-purpose configuration options for a Cloudflare Tunnel. You can add these flags to the cloudflared tunnel run command for remotely-managed and locally-managed tunnels. These flags can also be added as key/value pairs to your configuration file.