Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Administrator
geumdo_docs
Commits
ff4183e6
Commit
ff4183e6
authored
Jun 20, 2025
by
insun park
Browse files
Merge branch 'main' of
http://gitlab.geumdo.net/root/geumdo_docs
parents
14c42640
d1baec7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker/docker-windows-vm/Dockerfile
View file @
ff4183e6
...
...
@@ -47,7 +47,7 @@ COPY Vagrantfile /opt/win10/
COPY
startup.sh /usr/local/bin/startup.sh
RUN
chmod
+x /usr/local/bin/startup.sh
EXPOSE
3389
EXPOSE
3389
8090
# 13. Set the entrypoint
CMD
["/usr/local/bin/startup.sh"]
\ No newline at end of file
CMD
["/usr/local/bin/startup.sh"]
docker/docker-windows-vm/docker-compose.yml
View file @
ff4183e6
...
...
@@ -13,5 +13,7 @@ services:
-
/dev/net/tun
ports
:
-
"
33890:3389"
-
"
8081:8090"
volumes
:
-
/lib/modules:/lib/modules:ro
\ No newline at end of file
-
/lib/modules:/lib/modules:ro
docker/docker-windows-vm/startup.sh
View file @
ff4183e6
...
...
@@ -57,11 +57,17 @@ modprobe xt_conntrack
iptables
-t
nat
-A
PREROUTING
-p
tcp
--dport
3389
-j
DNAT
--to-destination
"
$VM_IP
"
:3389
iptables
-t
nat
-A
POSTROUTING
-j
MASQUERADE
iptables
-t
nat
-A
PREROUTING
-p
tcp
--dport
8090
-j
DNAT
--to-destination
"
$VM_IP
"
:8090
iptables
-t
nat
-A
POSTROUTING
-j
MASQUERADE
# Configure RDP forwarding inside the container
echo
"Allowing RDP forwarding to the VM..."
iptables
-I
FORWARD
-d
"
$VM_IP
"
-p
tcp
--dport
3389
-j
ACCEPT
iptables
-I
FORWARD
-s
"
$VM_IP
"
-j
ACCEPT
iptables
-I
FORWARD
-d
"
$VM_IP
"
-p
tcp
--dport
8090
-j
ACCEPT
iptables
-I
FORWARD
-s
"
$VM_IP
"
-j
ACCEPT
# Keep the container running to maintain the VM session
echo
"Windows VM is running. You can connect via RDP at
$VM_IP
."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment