Install
On the Proxmox node as root:
bash -c "$(curl -fsSL https://iac.heyer.systems/rustdesk/ct.sh)"Container from the Debian 13 template · default: 1 CPU, 512 MiB RAM, 4 GiB disk
On the Proxmox node as root:
bash -c "$(curl -fsSL https://iac.heyer.systems/rustdesk/vm.sh)"Tested image 1.1.16-20261116.1059 (boot test Nov 16, 2026) · default: 1 CPU, 1024 MiB RAM, 8 GiB disk
Customise the commandYour own values for CPU, RAM, network and modules – no dialog
Then: RustDesk client → Network: ID server and relay server <IP>, key in the guest: cat /var/lib/rustdesk-server/id_ed25519.pub
More steps are needed outside the guest – see the setup guide.
Generator pick your settings, copy the command
Please check the highlighted fields.
Setup guide
RustDesk clients need to find this server from the internet: a DNS name, four port forwardings and the public key of the server in every client. This guide also covers a ready-made client for your customers – without RustDesk Server Pro.
customer / technician ──TCP 21115-21117, UDP 21116──▶ router ──▶ RustDesk guest (hbbs + hbbr)
Before you start
| What | Example |
|---|---|
| DNS name | help.example.org, an A record to your public IP |
| Port forwardings on the router | 21115/tcp, 21116/tcp, 21116/udp, 21117/tcp → the guest |
| The public key | in the guest: cat /var/lib/rustdesk-server/id_ed25519.pub |
Use a name, not the IP, everywhere: if the IP changes, only the DNS record does – not every client you handed out.
Cloudflare: set the record to DNS only (grey cloud). RustDesk speaks its own TCP and UDP
protocol, which the Cloudflare proxy does not pass. A download page for customers can use a
second, proxied name (e.g. support.example.org).
1. Router and DNS
| Port | Protocol | Purpose |
|---|---|---|
| 21115 | TCP | NAT type test |
| 21116 | TCP and UDP | ID registration and connection setup |
| 21117 | TCP | relay |
UDP 21116 is the one that gets forgotten: without it clients stay “not ready”, although a port scan (TCP) shows everything open. Do not forward 22, 21118 or 21119 – the web client belongs to RustDesk Server Pro, the guest keeps those ports closed.
From your own network: many routers do not send a connection to their own public IP back inside (NAT loopback, “reflection”). Then the name works for customers but not for you at home. The clean fix is split DNS – the router answers the name with the internal address. OpenWrt:
uci add_list dhcp.@dnsmasq[0].address='/help.example.org/192.0.2.20'
uci commit dhcp && service dnsmasq restart
2. Your own client (technician)
Install RustDesk from GitHub, then Settings → Network → unlock → ID/Relay server:
| Field | Value |
|---|---|
| ID server | help.example.org |
| Relay server | empty – the client takes the ID server |
| API server | empty (Server Pro only) |
| Key | the content of id_ed25519.pub |
The status at the bottom must say Ready.
3. A ready-made client for customers
Windows: the official client, renamed
Download the signed rustdesk-<version>-x86_64.exe from the releases and rename it to:
rustdesk-host=help.example.org,key=<content of id_ed25519.pub>.exe
The client reads server and key from its file name. The customer starts it – no installation, no
settings – and because it is the vendor’s signed file, Windows shows no SmartScreen warning.
iac creates the key without /, so it is valid in a file name.
Offer it on your website as a download. If a customer downloads it twice, Windows renames the copy
(… (1).exe) and the key in the name breaks: ask them to delete old copies, or offer a ZIP with
the file inside.
macOS, Linux, Android
There is no file name trick. On your configured client: Settings → Network → Export server
config. Send the text to the customer, who uses Import server config in the same place. For
deployments: rustdesk --config <text>. macOS asks once for screen recording and accessibility –
every remote support tool needs that.
Your own branding
Name, logo and a signed installer with the server built in come from the client generator of RustDesk Server Pro (Basic plan or higher). Building the client yourself is possible, but needs a code signing certificate (otherwise SmartScreen warns) and, for macOS, notarisation – and the client is AGPL: a changed version must come with its source.
4. A session
- The customer starts the client and reads out ID and the one-time password.
- You enter the ID in your client and the password when asked.
- The session is end-to-end encrypted; this server only sees encrypted data. After the session the one-time password is gone.
For customers you look after regularly – with their consent – install the client (Install) and set a strong permanent password per customer in Settings → Security. For everybody else, stay with the one-time password and no installation.
5. Check it
In the guest: bash /var/lib/iac/src/core/bin/iac-smoke – services, ports, key permissions and
that both services only accept clients with the key.
From outside (mobile hotspot, not your own network):
nc -vz help.example.org 21115 && nc -vz help.example.org 21116 && nc -vz help.example.org 21117
Then connect once with the right key – it must work – and once with a wrong one – it must fail.
The key
Every client with the key may use this server; once you hand it to customers it is no secret any
more. It keeps strangers on the internet out, not your customers. A new key pair locks out every
client that has the old one: stop both services, delete /var/lib/rustdesk-server/id_ed25519*,
run update (it creates a new pair), and hand out the new key.
Troubleshooting
| Symptom | Cause |
|---|---|
| Client says “not ready” | UDP 21116 does not arrive: forwarding missing, or you test from inside without NAT loopback – try the internal IP or a mobile hotspot |
| “Key mismatch” | the key in the client is not the content of id_ed25519.pub (copy it without line break) |
| Connection works only slowly | no direct connection, everything goes through the relay – usual behind strict NATs |
| Customer’s file shows the public RustDesk servers | the file name was changed (e.g. (1)) – rename it again |
Logs: journalctl -u rustdesk-hbbs -u rustdesk-hbbr.
Source: docs/GUIDE.md of iac-rustdesk – corrections welcome.
Update
In the guest:
updateDebian packages, RustDesk Server, modules and the iac configuration. Major versions never change automatically.
Add modules – any time, in containers and VMs alike:
update --list-modules
update --add-modules node-exporter