RDP via Cloudflared Tunnel is Slow.

I am trying to setup Cludflared Tunnel for secure rdp access to a server hosted in Azure. I am using the free tier of service for now. I am willing to upgrade to the paid version if its justified. Issue: The rdp logins are taking a very long time to complete. I can see that the tunnel is getting established because I can intermittently login. Sometimes it fails.
I have setup the agent on the host server and the agent server using the security token provided by cloudflared. These are both Windows 64 systems. The host is running Windows 10. The agent is running Windows 11. rdp just spins slowly. When it does connect, performance is very slow. This seems to be intermittent because it was working fine yesterday. Can someone guide me? Thanks.
No description
19 Replies
Steve Panozzo
Steve PanozzoOP•10mo ago
additional info - rdp connection is high laency when I do get in. Is there away to adjust cloudflrare to use a U.S> data cetner?
Steve Panozzo
Steve PanozzoOP•10mo ago
No description
Chaika
Chaika•10mo ago
no way to change DC, you can see the one you hit if you look at https://<hostname>/cdn-cgi/trace, look for colo= for the airport code Paid version shouldn't change anything to do with this. Try restarting the tunnel?
Steve Panozzo
Steve PanozzoOP•10mo ago
how do I do that?
Chaika
Chaika•10mo ago
if linux, using systemd, sudo systemctl restart cloudflared
Steve Panozzo
Steve PanozzoOP•10mo ago
oh the agent, yes I have tried that numerous times.
Chaika
Chaika•10mo ago
oh you said windows, then it depends on install I mean the tunnel side, not the side running cloudflared access rdp
Steve Panozzo
Steve PanozzoOP•10mo ago
One windows server in Azure, one Windows desktop (as the agent). The cloudflared agent is installed on both. The service is started on both with the command. I see both connectors in the console. should I try deleting the tunel and retry from sractch? Data center is Chicago IL so not an issue with data center 😦
Chaika
Chaika•10mo ago
yea I see a few posts about this on the community with no resolution, interesting that it was fine before.. I think your options basically are: 1. Try creating a new tunnel, you have a few other settings you can mess with like tunnel protocol (try http2) 2. Try Private Networking with WARP I've used RDP w/ access before without issues and I know a few others do, strange
Chaika
Chaika•10mo ago
https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-run-parameters/#protocol in your service, you can launch it with cloudflared tunnel --protocol http2 run <UUID or NAME> (or token instead) By default it should be using QUIC. You can check in the logs though
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 …
Steve Panozzo
Steve PanozzoOP•10mo ago
well, thanks to your posts because I restarted the cloudflared service on the host vm and that resolved the performance problem. Previously I restarted the service on only the client.
Chaika
Chaika•10mo ago
that works too yea that's what I meant, restart the service running the tunnel if it happens again I would try forcing http2 protocol though
Steve Panozzo
Steve PanozzoOP•10mo ago
Okay thanks a lot. I saw a post about http2 - how do I do that ?
Chaika
Chaika•10mo ago
https://discord.com/channels/595317990191398933/1202616855861399625/1202669099860103199
in your service, you can launch it with cloudflared tunnel --protocol http2 run <UUID or NAME> (or token instead)
if it auto created the service for it, you'd have to edit it
Steve Panozzo
Steve PanozzoOP•10mo ago
is this on the server or the client ?
Chaika
Chaika•10mo ago
server the one running the tunnel
Steve Panozzo
Steve PanozzoOP•10mo ago
yep ok ill try this thanks a million for your support. reverted back to slowness - trying http2 - ill post the results here when I have them. thanks a lot this solved it.
Chaika
Chaika•10mo ago
nice! hasn't come back or anything? That's good to know. The default is QUIC which I know in the past had some issues
Steve Panozzo
Steve PanozzoOP•10mo ago
I will let you know if it comes back. For now its working great.
Want results from more Discord servers?
Add your server