Do not expose RDP to the local network by default

Signed-off-by: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com>
This commit is contained in:
Oskar Manhart
2026-03-16 14:03:34 +01:00
committed by GitHub
parent d5ea5d5a0b
commit e4cd60cc77
+8 -3
View File
@@ -23,9 +23,14 @@ services:
PASSWORD: "MyWindowsPassword" # Edit here to set a password for the Windows user. The default is 'MyWindowsPassword'.
HOME: "${HOME}" # Set path to Linux user home folder.
ports:
- 8006:8006 # Map '8006' on Linux host to '8006' on Windows VM --> For VNC Web Interface @ http://127.0.0.1:8006.
- 3389:3389/tcp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
- 3389:3389/udp # Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
# Map '8006' on Linux host to '8006' on Windows VM --> For VNC Web Interface @ http://127.0.0.1:8006.
- "127.0.0.1:8006:8006"
# Map '3389' on Linux host to '3389' on Windows VM --> For Remote Desktop Protocol (RDP).
- "127.0.0.1:3389:3389/tcp"
- "127.0.0.1:3389:3389/udp"
# Uncomment the next two lines and comment out the two above to expose RDP to the local network.
# - 3389:3389/tcp
# - 3389:3389/udp
cap_add:
- NET_ADMIN # Add network permission
stop_grace_period: 120s # Wait 120 seconds before sending SIGTERM when attempting to shut down the Windows VM.