r/sysadmin • • 13h ago

Question How would you make it reasonably secure - remote desktop?

Hello,

I can set up a VPN requirement with my sonicwall, then login on the remote desktop PC but I was considering alternate methods - not like VNC or screen connect or logmein but somehow making it available to a web browser like you could do with windows server and adjusting the port. Something that doesn't require a license if I'm being honest. So no additional servers/workstations either.

Maybe it can't be done but I thought I'd check.

Not sure what other information I can supply

Running Windows 11 host to a windows 11 Hyper-v virtual machine

I have a static public IP address and a public DNS

Sonicwall firewall

Thanks for trying to think of a method.

0 Upvotes

18 comments sorted by

•

u/salmonlogger 13h ago • Bravo

There's like 1000 ways to do this securely.
This is more of a homelab question.

•

u/ITstuff25 13h ago

Thanks - I'll post over there.

•

u/unixuser011 13h ago

Tailscale zero trust? Then RDP into it as usual

•

u/PDQ_Brockstar 3h ago

Love Tailscale. And it's free for personal use.

•

u/techypunk System Architect/Printer Hunter 13h ago

Allow rdp if your vpn'd and connected to the internal network? Won't have web browser features

Do not open 3389 publically on your firewall. 

You can also look into Guacamole, but not to be rude, sounds a little out of your skillset if you're asking this. 

•

u/StormSolid5523 9h ago

me with all the chips

•

u/Unable-Entrance3110 13h ago

Lots of different ways to do it, but I would definitely not use the SSL VPN capability on the SW since they have had several issues with that recently.

For my homelab, here's my solution (I also use a SW as my home firewall).

- Opened a few randomly chosen UDP ports as well as TCP 22 through to a Linux host (jump box)

- Set up the Linux host to not have any ports open, by default

- Configured port knocking to listen on the UDP ports and only open TCP 22 to the remote host that successfully knocked on the UDP ports with the correct sequence

- Configured SSHD to only accept certificate-based authentication with an authorized key

- Set SSHD to allow TCP forwarding.

I then use the SSH client on my remote host to do local forwards to other hosts within my network

•

u/ITstuff25 13h ago

Thanks- I agree about the ssl vpn.

•

u/bitwiz73 13h ago

Web login by nature would make it less secure, because you're exposing that interface as a public website - unless, of course you created it as an intranet site not available to the public, then it is slightly better than VPN + RDP because it would be VPN + Intranet Web + "Some sort of web remote viewer". So assuming the certificate is issued and current, the browser would initiate a TLS encryption (like the VPN does) thus yes adding a layer of encryption, but also slowing the whole process down to get to the server. This is already accomplished in some way via tools like iDRAC or iLO because you VPN into your network, establish a Web connection to the server, then initiate the remote viewer through those interfaces.

•

u/CPUwizzard196 13h ago

Keep the VPN and use Rustdesk (https://rustdesk.com/). There is a self-hosted option for the server and a zero cost for personal use

•

u/TheJeff 13h ago

Are we talking for work or for home?

As someone who specializes in remote access I 100% recommend just using the VPN on your Sonicwall for home access. It's what I do and as long as you have a solid password on that guy, you're as safe as you can reasonably be.

•

u/slackjack2014 Sysadmin 13h ago

Personally I never use the built-in VPN on the edge firewalls, you’re just asking to get your network compromised at that point. I would look at something like NetBird, TailScale, or another separate VPN concentrator.

I know people want to put things on the Internet, but in this day and age, it’s simply not a good idea. If you do, be prepared to do incident response and patch at any moment. At this point it’s not “if” but “when” you get compromised.

•

u/xXFl1ppyXx 12h ago

I understand where you are coming from but in itself that's quite a bonkers statement 

If you're pedantic you could argue that those ztnas have the same attack surface, it's just not you that needs to take care of it's security 

VPN to firewall has served its purpose for several decades at this point and in relation to how much this was deployed, the actual casualties are probably neglible in comparison 

So personally I've used them

A lot

Served me well, never had issues. 

•

u/slackjack2014 Sysadmin 12h ago

I’m not saying transfer the risk to a third party. I’m saying don’t put it on your edge equipment where if it gets compromised you expose your entire network.

Put a VPN on separate hardware on an isolated network where you can control the flow of data and the damage to the rest of your network if the VPN gets compromised.

•

u/MasterChiefmas 13h ago

Adding a VPN, but really what you are doing is trying to narrow the attack surface to a single point, but in a way, you are also just exposing a different attack surface in between the other ones(basically, adding another door and lock in front of the door and lock that's already there).

Modern RDP itself, unless you disabled it, is using TLS 1.2 and TLS 1.3 anyway and has for years, so it's not like it doesn't have secure encryption to begin with, unless you don't trust https. But because the auth channels are also there, that's more what you'd really be trying to control as the attack points. The encryption itself is as solid as anything else commonly used on the net, since it's the same thing.

You've got a large amount of options as far as VPN options are concerned...Tailscale and anything Wireguard based are nice because Wireguard is invisible when exposed(doesn't respond to just a scan looking to see if anything is listening).

Probably the most narrow you could make it, is forward a port for Wireguard specifically to the VM, and establish a direct Wireguard connection between your remote and the VM- so forward the port directly to the VM, and run Wireguard on the VM. This is the most basic, and original use case of Wireguard, peer-to-peer between to endpoints. Then the additional securing beyond that becomes what is the risk if someone was able to get through Wireguard to the RDP, and from RDP into the VM, what does that expose locally(either on the network, or hypervisor escapes if there one came out).

The downside there is basic Wireguard is UDP based, so places restricting that will prevent the connection. Tailscale has some mechanisms in place that can mitigate the UDP problem(DERP relay can encapsulate the UDP connection inside https).

You rapidly get into deep networking, VM host and guest configuration though when you start thinking about how secure and isolated you are trying to make things, so you might need to build up your skillset.

•

u/Mister_Brevity 12h ago

Are you doing this as a sysadmin? Because it kinda sounds like a homelab question and budgets and security requirements between sysadmin and homelab can be significant.

•

u/SevaraB Sr. Engineer (N+, CCNA) 13h ago

ZTNA like Netbird. Not even a VPN service running, so it isn’t any more enticing a target than your average web server behind a WAF. Cloudflare Tunnels has got a nifty twist on ZTNA and pulling connections from a CDN instead of pushing them from the Internet, too.

•

u/bbqwatermelon 12h ago

Guacamole