How to Install RustDesk on Your Synology NAS

How to Install RustDesk on Your Synology NAS

RustDesk is a remote desktop software, the open source TeamViewer alternative, works out of the box, no configuration required. You have full control of your data, with no concerns about security. You can use a public rendezvous/relay server or self-hosting, or write your own server. In this step by step guide I will show you how to install RustDesk on your Synology NAS using Docker and Portainer.

Note: This guide works perfectly with the latest RustDesk 1.1.9 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Enable synology.me DDNS. If you already have a synology.me DDNS, skip this STEP.

  • STEP 4

Log in to your router. Find the Port Forwarding area. At the moment I am using an RT6600ax Synology router. Remember that every router has its own interface design. Be sure to open the necessary ports through your router settings, both TCP/UDP. If the ports that point to your Synology NAS device are not opened, all the services you have activated on those specific ports will not work. All you need to do is give your Synology device permissions on ports 211152111621117, 21118, 21119, both TCP and UDP, then apply the settings. Follow the instructions in the image below. Note: ports 211152111621117, 21118, 21119 are the essential ports to make RustDesk work.

RustDesk Synology NAS Set up 1

  • STEP 5

Go to Control Panel / Network / Connectivity tab/ Check Enable HTTP/2 then click Apply. Follow the instructions in the image below.

RustDesk Synology NAS Set up 2

  • STEP 6

Go to Control Panel / Security / Advanced tab/ Check Enable HTTP Compression then click Apply. Follow the instructions in the image below.

RustDesk Synology NAS Set up 3

  • STEP 7

Go to File Station and open the docker folder. Inside the docker folder, create two new folder and name them rustdeskhbbr and rustdeskhbbs. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

RustDesk Synology NAS Set up 4

  • STEP 8

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 9

In the Name field type in rustdesk. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: '3'

networks:
  rustdesk-net:
    external: false

services:
  hbbs:
    container_name: hbbs
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21118:21118
    image: rustdesk/rustdesk-server
    command: hbbs -r yourname.synology.me:21117
    volumes:
      - /volume1/docker/rustdeskhbbs:/root
    networks:
      - rustdesk-net
    depends_on:
      - hbbr
    restart: always

  hbbr:
    container_name: hbbr
    ports:
      - 21117:21117
      - 21119:21119
    image: rustdesk/rustdesk-server
    command: hbbr
    volumes:
      - /volume1/docker/rustdeskhbbr:/root
    networks:
      - rustdesk-net
    restart: always

Note: Before you paste the code above in the Web editor area, add your own synology.me DDNS that you have previously created at STEP 3 followed by :21117 

1 Rustdesk Synology NAS Set up

  • STEP 10

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

2 Rustdesk Synology NAS Set up

  • STEP 11

If everything goes right, you will see the following message at the top right of your screen: “Success Stack successfully deployed“.

3 Rustdesk Synology NAS Set up

  • STEP 12

Download the RustDesk software for your computer from the official RustDesk website. Once you have installed it, open it then click the 3 dots on the left sidebar. A dropdown menu will open. Click ID/Relay Server. Follow the instructions in the image below.

RustDesk Synology NAS Set up 9

  • STEP 13

After you click ID/Relay Server at STEP 12 a new pop up window will open. On the ID Server area type in your own synology.me DDNS that you have previously created at STEP 3. Click OK. Follow the instructions in the image below.

RustDesk Synology NAS Set up 10

  • STEP 14

After you click OK at STEP 13 you should see a “Readygreen dot statement in the RustDesk application.

RustDesk Synology NAS Set up 11

Enjoy RustDesk!

Troubleshooting: Make sure Rule 5 is correctly applied on your Synology NAS Firewall configuration.

Note: Find out how to update the RustDesk container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.

This post was updated on Wednesday / September 7th, 2022 at 9:24 PM