From 480e46a97173f189abd917e9561cc680820a9823 Mon Sep 17 00:00:00 2001 From: XLion Date: Wed, 25 Dec 2024 23:16:49 +0800 Subject: [PATCH 1/6] We're using reverse proxy for WebSocket --- .../self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md index 9d60b7e..f3fcd29 100644 --- a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md +++ b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md @@ -65,7 +65,6 @@ services: # 21116 TCP TCP hole punching # 21116 UDP heartbeat/ID server # 21117 TCP relay -# 21118/21119 TCP for web socket if you want to run web client ``` Please skip `Web portal settings` then done. @@ -109,4 +108,3 @@ Open these required ports: * `21116` TCP TCP hole punching * `21116` UDP heartbeat/ID server * `21117` TCP relay - * `21118/21119` TCP for web socket if you want to run web client From 6b325c9dc5b1ee68a14a9a1a028f56f54ffa4a8a Mon Sep 17 00:00:00 2001 From: XLion Date: Wed, 25 Dec 2024 23:17:36 +0800 Subject: [PATCH 2/6] We're using reverse proxy for WebSocket: DE --- .../self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md index f2f24a3..2bd5224 100644 --- a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md +++ b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md @@ -65,7 +65,6 @@ services: # 21116 TCP TCP hole punching # 21116 UDP Heartbeat/ID-Server # 21117 TCP Relay -# 21118/21119 TCP für Websocket, wenn Sie einen Webclient betreiben wollen ``` Bitte überspringen Sie `Web portal settings`, dann ist das erledigt. @@ -109,4 +108,3 @@ Wenn Sie die Einstellung immer noch nicht finden können, suchen Sie in Google n * `21116` TCP TCP hole punching * `21116` UDP Heartbeat/ID-Server * `21117` TCP Relay - * `21118/21119` TCP für Websocket, wenn Sie einen Webclient betreiben wollen From 6ed52db72d5fd23279845fff521b4db0467b035b Mon Sep 17 00:00:00 2001 From: XLion Date: Wed, 25 Dec 2024 23:20:04 +0800 Subject: [PATCH 3/6] Remove comfusing notice, because hbbs -r arg is removed --- .../self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md | 4 ---- .../self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md | 4 ---- .../rustdesk-server-oss/synology/dsm-7/_index.zh-tw.md | 4 ---- 3 files changed, 12 deletions(-) diff --git a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md index 2bd5224..097d64f 100644 --- a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md +++ b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.de.md @@ -30,10 +30,6 @@ Nach der Installation von "Container Manager" wird ein gemeinsamer Ordner `docke Geben Sie den Projektnamen `rustdesk-server` ein, ändern Sie Source von "Upload compose.yml" zu "Create compose.yml" und kopieren Sie den folgenden Inhalt in das Feld. -{{% notice note %}} -Sie könnten die Zeile mit `hbbs` vorübergehend in die LAN-IP Ihres NAS ändern, wie auf dem Bild gelb markiert zu sehen. Nachdem Sie sich vergewissert haben, dass Ihr Server funktioniert, **sollten** Sie die Änderung zurücknehmen. -{{% /notice %}} - ![](images/dsm7_creating_project_init.png?v2) ```yaml diff --git a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md index f3fcd29..95f254e 100644 --- a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md +++ b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.en.md @@ -30,10 +30,6 @@ Open your Container Manager, go to Project and click Create. Enter the project name `rustdesk-server` and change Source from "Upload compose.yml" to "Create compose.yml", and copy following contents to the box. -{{% notice note %}} -You could modify the line with `hbbs` to your NAS's LAN IP temporarily just like the picture. After you verify your server is working, you **should** change back. -{{% /notice %}} - ![](images/dsm7_creating_project_init.png?v2) ```yaml diff --git a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.zh-tw.md b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.zh-tw.md index f7341e8..cd9e51b 100644 --- a/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.zh-tw.md +++ b/content/self-host/rustdesk-server-oss/synology/dsm-7/_index.zh-tw.md @@ -28,10 +28,6 @@ Container Manager 為部分低階的 ARM64 的機型帶來支援,例如 j 系 輸入您的專案名稱 `rustdesk-server` 然後變更來源從"上傳 compose.yml" 至 "建立 compose.yml",接著複製下方內容到框框。 -{{% notice note %}} -如圖所示,您可以暫時將 `hbbs` 那行改為指向至您的NAS的 LAN IP,在您驗證您的伺服器可以正常運作後,您**應當**變更回來。 -{{% /notice %}} - ![](images/dsm7_creating_project_init.png?v2) ````yaml From a9c475b4d8f7c897a3c9940f3beed9fad5761fba Mon Sep 17 00:00:00 2001 From: XLion Date: Wed, 25 Dec 2024 23:29:13 +0800 Subject: [PATCH 4/6] Ubuntu server: No WebSocket ports --- .../rustdesk-server-oss/ubuntu-server/docker/_index.de.md | 2 -- .../rustdesk-server-oss/ubuntu-server/docker/_index.en.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.de.md b/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.de.md index dc4d486..9730e03 100644 --- a/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.de.md +++ b/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.de.md @@ -214,7 +214,6 @@ services: # 21116 TCP TCP hole punching # 21116 UDP heartbeat/ID server # 21117 TCP relay -# 21118/21119 TCP für Websocket, wenn Sie einen Webclient betreiben wollen ``` Lesen Sie [hier](/docs/de/client), wie Sie Ihren Client einrichten. Nur `ID-Server` und `Key` werden benötigt. `Relais-Server` wird nicht benötigt, da wir ihn in `hbbs` festgelegt haben. Diese Informationen werden von `hbbs` automatisch bereitgestellt. @@ -245,7 +244,6 @@ Wenn Sie einen VPS verwenden, suchen Sie mit Google nach `Name des VPS-Anbieters * `21116` TCP TCP hole punching * `21116` UDP Heartbeat/ID-Server * `21117` TCP Relay - * `21118/21119` TCP für Websocket, wenn Sie einen Webclient betreiben wollen ### 5. Einige Grundlagen diff --git a/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.en.md b/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.en.md index 3782011..6e2e778 100644 --- a/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.en.md +++ b/content/self-host/rustdesk-server-oss/ubuntu-server/docker/_index.en.md @@ -214,7 +214,6 @@ services: # 21116 TCP TCP hole punching # 21116 UDP heartbeat/ID server # 21117 TCP relay -# 21118/21119 TCP for web socket if you want to run web client ``` Check [here](/docs/en/client) to set up your client. Only `ID server` and `Key` is needed. `Relay server` isn't needed because we've set it in `hbbs`, hbbs will provide this information automatically. @@ -245,7 +244,6 @@ Open these required ports: * `21116` TCP TCP hole punching * `21116` UDP heartbeat/ID server * `21117` TCP relay - * `21118/21119` TCP for web socket if you want to run web client ### 5. Some basics From 64941f5fe3d1c7b3271367c70709b736f4a60e54 Mon Sep 17 00:00:00 2001 From: XLion Date: Thu, 26 Dec 2024 00:02:54 +0800 Subject: [PATCH 5/6] WebSocket related ports --- content/self-host/_index.en.md | 2 +- content/self-host/rustdesk-server-oss/install/_index.en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/self-host/_index.en.md b/content/self-host/_index.en.md index 2746a9d..ed03df6 100755 --- a/content/self-host/_index.en.md +++ b/content/self-host/_index.en.md @@ -45,7 +45,7 @@ UDP `21116` The above `21115-21117` are the minimum required ports for RustDesk to work, these handle the signal and relay ports as well as NAT traversal. -Additionally TCP ports `21118` and `21119` can be opened if you want to use the [RustDesk Web Client](https://rustdesk.com/docs/en/dev/build/web/). +TCP ports `21118` and `21119` are the WebSocket ports for the [RustDesk Web Client](https://rustdesk.com/web/), but it won't works if you open them, it needs a reverse proxy to make it support HTTPS, please refer this [sample Nginx configuration](/docs/en/self-host/rustdesk-server-pro/faq/#8-add-websocket-secure-wss-support-for-the-id-server-and-relay-server-to-enable-secure-communication-for-the-web-client). For Pro users without an SSL Proxy you will need to open TCP port `21114` for the API to work alternatively using an SSL Proxy open TCP port `443`. diff --git a/content/self-host/rustdesk-server-oss/install/_index.en.md b/content/self-host/rustdesk-server-oss/install/_index.en.md index 2307f5a..e19681c 100644 --- a/content/self-host/rustdesk-server-oss/install/_index.en.md +++ b/content/self-host/rustdesk-server-oss/install/_index.en.md @@ -99,7 +99,7 @@ PM2 requires Node.js v16+, if you fail to run PM2 (e.g. you can not see `hbbs`/` #### Ports -By default, `hbbs` listens on 21114 (TCP, for web console, only available in Pro version), 21115 (TCP), 21116 (TCP/UDP) and 21118 (TCP), `hbbr` listens on 21117 (TCP) and 21119 (TCP). Be sure to open these ports in the firewall. **Please note that 21116 should be enabled both for TCP and UDP.** 21115 is used for the NAT type test and online status query, 21116/UDP is used for the ID registration and heartbeat service, 21116/TCP is used for TCP hole punching and connection service, 21117 is used for the Relay services, and 21118 and 21119 are used to support web clients. *If you do not need web client (21118, 21119) support, the corresponding ports can be disabled.* +By default, `hbbs` listens on 21114 (TCP, for web console, only available in Pro version), 21115 (TCP), 21116 (TCP/UDP) and 21118 (TCP), `hbbr` listens on 21117 (TCP) and 21119 (TCP). Be sure to open these ports in the firewall. **Please note that 21116 should be enabled both for TCP and UDP.** 21115 is used for the NAT type test and online status query, 21116/UDP is used for the ID registration and heartbeat service, 21116/TCP is used for TCP hole punching and connection service, 21117 is used for the Relay services, and 21118 and 21119 are used to support web clients, please refer this [sample Nginx configuration](/docs/en/self-host/rustdesk-server-pro/faq/#8-add-websocket-secure-wss-support-for-the-id-server-and-relay-server-to-enable-secure-communication-for-the-web-client) if you want to use web client. *If you do not need web client (21118, 21119) support, the corresponding ports can be disabled.* - TCP (**21114, 21115, 21116, 21117, 21118, 21119**) - UDP (**21116**) From b366c58d03fce8b65cdd43040352c03e6d856cf4 Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Thu, 26 Dec 2024 00:16:42 +0800 Subject: [PATCH 6/6] Update _index.en.md --- content/self-host/_index.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/self-host/_index.en.md b/content/self-host/_index.en.md index ed03df6..5c0a919 100755 --- a/content/self-host/_index.en.md +++ b/content/self-host/_index.en.md @@ -45,7 +45,7 @@ UDP `21116` The above `21115-21117` are the minimum required ports for RustDesk to work, these handle the signal and relay ports as well as NAT traversal. -TCP ports `21118` and `21119` are the WebSocket ports for the [RustDesk Web Client](https://rustdesk.com/web/), but it won't works if you open them, it needs a reverse proxy to make it support HTTPS, please refer this [sample Nginx configuration](/docs/en/self-host/rustdesk-server-pro/faq/#8-add-websocket-secure-wss-support-for-the-id-server-and-relay-server-to-enable-secure-communication-for-the-web-client). +TCP ports `21118` and `21119` are the WebSocket ports for the [RustDesk Web Client](https://rustdesk.com/web/), you need a reverse proxy to make it support HTTPS, please refer this [sample Nginx configuration](/docs/en/self-host/rustdesk-server-pro/faq/#8-add-websocket-secure-wss-support-for-the-id-server-and-relay-server-to-enable-secure-communication-for-the-web-client). For Pro users without an SSL Proxy you will need to open TCP port `21114` for the API to work alternatively using an SSL Proxy open TCP port `443`.