How to RDP to Windows using ZeroTrust Cloudflared

  • Open and connect a tunnel to the target (Windows), with hostname: RDP – 192.168.x.x
  • Install cloudflare service at “The Start” (Mac OS, or any)
  • Run this command at the start to forward Websocket (hostname for rdp to localhost:3389). The following command is for the hostname of the tunnel: rdp.anhtuanlqd.com
sudo cloudflared access rdp --hostname rdp.anhtuanlqd.com --url rdp://localhost:3389

sudo cloudflared access tcp --hostname vncmini.anhtuanlqd.com --url localhost:5901

sudo cloudflared access ssh --hostname sshl8.anhtuanlqd.com --url localhost:2000
  • Open the app for remote (in Mac OS use “Windows” app). In the IP: localhost:3389 (it will go through websocket to authenticate.
  • Then Done!!