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.
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.
19 Replies
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?
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?
how do I do that?
if linux, using systemd,
sudo systemctl restart cloudflared
oh the agent, yes I have tried that numerous times.
oh you said windows, then it depends on install
I mean the tunnel side, not the side running cloudflared access rdp
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
😦
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
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 …
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.
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
Okay thanks a lot.
I saw a post about http2 - how do I do that ?
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
is this on the server or the client ?
server
the one running the tunnel
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.
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
I will let you know if it comes back. For now its working great.