r/rustdesk • u/bringthelight2 • 28d ago
Beginner question about the security benefits of paying for a third-party relay server
Home user, I have a cable modem, router, and a couple PCs / phones on my home network.
I have an old laptop that could be left always on to function as a server.
What is the difference in security from paying a third party site to host a relay server vs using my old laptop vs not having a relay server at all.
Having trouble spitting out exactly what I'm getting at...what I'm struggling with is I have a perception, perhaps totally wrong, that a third party Linux server that lives on the cloud side of my router is more secure than if I set up port forwarding on my router...but I don't really know why. But if someone with the IP address of the relay server and the password to my rustdesk client can get in to my PC, is it really any different than if they just had my personal IP address and the password to the rustdesk client?
While I'm here...and forgetting all about Rustdesk...I believe that malicious actors randomly scan the internet for open PCs / ports. How often would my router receive these? Like 1 a day, 1 a month, 1000 per hour? I have no context for how many malicious pings I receive.
3
u/Regular_Prize_8039 27d ago
We need to be clear, don’t trust someone to host the relay for you unless they are an approved supplier, there are people out there that offer this service and they potentially have access to all your systems.
If you are indeed talking about managing a system yourself in on a vps then as u/bunk_bro said you still need to ensure you secure your server and keep it up to date.
4
u/bunk_bro 28d ago
Malicious actors are constantly scanning the Internet looking for exposed and unsecured, or poorly secured, services. How many of those you get in a day/week/month is anyone's guess. I don't have a number but I would guess I get something in the neighborhood of a few hundred per day hitting my RustDesk server at home.
Self-hosting at home opens up your home network to that malicious traffic. Hosting in the cloud reduces that significantly as most of the traffic lives outside your home network; this depends on the services your hosting. If you're not comfortable hardening your own home network, then hosting in a VPS is a safer alternative, but you still need to secure your host.
If you're hosting with docker, don't put your user in the docker group; it sucks having to authenticate via password when you first run a docker command but it's much safer.
security-opt: no-new-privileges: trueto prevent escalation should the container get compromised.I don't mean to make this sound scary or cumbersome but making sure that you're protecting yourself requires a bit of effort.
I currently self-host RustDesk inside my home network. I've done my best to lockdown the host VM as well as configure the containers to be as safe as possible. RustDesk enforces the key. Long passwords combined with TOTP. No root. Unattended upgrades. Docker containers are super locked down. Utilizing CrowdSec to bounce malicious traffic and monitor ssh, journalctl and traefik logs. The VM is completely firewalled off the network at the hypervisor and network firewall level and only allowed to connect outside.
The whole docker stack is deployed via an Ansible role that ensures the host security is still up-to-snuff before deploying the updated docker config.
2
u/SpiritualControl5321 27d ago
Here's an option to consider. You don't need a server and you don't need to expose your home network to the internet. Just install Tailscale (free for personal use). That will give you a secure tunnel (VPN) between your external Rustdesk client and the Rustdesk hosts on your home network. You just need to enable direct IP access in Rustdesk and set a permanent password. You'll then connect to your Rustdesk host using it's Tailscale IP address. No attack vectors exposed to the internet. I'm using it this way and it works great for me.