# Rustdesk

## Anleitung

[https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/](https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/)

[https://integrations.goauthentik.io/integrations/services/rustdesk-pro/](https://integrations.goauthentik.io/integrations/services/rustdesk-pro/)

## Ports öffnen

Be sure to open these ports in the firewall:

- `hbbs`: 
    - `21114` (TCP): used for web console, only available in `Pro` version.
    - `21115` (TCP): used for the NAT type test.
    - `21116` (TCP/UDP): **Please note that `21116` should be enabled both for TCP and UDP.** `21116/UDP` is used for the ID registration and heartbeat service. `21116/TCP` is used for TCP hole punching and connection service.
    - `21118` (TCP): used to support web clients.
- `hbbr`: 
    - `21117` (TCP): used for the Relay services.
    - `21119` (TCP): used to support web clients.

*If you do not need web client support, the corresponding ports `21118`, `21119` can be disabled.*

## docker-compose.yml (free plan)

```yaml
services:
  hbbs:
    container_name: rustdesk-hbbs
    image: rustdesk/rustdesk-server:1.1.14
#    environment:
#      - ALWAYS_USE_RELAY=Y
    command: hbbs
    volumes:
      - app:/root
    network_mode: "host"
    depends_on:
      - hbbr
    restart: unless-stopped

  hbbr:
    container_name: rustdesk-hbbr
    image: rustdesk/rustdesk-server:1.1.14
    command: hbbr
    volumes:
      - app:/root
    network_mode: "host"
    restart: unless-stopped

volumes:
  app:
```

## docker-compose.yml (pro plan, 20€ mit OIDC und Webconsole)

einfach

```yaml
image: rustdesk/rustdesk-server:1.1.14
```

mit

```yaml
image: docker.io/rustdesk/rustdesk-server-pro:1.6.1
```

ersetzen

Rustdesk-Console unter http://&lt;rustdesk-server-ip&gt;:21114 erreichbar.  
The default administrator username/password is `admin`/`test1234`:

## OIDC (Pro-only)

[https://integrations.goauthentik.io/integrations/services/rustdesk-pro/](https://integrations.goauthentik.io/integrations/services/rustdesk-pro/)