Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

RustDesk Server (Remote Desktop Solution)

blog.payperitem.com, April 1, 2025April 2, 2025

Step 1: Update and Prepare Ubuntu

Make sure your system is up to date:

bash
sudo apt update && sudo apt upgrade -y

Install required dependencies:

bash

sudo apt install curl wget unzip -y

Step 2: Download RustDesk Server (hbbs and hbbr)

RustDesk has two key server components:

  • hbbs (RustDesk ID relay server)
  • hbbr (RustDesk NAT traversal server)

Download the latest RustDesk server release:

bashmkdir -p /opt/rustdesk && cd /opt/rustdesk
wget https://github.com/rustdesk/rustdesk/releases/latest/download/rustdesk-server-linux-amd64.zip
unzip rustdesk-server-linux-amd64.zip
chmod +x hbbs hbbr

Step 3: Configure and Start RustDesk Server

  1. Start hbbr (Relay Server)
    Run the relay server first: bashCopyEdit./hbbr &
  2. Start hbbs (ID Server) bashCopyEdit./hbbs -r <your-server-ip>:21117 &
  3. Confirm Processes are Running bashCopyEditps aux | grep hbbs ps aux | grep hbbr

Step 4: Enable Firewall Rules (If Enabled)

Open necessary ports:

bashsudo ufw allow 21115/tcp
sudo ufw allow 21116/tcp
sudo ufw allow 21117/tcp
sudo ufw enable

Step 5: Configure Clients to Use Your Server

On RustDesk clients (Windows, macOS, Linux), go to:

  • Settings > Network
  • Set the ID Server to your-server-ip:21117
  • Apply changes

Step 6: Set Up Systemd Services (Optional)

To ensure RustDesk server starts on boot, create systemd services.

  1. Create a Service for hbbr bash
  2. sudo nano /etc/systemd/system/rustdesk-hbbr.service Add the following content: iniCopyEdit[Unit] Description=RustDesk Relay Server After=network.target [Service] ExecStart=/opt/rustdesk/hbbr Restart=always User=root [Install] WantedBy=multi-user.target
  3. Create a Service for hbbs bash
  4. sudo nano /etc/systemd/system/rustdesk-hbbs.service Add: iniCopyEdit[Unit] Description=RustDesk ID Server After=network.target [Service] ExecStart=/opt/rustdesk/hbbs -r <your-server-ip>:21117 Restart=always User=root [Install] WantedBy=multi-user.target
  5. Enable and Start Services bash
  6. sudo systemctl daemon-reload sudo systemctl enable rustdesk-hbbr rustdesk-hbbs sudo systemctl start rustdesk-hbbr rustdesk-hbbs

Step 7: Verify RustDesk Server is Running

Check logs for any errors:

bash
sudo journalctl -u rustdesk-hbbr -f
sudo journalctl -u rustdesk-hbbs -f

You should see output indicating the server is running and clients are connecting.


Step 8: (Optional) Use a Domain with TLS

If you want to use a domain with RustDesk, you can set up Nginx as a reverse proxy with Let’s Encrypt for SSL. Let me know if you need help with that.


Final Notes

  • Clients must use your server’s IP or domain name in the RustDesk settings.
  • If you are behind NAT, ensure port forwarding is configured.
  • Keep your server updated to avoid security vulnerabilities.

Linux #CentOS#CloudComputing#CloudHosting#Colocation#CyberSecurity#DataCenter#DDoSProtection#DedicatedServer#ESXi#FibreChannel#Firewall#HyperV#IntrusionDetection#iSCSI#ITInfrastructure#KVM#ManagedHosting#NASStorage#Networking#NVMe#Proxmox#RAID#RedHat#SANStorage#Server#ServerRoom#ServerSecurity#SIEM#SSDServers#SysAdmin#TechSupport#UbuntuServer#VMware#VPSHosting#vSAN#vSphere#WindowsServerEnterprise & HostingLinux & Windows Servers #LinuxServerSecurity & MonitoringStorage & PerformanceVirtualization & Hypervisors

Post navigation

Previous post
Next post

Related Posts

Customize Snipe-IT to add more field entries

April 3, 2025April 3, 2025

1. Using Custom Fields (No Code) This is the easiest way to add fields without modifying the code. 2. Database Modification (Advanced) If you need persistent changes beyond custom fields: 3. Extending Snipe-IT API for Custom Fields 4. Customizing the Frontend If the UI needs additional inputs:

Read More

Server Hardening

April 3, 2025April 3, 2025

1. OS-Level Hardening 🔹 Minimal Installation – Install only necessary packages. Avoid GUI on servers unless required.🔹 Update Regularly – Apply security patches promptly using apt update && apt upgrade (Debian) or yum update (RHEL).🔹 Disable Unused Services – Use systemctl disable –now <service> for unnecessary daemons.🔹 Enable SELinux or…

Read More
Linux

Anonymize Your Traffic With Proxychains & Tor: A Comprehensive Guide

January 21, 2025

In an era where digital privacy is increasingly under threat, individuals seek effective means to safeguard their online activities from prying eyes. One such powerful tool for anonymity is the combination of Proxychains and Tor. This blog post will guide you through the installation process on Linux, Mac, Windows, and…

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }