mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2024-12-25 16:39:19 +01:00
Merge pull request #361 from xlionjuan/synology-dsm
Link fix for DSM and translate
This commit is contained in:
commit
dbad39c51f
117
content/self-host/nat-loopback-issues/_index.zh-tw.md
Normal file
117
content/self-host/nat-loopback-issues/_index.zh-tw.md
Normal file
@ -0,0 +1,117 @@
|
||||
---
|
||||
title: NAT Loopback 問題
|
||||
weight: 500
|
||||
pre: "<b>2.5. </b>"
|
||||
---
|
||||
|
||||
{{% notice note %}}
|
||||
此說明牽涉到複雜的網路知識,我們需要您的指導來增加它的可讀性。
|
||||
{{% /notice %}}
|
||||
|
||||
當您將您的伺服器部署在您的家中,或任何其他會將您的伺服器和客戶端放在**同一區網或同一路由器之後**的環境,您可能會發現您無法透過 **``公共 IP``** or **``網域``** (在理論上也是指向同一個公共IP)連結至您的伺服器。
|
||||
|
||||
更多有關 NAT Loopback 的詳情,請參閱 [維基百科(英文)](https://en.wikipedia.org/wiki/Network_address_translation#NAT_hairpinning)
|
||||
|
||||
用較簡單的方式說明:
|
||||
|
||||
舉例來說: 您的路由器的公共IP是 ``8.8.8.8``,您的伺服器的區網IP是 ``192.168.11.20`` 您所希望的網域是 ``rustdesk.example.com``,然後路由器的 port forwarding 已正確設置。
|
||||
|
||||
您的客戶端和伺服器在同一臺路由器之後,所以當您區域網路的裝置要連線到 ``rustdesk.example.com`` 的時候,首先,它會解析這個網域的IP,也就是 ``8.8.8.8``,然後連接到這個IP,接著您的路由器可能會直接**不知道**這條連線該去哪裡,然後它會覺得這個連接應該會想要去路由器它自己,接著您的連結就會失敗。
|
||||
|
||||
## 解決方法
|
||||
有3個方式可以解決這個問題。
|
||||
|
||||
### 1. 在您的路由器設置 NAT Loopback
|
||||
|
||||
如果您知道如何設置的話您可以直接設置,但是設定這個需要網路知識,而且有些路由器可能沒有調整這個設定的能力,所以這不是最好的解決方案。
|
||||
|
||||
{{% notice note %}}
|
||||
一篇來自 [MikroTik](https://help.mikrotik.com/docs/display/ROS/NAT#NAT-HairpinNAT) 的文章解釋這個的非常棒,您可以從這開始學習。
|
||||
{{% /notice %}}
|
||||
|
||||
### 2. 在您的區域網路部署一個DNS伺服器
|
||||
首先,挑一個您喜歡的 [AdGuard Home](https://github.com/AdguardTeam/AdGuardHome/wiki/Docker) 或 [PiHole](https://github.com/pi-hole/docker-pi-hole),您可以使用 docker 部署,也可以部署這個跟 RustDesk Server 在同一台伺服器。以下範例會使用它們作為範例。
|
||||
|
||||
它們都是基於 DNS 的廣告攔截器,如果您不想要封鎖廣告,您可以關閉此功能。
|
||||
|
||||
首先,指向您的 ``網域`` 至您的 RustDesk Server 的 LAN IP (例如: ``192.168.11.20``),接著到您的路由器的 ``DHCP`` 設定 **(警告: 不是 WAN 網際網路)**
|
||||
|
||||
請看範例:
|
||||
#### AdGuard Home
|
||||
封鎖廣告可能會造成問題,如果您不想要尋找解決方法,並且想要關閉這個功能,請選擇"禁用保護"按鈕。
|
||||
|
||||
![](images/adguard_home_disable_protection.png)
|
||||
<br>
|
||||
|
||||
去 "DNS 改寫" 設定。
|
||||
|
||||
![](images/adguard_home_click_dns_rewrites.png)
|
||||
<br>
|
||||
|
||||
點擊 "新增 DNS 改寫",接著輸入 ``網域`` 和伺服器的 ``LAN IP`` 至輸入框。
|
||||
|
||||
![](images/adguard_home_dns_rewrite_dialog.png)
|
||||
最終結果看起來像這樣。
|
||||
|
||||
![](images/adguard_home_dns_rewrite_final_result.png)
|
||||
***別忘記指派 AdGuard Home 到您路由器的LAN DHCP!***
|
||||
<hr>
|
||||
|
||||
### PiHole
|
||||
封鎖廣告可能會造成問題,如果您不想要尋找解決方法,並且想要關閉這個功能,請選擇 "Disable Blocking" 中的 "Indefinitely" 按鈕。
|
||||
|
||||
![](images/pi_hole_disable_blocking.png)
|
||||
|
||||
前往 Local DNS > DNS Records
|
||||
輸入 ``網域`` 和伺服器的 ``LAN IP`` 至輸入框, 接著點擊 "Add"。
|
||||
|
||||
要檢查最終結果,請檢查圖片中的黃線。
|
||||
|
||||
![](images/pi_hole_local_dns_dns_records.png)
|
||||
|
||||
***別忘記指派 PiHole 到您路由器的LAN DHCP!***
|
||||
|
||||
### 3. 在您的 hosts 檔案中添加規則
|
||||
只當您只有幾臺設備時建議採用此做法,如果您有很多的設備,DNS 方法是更推薦的。
|
||||
|
||||
{{% notice warning %}}
|
||||
如果您的環境有筆記型電腦,請**不要**使用此方法,因為這臺筆電會在你的區域網路之外時,沒辦法連接到您的伺服器。
|
||||
{{% /notice %}}
|
||||
|
||||
|
||||
|
||||
不同作業系統的路徑:
|
||||
|
||||
> Windows
|
||||
```plaintext
|
||||
C:\Windows\system32\drivers\etc\hosts
|
||||
```
|
||||
複製這個檔案到 ``桌面`` 然後編輯它,在您編輯完它之後,把他複製回原來的位置。
|
||||
|
||||
> macOS
|
||||
```plaintext
|
||||
/etc/hosts
|
||||
```
|
||||
可以使用已預先安裝的 ``vim``。
|
||||
```bash
|
||||
sudo vim /etc/hosts
|
||||
```
|
||||
|
||||
|
||||
> Linux
|
||||
```plaintext
|
||||
/etc/hosts
|
||||
```
|
||||
您可以使用 ``vim`` 或 ``nano``
|
||||
```bash
|
||||
sudo vim /etc/hosts
|
||||
```
|
||||
|
||||
<hr>
|
||||
|
||||
這些作業系統的格式都是相同的,都是 ``IP`` 先然後 ``網域``
|
||||
|
||||
例如:
|
||||
```plaintext
|
||||
192.168.11.20 rustdesk.example.com
|
||||
```
|
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 37 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 40 KiB |
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -3,4 +3,6 @@ title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
[English](/docs/en/self-host/rustdesk-server-oss/synology)
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Synology
|
||||
weight: 22
|
||||
---
|
||||
Synology has two type of Docker, "Docker" and "Container Manager", if you're using DSM 7.2 and latter, please follow the guide for DSM 7.2, or follow the DSM 6 guide if you're on older system.
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
For DSM 7.2, please check [English](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7/).
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
title: 群晖
|
||||
weight: 22
|
||||
---
|
||||
Synology 有两种 Docker, "Docker" 和 "Container Manager", 如果您使用 DSM 7.2 和更新版本, 请参阅 DSM 7.2 的说明,或如果您使用较旧的系统,请参阅 DSM 6 的说明。
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
||||
DSM 7 請先看[繁體中文](/docs/zh-tw/self-host/rustdesk-server-oss/synology/dsm-7/)版本
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Synology 群暉
|
||||
weight: 22
|
||||
---
|
||||
Synology 有兩種 Docker, "Docker" 和 "Container Manager", 如果您使用 DSM 7.2 和更新版本, 請參閱 DSM 7.2 的說明,或如果您使用較舊的系統,請參閱 DSM 6 的說明。
|
||||
{{% children depth="3" showhidden="true" %}}
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,31 +11,31 @@ Diese Anleitung basiert auf dem aktuellen DSM v6 und v7.
|
||||
|
||||
| Paketzentrum öffnen | Docker installieren |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png) |
|
||||
| ![](images/package-manager.png) | ![](images/docker.png) |
|
||||
|
||||
### RustDesk-Server installieren
|
||||
|
||||
| RustDesk-Server im Docker-Register suchen und per Doppelklick installieren | RustDesk-Server-Image ist installiert, Doppelklick zum Erstellen des RustDesk-Server-Containers |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png) |
|
||||
| ![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png) |
|
||||
|
||||
### hbbs-Container erstellen
|
||||
|
||||
Wie oben erwähnt, doppelklicken Sie auf das RustDesk-Server-Image, um einen neuen Container zu erstellen, und geben Sie ihm den Namen `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Klicken Sie auf `Erweiterte Einstellungen`.
|
||||
|
||||
- Automatischen Neustart aktivieren
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Aktivieren Sie `Use the same network as Docker Host`. Mehr Infos über das Hostnetz siehe [hier](https://rustdesk.com/docs/de/self-host/rustdesk-server-oss/docker/#net-host).
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Binden Sie ein Host-Verzeichnis (z. B. `/home/rustdesk/`) als `/root` ein, hbbs wird einige Dateien (Datenbank- und `key`-Dateien) in diesem Verzeichnis erzeugen, die über Neustarts hinweg erhalten bleiben müssen.
|
||||
| Einbinden | Im Host-Verzeichnis erzeugte Dateien |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png) |
|
||||
| ![](images/mount.png) | ![](images/mounted-dir.png) |
|
||||
|
||||
- Befehl einstellen
|
||||
{{% notice note %}}
|
||||
@ -45,26 +45,26 @@ Das Betriebssystem von Synology basiert auf Debian, daher funktioniert das Hostn
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Fertig
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### hbbr-Container erstellen
|
||||
|
||||
Bitte wiederholen Sie die obigen Schritte für `hbbs`, nennen aber den Container `hbbr` und der Befehl (für den Schritt Befehl einstellen) sollte `hbbr -k_` sein.
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs-Container
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png)
|
||||
![](images/containers.png)
|
||||
|
||||
|
||||
| Doppelklicken Sie auf den Container und prüfen Sie das Protokoll | Bestätigen Sie hbbs/hbbr über das Host-Netzwerk doppelt |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png) |
|
||||
| ![](images/log.png) | ![](images/network-types.png) |
|
||||
|
||||
### Ihren Schlüssel abrufen
|
||||
|
||||
|
@ -14,32 +14,32 @@ After DSM 7.2, the Docker is upgraded to new "Container Manager", please check [
|
||||
|
||||
| Open Package Center | Install Docker |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png) |
|
||||
| ![](images/package-manager.png) | ![](images/docker.png) |
|
||||
|
||||
### Install RustDesk Server
|
||||
|
||||
| Search rustdesk-server in Docker's registry and install by double click | Installed rustdesk-server image, double click to create rustdesk-server container |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png) |
|
||||
| ![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png) |
|
||||
|
||||
### Create hbbs container
|
||||
|
||||
As mentioned above, double click on rustdesk-server image to create new container, set it name to `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Click on above `Advanced Settings`.
|
||||
|
||||
- Enable auto-restart
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Enable `Use the same network as Docker Host`, for more about host net, please [check](https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/#net-host).
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Mount a host directory (e.g. `/home/rustdesk/`) to `/root`, hbbs will generate some files (database and `key` files) in this directory which need to be persistent over reboots.
|
||||
|
||||
| Mount | Files generated in the host directory |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png) |
|
||||
| ![](images/mount.png) | ![](images/mounted-dir.png) |
|
||||
|
||||
- Set command
|
||||
{{% notice note %}}
|
||||
@ -49,26 +49,26 @@ Synology's OS is Debian based, so host net (--net=host) works fine, we do not ne
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Done
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### Create hbbr container
|
||||
|
||||
Please repeat above `hbbs` steps, but name the container `hbbr` and command (for Set Command Step) should be `hbbr -k _`.
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs containers
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png)
|
||||
![](images/containers.png)
|
||||
|
||||
|
||||
| Double click on container and check log | Double confirm hbbs/hbbr using host network |
|
||||
| --- | --- |
|
||||
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png) |
|
||||
| ![](images/log.png) | ![](images/network-types.png) |
|
||||
|
||||
### Retrieve your Key
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ Abra el administrador de paquetes e instale la ventana acoplable
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### Instalar el servidor RustDesk
|
||||
|
||||
| Busque rustdesk-server en el registro de Docker e instálelo haciendo doble clic | Imagen de rustdesk-server instalada, haga doble clic para crear el contenedor de rustdesk-server |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### Crear contenedor hbbs
|
||||
|
||||
Como se mencionó anteriormente, haga doble clic en la imagen de rustdesk-server para crear un nuevo contenedor, establezca su nombre en `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Haga clic en "Configuración avanzada" arriba.
|
||||
|
||||
- Habilitar reinicio automático
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Habilite "Usar la misma red que el host de Docker", para obtener más información sobre la red del host, por favor [check](/docs/en/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Monte un directorio de host (por ejemplo, `Shared/test/`) en `/root`, hbbs generará algunos archivos (incluido el archivo `key`) en este directorio
|
||||
| Monte | Archivos generados en el directorio host |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- Establecer comando
|
||||
{{% notice note %}}
|
||||
@ -47,24 +47,24 @@ Synology OS está basado en Debian, os host net (--net=host) funciona bien, no n
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Hecho
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### Crear contenedor hbbr
|
||||
|
||||
Repita los pasos `hbbs` anteriores, pero cambie el nombre del contenedor a `hbbr` y el comando a `hbbr`.
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs contenedor
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| Haga doble clic en el contenedor y verifique el registro | Doble confirmación de hbbs/hbbr usando la red host |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ Avec l'outils centre de paquet, installez docker
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### Installation du server RustDesk
|
||||
|
||||
| Recherchez Rustdesk-Server dans le registre Docker et l'installer par un double clic | L'image rustdesk-Server installée alors double-cliquez pour créer un conteneur Rustdesk-Server |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### Créer le conteneur hbbs
|
||||
|
||||
Comme mentionné ci-dessus, double-cliquez sur l'image Rustdesk-Server pour créer un nouveau conteneur, nommez-le sur `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Cliquez sur "Paramètres avancés" ci-dessus.
|
||||
|
||||
- Activer le redémarrage automatique
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Activer "Utiliser le même réseau que Docker Host", Pour en savoir plus sur le réseau hôte, s'il vous plaît [voir](/docs/en/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Monter un répertoire depuis l'hôte (ex: `partage/test/`) vers `/root`, HBBS générera des fichiers (y compris le fichier clé `key`) dans ce répertoire
|
||||
| Montage du répertoire hôte | Fichiers générés dans le répertoire de l'hôte |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- Définir command
|
||||
{{% notice note %}}
|
||||
@ -47,23 +47,23 @@ Le système d'exploitation Synology est basé sur Debian. La configuration sur r
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Terminé
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### Créer le conteneur hbbr
|
||||
|
||||
Veuillez répéter les même étapes que pour `hbbs` ci-dessus, mais modifiez le nom du conteneur en `hbbr` et saisir en commande `hbbr`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### conteneurs hbbr/hbbs
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| Double-cliquez sur le conteneur et vérifiez le journal | Vérifier et confirmer que les conteneurs HBBS et HBBR utilisent le réseau hôte |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ weight: 22
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### RustDeskサーバーのインストール
|
||||
|
||||
| Dockerのレジストリからrustdesk-serverを検索しダブルクリックでインストールします | rustdesk-server イメージをインストールしダブルクリックで rustdesk-server コンテナを作成します |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### hbbsコンテナの作成
|
||||
|
||||
上記のように rustdesk-server イメージをダブルクリックして新しいコンテナを作成し名前を `hbbs` にします。
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
"Advanced Settings" をクリックします。
|
||||
|
||||
- 自動再起動を有効にする
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- "Use the same network as Docker host" を有効にします。 ホストの詳細については [こちら](/docs/en/self-host/install/#net-host) を確認してください
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- コンテナ内のホームディレクトリ `/root` をホストディレクトリ (例: `Shared/test/`) に配置するとhbbsはこのディレクトリにいくつかのファイル (`鍵`ファイルを含む) を生成します
|
||||
| 配置 | ホームディレクトリに生成されるファイル |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- コマンドの設定
|
||||
{{% notice note %}}
|
||||
@ -47,24 +47,24 @@ Synology の OS は Debian ベースなのでホストネット (--net=host) は
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- 完了
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### hbbr コンテナの作成
|
||||
|
||||
上記の `hbbs` の手順を繰り返してください。ただしコンテナ名を `hbbr` にコマンドを `hbbr` に変更してください。
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs コンテナ
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| コンテナをダブルクリックしログを確認する | ホストネットワークを使用したhbbs/hbbrの二重確認 |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synologie
|
||||
title: Synologie DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ Open pakketbeheer en installeer docker
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### Installeer RustDesk Server
|
||||
|
||||
| Zoek rustdesk-server in het Docker-register en installeer door te dubbelklikken | Het rustdesk-server image is aangemaakt, dubbelklik om een rustdesk-server container te maken. |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### Maak hbbs container aan
|
||||
|
||||
Zoals hierboven vermeld, dubbelklik op de rustdesk-server image om een nieuwe container aan te maken, geef hem de naam `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Klik op "Geavanceerde instellingen".
|
||||
|
||||
- Schakel auto-herstart in
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Schakel "Gebruik hetzelfde netwerk als Docker host" in, voor meer over host net, zie [check](/docs/en/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Maak een host map (bijv. `Gedeeld/test/`) aan in `/root`, hbbs zal een aantal bestanden (waaronder het `sleutel` bestand) in deze map genereren.
|
||||
| Maak | Bestanden gegenereerd in de host map |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- Instellen commando
|
||||
{{% notice note %}}
|
||||
@ -47,23 +47,23 @@ Het OS van Synology is gebaseerd op Debian, dus host net (--net=host) werkt prim
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Klaar
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### Maak hbbr container
|
||||
|
||||
Herhaal bovenstaande `hbbs` stappen, maar verander de containernaam in `hbbr` en het commando in `hbbr`.
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs containers
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| Dubbelklik op de container en controleer het logbestand | Dubbele bevestiging van hbbs/hbbr met behulp van het host-netwerk |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ weight: 22
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### Установка RustDesk Server
|
||||
|
||||
| Найдите rustdesk-server в реестре Docker и установите двойным кликом мыши | Установленный образ rustdesk-server rustdesk-server |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### Создание контейнера hbbs
|
||||
|
||||
Дважды нажмите на образ rustdesk-server чтобы создать контейнер, установите контейнеру имя `hbbs`.
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
Нажмите "Advanced Settings".
|
||||
|
||||
- Включите автоперезапуск
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- Включите опцию "Use the same network as Docker host", [подробности](/docs/en/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- Смонтируйте папку хоста (например `Shared/test/`) в `/root`, hbbs создаст файлы в папке
|
||||
| Монтирование | Созданные файлы |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- Установите запускаемую команду
|
||||
{{% notice note %}}
|
||||
@ -47,23 +47,23 @@ weight: 22
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- Готово
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### Создание контейнера hbbr
|
||||
|
||||
Произведите те-же действия, что и в случае hbbs, но измените имя контейнера на `hbbr` и запускаемую команду на `hbbr`.
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### Контейнеры hbbr/hbbs
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| Двойной клик на контейнер чтобы перейти в журнал | Проверьте, чтобы hbbs/hbbr использовали сеть хоста |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 群晖
|
||||
title: 群晖 DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -12,33 +12,33 @@ weight: 22
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### 安装 RustDesk Server
|
||||
|
||||
| 在 Docker's registery 里搜索 rustdesk-server 并双击安装 | 安装 rustdesk-server 镜像后, 双击镜像创建容器 |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### 创建 hbbs 容器
|
||||
|
||||
如上所述哦,双击 rustdesk-server 镜像创建新容器,设置名称 `hbbs`。
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
点击上面的 "Advanced Settings"。
|
||||
|
||||
- 开启 auto-restart
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- 开启 "Use the same network as Docker host", 关于 host net的更多解释,请[查看](/docs/zh-cn/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- 将容器里的 home 目录 `/root` 挂在到宿主目录(比如 `Shared/test/`), hbbs将把产生的文件(包括`key`文件)放在该目录。
|
||||
| 挂在 | 产生的文件 |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- 设置命令
|
||||
{{% notice note %}}
|
||||
@ -48,23 +48,23 @@ Synology 的操作系统是基于 Debian 的,因此host net (--net=host) 可
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- 搞定
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### 创建 hbbr 容器
|
||||
|
||||
请重复上述 `hbbs` 步骤,请将容器名更改为 `hbbr` 并将命令更改为 `hbbr`。
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs 容器创建完成
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| 双击容器并查看日志 | 确认 hbbs/hbbr 在使用 host net |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: Synology 群暉
|
||||
title: Synology DSM 6
|
||||
weight: 22
|
||||
---
|
||||
|
||||
@ -11,33 +11,33 @@ weight: 22
|
||||
|
||||
| | |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png)
|
||||
![](images/package-manager.png) | ![](images/docker.png)
|
||||
|
||||
|
||||
### 安裝 RustDesk Server
|
||||
|
||||
| 在 Docker 的 registery 裡搜尋 rustdesk-server 並連點兩下來安裝 | 安裝 rustdesk-server 映像後, 連點兩下映像來建立容器 |
|
||||
| --------------- | -------------------------------------------------------- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png)
|
||||
![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png)
|
||||
|
||||
|
||||
### 建立 hbbs 容器
|
||||
|
||||
如上所述,連點兩下 rustdesk-server 映像來建立新容器,並將其名稱設置為 `hbbs`。
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
|
||||
![](images/hbbs.png)
|
||||
|
||||
點擊上面的 "進階設定"。
|
||||
|
||||
- 啟用自動重新啟動
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
|
||||
![](images/auto-restart.png)
|
||||
|
||||
- 啟用 "Use the same network as Docker host", 關於 host net 的更多解釋,請[查閱](/docs/zh-tw/self-host/install/#net-host)
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
|
||||
![](images/host-net.png)
|
||||
|
||||
- 將主機目錄 (比如 `Shared/test/`) 掛接到 `/root`,hbbs 將把產生的文件(包括 `key` 檔案)放在該目錄。
|
||||
| 掛接 | 產生的檔案 |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png?width=300px)
|
||||
![](images/mount.png?width=500px) | ![](images/mounted-dir.png?width=300px)
|
||||
|
||||
- 設置指令
|
||||
{{% notice note %}}
|
||||
@ -47,23 +47,23 @@ weight: 22
|
||||
|
||||
{{% /notice %}}
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
|
||||
![](images/hbbs-cmd.png?v2)
|
||||
|
||||
- 搞定
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
|
||||
![](images/hbbs-config.png)
|
||||
|
||||
### 建立 hbbr 容器
|
||||
|
||||
請重複上述 `hbbs` 步驟,但將容器名稱更改為 `hbbr` 並將指令更改為 `hbbr`。
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
|
||||
![](images/hbbr-config.png)
|
||||
|
||||
### hbbr/hbbs 容器建立完成
|
||||
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png?width=500px)
|
||||
![](images/containers.png?width=500px)
|
||||
|
||||
|
||||
| 連點兩下容器並查看日誌 | 確認 hbbs/hbbr 在使用 host net |
|
||||
|-- | -- |
|
||||
![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png?width=500px) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png?width=500px)
|
||||
![](images/log.png?width=500px) | ![](images/network-types.png?width=500px)
|
||||
|
@ -0,0 +1,108 @@
|
||||
---
|
||||
title: Synology DSM 7.2
|
||||
weight: 20
|
||||
---
|
||||
<!--to translater: When translating elements like "buttons", don't just translate, please refer actual naming in their interface.-->
|
||||
在 DSM 7.2 更新之後,Synology 已將 "Docker" 套件改名為 "Container Manager",它採用新的介面,並且在其圖形介面內建 docker-compose,可讓您更容易地建立 Docker。
|
||||
## 支援的機型以及需求
|
||||
|
||||
Container Manager 為部分低階的 ARM64 的機型帶來支援,例如 j 系列,如要獲取更多支援機型,請參閱 [Synology 網站](https://www.synology.com/zh-tw/dsm/packages/ContainerManager)。
|
||||
|
||||
## 1. 安裝 Container Manager (Docker)
|
||||
|
||||
開啟"套件中心",搜尋並安裝 "Container Manager"。
|
||||
|
||||
![](images/dsm7_install_container_manager_though_package_center.png)
|
||||
|
||||
## 2. 建立資料夾
|
||||
|
||||
在您安裝完 "Container Manager" 之後,它會建立一個叫做 "docker" 的共享資料夾,讓我們把伺服器的資料放這。
|
||||
|
||||
打開您的 File Station,建立一個名叫 `rustdesk-server`(或您想要的名字)的資料夾,接著在其建立名為 `data` 的資料夾,如圖所示。
|
||||
|
||||
![](images/dsm7_create_required_folders.png)
|
||||
|
||||
## 3. 建立容器
|
||||
|
||||
打開您的 Container Manager,前往專案並點擊新增。
|
||||
|
||||
輸入您的專案名稱 `rustdesk-server` 然後變更來源從"上傳 docker-compose.yml" 至 "建立 docker-compose.yml",接著複製下方內容到框框,在您複製貼上後,您應該將 `rustdesk.example.com` (它該指向到您的 `hbbr`) 改為會指向至您NAS的網域。
|
||||
|
||||
{{% notice note %}}
|
||||
如圖所示,您可以暫時將 `hbbs` 那行改為指向至您的NAS的 LAN IP,在您驗證您的伺服器可以正常運作後,您**應當**變更回來。
|
||||
{{% /notice %}}
|
||||
|
||||
![](images/dsm7_creating_project_init.png)
|
||||
|
||||
````yaml
|
||||
version: '3'
|
||||
services:
|
||||
hbbs:
|
||||
container_name: hbbs
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
command: hbbs -r rustdesk.example.com:21117 -k _
|
||||
volumes:
|
||||
- ./data:/root
|
||||
network_mode: host
|
||||
depends_on:
|
||||
- hbbr
|
||||
restart: always
|
||||
|
||||
hbbr:
|
||||
container_name: hbbr
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
command: hbbr -k _
|
||||
volumes:
|
||||
- ./data:/root
|
||||
network_mode: host
|
||||
restart: always
|
||||
|
||||
# 因為使用 docker host mode
|
||||
# 以防你忘記這些端口:
|
||||
# 21115 TCP NAT 類型測試
|
||||
# 21116 TCP TCP 打洞
|
||||
# 21116 UDP 心跳/ID 伺服器
|
||||
# 21117 TCP Relay/中繼
|
||||
````
|
||||
|
||||
請略過 `網頁入口設定` 接著完成。
|
||||
|
||||
## 4. 檢查可否運作
|
||||
|
||||
打開您的 File Station 您應該可看到 `id_ed25519`、`id_ed25519.pub` 在您的 `docker/rustdesk-server/data` 資料夾。
|
||||
|
||||
公鑰看起來會像這個樣子:
|
||||
|
||||
![](images/dsm7_viewing_public_key_though_syno_text_editor.png)
|
||||
|
||||
看看[這裡](/docs/zh-tw/self-host/rustdesk-server-oss/install/#step-3-set-hbbshbbr-address-on-client-side)來設置您的客戶端,只有 `ID 伺服器` 以及 `Key` 是需要的,中繼伺服器不需設定,因為我們已經把它設置在 `hbbs` 了,hbbs 會自動提供這項資訊。
|
||||
|
||||
## 5. 設置 hbbs 讓它指向至您的網域
|
||||
|
||||
如果您設置了 `hbbs` 指向至您的 LAN IP,並且確認它正常運作,現在是時候改回網域了,因為它會在您的區域網路之外不能正常運作。
|
||||
|
||||
<hr>
|
||||
|
||||
5.1 前往 Container Manager > 專案 > 點擊 "rustdesk-server" > 操作 > 停止
|
||||
|
||||
5.2 在停止之後,點擊 "YAML 設定",修改開始為 `command: hbbs` 的那一行至您的網域,接著點擊 "停止",請確保您選擇了 "建立並啟動專案(重建映像檔)"
|
||||
|
||||
![](images/dsm7_recreate_project_after_modified_args.png)
|
||||
|
||||
5.3 您的 RustDesk 伺服器應該可接受來自網際網路的連線了,接著,您應該設定 port forwarding (通訊埠轉發)。
|
||||
|
||||
{{% notice note %}}
|
||||
在完成這個步驟後就遇到問題了? 那麼你應該看看 [這個文章](/docs/zh-tw/self-host/nat-loopback-issues/)。
|
||||
{{% /notice %}}
|
||||
|
||||
## 6. 在您的路由器設置 port forwarding (通訊埠轉發)
|
||||
|
||||
前往您的路由器的管理頁面,尋找任何有關於 `Port forwarding` 或是 `通訊埠轉發` 的設定,他應該在 `WAN`、`網際網路` 或是 `防火牆` 設置。
|
||||
|
||||
如果您還是無法找到設定,Google 搜尋 `{路由器廠牌} + port forwarding` 或 `{路由器型號} + port forwarding`
|
||||
|
||||
開啟這些需要的端口:
|
||||
* `21115` `TCP` NAT 類型測試
|
||||
* `21116` `TCP` TCP 打洞
|
||||
* `21116` `UDP` 心跳/ID 伺服器
|
||||
* `21117` `TCP` Relay/中繼
|
Loading…
Reference in New Issue
Block a user