Protecting Windows RD connection with Cloudflare?

I have a server running on 1.2.3.4. I can use Remote Desktop to connect to it using the IP 1.2.3.4 and the windows account credentials. Is there a way to limit IPs which can connect to that Remote Desktop using CloudFlare? I've been looking at Zero Trust but can't figure out how to set it up. what I tried so far: Running Cloudflared on the server and setting up a tunnel. I'm new to this and this would be my first time doing this so my tunnel setup might've been incorrect also. what I want is not to be able to use a domain to connect to the RD but to secure the connecting through cloudflare when connecting using the server IP.
4 Replies
Hello, I’m Allie!
Connections using 1.2.3.4 would be hitting your server directly, and thus bypassing Cloudflare You can lock it down so that connections only work via Cloudflare, but then you can't connect via your IP
Rename
RenameOP10mo ago
thanks for the quick reply, could you point me on how I'd be able to make it work via Cloudflare only?
Hello, I’m Allie!
If you don't expose the RDP port via the firewall on your server/host, then it won't be accessible via the open internet. Since cloudflared is on your server, it isn't affected by that firewall, and thus it will still be able to connect.
Rename
RenameOP10mo ago
thanks again!
Want results from more Discord servers?
Add your server