https://github.com/archef2000/rdpgw
RDP docker container
https://github.com/archef2000/rdpgw
Last synced: about 1 year ago
JSON representation
RDP docker container
- Host: GitHub
- URL: https://github.com/archef2000/rdpgw
- Owner: archef2000
- Created: 2022-11-18T22:53:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T10:10:13.000Z (over 3 years ago)
- Last Synced: 2025-02-01T05:14:12.694Z (over 1 year ago)
- Language: Shell
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RDPGW docker container
A easy setup of the rdpgw docker container from [bolkedebruin](https://github.com/bolkedebruin/rdpgw).
# Docker Compose
```
version: '3.3'
services:
rdpgw:
container_name: rdpgw
image: archef2000/rdpgw
environment:
- 'SES_KEY=thisisasessionkeyreplacethisjetzt'
- 'SES_ENC=thisisasessionkeyreplacethisnunu!'
- 'PAA_SIG=thisisasessionkeyreplacethisjetzt'
- 'PAA_ENC=thisisasessionkeyreplacethisjetzt'
- 'OIDC_URL=http://keycloak:8080/auth/realms/rdpgw'
- 'OIDC_ID=rdpgw'
- 'OIDC_SEC=01cd304c-6f43-4480-9479-618eb6fd578f'
- 'GW_ADD=localhost:9443'
- 'LISTEN_PORT=9443'
- 'AUTH=OIDC'
- 'ALLOWED_HOSTS=xrdp:3389'
ports:
- '9443:9443/tcp'
restart: on-failure
```
# Docker run
```
docker run -d \
-e SES_KEY=thisisasessionkeyreplacethisjetzt \
-e SES_ENC=thisisasessionkeyreplacethisnunu! \
-e PAA_SIG=thisisasessionkeyreplacethisjetzt \
-e PAA_ENC=thisisasessionkeyreplacethisjetzt \
-e OIDC_URL="http://keycloak:8080/auth/realms/rdpgw" \
-e OIDC_ID="rdpgw" \
-e OIDC_SEC="01cd304c-6f43-4480-9479-618eb6fd578f" \
-e GW_ADD=localhost:9443 \
-e LISTEN_PORT=9443 \
-e AUTH=OIDC \
-e ALLOWED_HOSTS=xrdp:3389 \
-p 9443:9443/tcp \
--restart=on-failure \
--name rdpgw \
archef2000/rdpgw
```
# Variables,
## Environment Variables
| Variable | Required | Function | Example |
|----------|----------|----------|----------|
|`SES_KEY`|yes|Sets the SessionKey in the config file|`SES_KEY=thisisasessionkeyreplacethisjetzt`|
|`SES_ENC`|yes|Sets the SessionEncryptionKey in the config file|`SES_ENC=thisisasessionkeyreplacethisnunu!`|
|`PAA_SIG`|yes|Sets the PAATokenSigningKey in the config file|`PAA_SIG=thisisasessionkeyreplacethisjetzt`|
|`PAA_ENC`|yes|Sets the PAATokenEncryptionKey in the config file|`PAA_ENC=thisisasessionkeyreplacethisjetzt`|
|`OIDC_URL`|yes|If AUTH is set to OIDC this sets the AUTH entpoint|`OIDC_URL="http://keycloak:8080/auth/realms/rdpgw"`|
|`OIDC_ID`|yes|OIDC client ID|`OIDC_ID="rdpgw"`|
|`OIDC_SEC`|yes|OIDC client secret|`OIDC_SEC="01cd304c-6f43-4480-9479-618eb6fd578f"`|
|`GW_ADD`|yes|Address that is reachable and is set in the OIDC provider|`GW_ADD=localhost:9443`|
|`ALLOWED_HOSTS`|yes|list of hosts that a client is allowed to reach|`ALLOWED_HOSTS="xrdp:3389,xrdp2:3389"`|
|`LISTEN_PORT`|no|Port to listen on|`LISTEN_PORT=9443`|
|`AUTH`|no|OIDC or local|`AUTH=OIDC`|
## Ports
| Port | Proto | Required | Function | Example |
|----------|----------|----------|----------|----------|
| `9443` | TCP | Yes | rdpgw server TCP listening port | `9443:9443/tcp`|