Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port 80 forwarding in windows #1061

Open
sercherep opened this issue Feb 26, 2025 · 7 comments
Open

port 80 forwarding in windows #1061

sercherep opened this issue Feb 26, 2025 · 7 comments

Comments

@sercherep
Copy link

Operating system

rhel

Description

IIS is installed on windows, port 80

after config:
ports:
- 8080:80

at the address http://mainHostIP:8080/
i see the windows desktop.. (just like at the http://mainHostIP:8006/ address)
how do I access IIS on port 80?

Docker compose

services:
insos:
image: ae113016f738
container_name: insoc
environment:
APP: "ronex"
devices:
- /dev/kvm
- /dev/net/tun
volumes:
- /ronex/image.iso:/custom.iso
cap_add:
- NET_ADMIN
ports:
- 8080:80
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
restart: always
stop_grace_period: 2m

Docker log

Screenshots (optional)

No response

@kroese
Copy link
Contributor

kroese commented Feb 26, 2025

Is it a possibility to run IIS at a custom port (for example 84) and then do something like this:

ports:
  - 8080:84

@sercherep
Copy link
Author

sercherep commented Feb 26, 2025

ports:

  • 8080:8080

brandmower off
on windows set custom port 8080 for IIS
on windows localhost:8080 work and get default IIS page
from net not work
browser ip:8080 = page not found
telnet ip 8080 = not open

docker port insoc

3389/tcp -> 0.0.0.0:3389
3389/tcp -> [::]:3389
3389/udp -> 0.0.0.0:3389
3389/udp -> [::]:3389
8080/tcp -> 0.0.0.0:8080
8080/tcp -> [::]:8080
8888/tcp -> 0.0.0.0:8888
8888/tcp -> [::]:8888

@sercherep
Copy link
Author

assign an individual IP address to the container
NOT WORK too

ip main comp = 10.0.10.60

docker network create -d macvlan
--subnet=10.0.10.0/24
--gateway=10.0.10.1
--ip-range=10.0.10.0/24
-o parent=eno1 vlan

services:
insos:
image: ae113016f738
container_name: insoc
environment:
APP: "ronex"
devices:
- /dev/kvm
- /dev/net/tun
volumes:
- /ronex/image.iso:/custom.iso
cap_add:
- NET_ADMIN
ports:
- 8888:8888
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
restart: always
stop_grace_period: 2m
networks:
vlan:
ipv4_address: 10.0.10.61
networks:
vlan:
external: true

rebuild..

on windows ip = 20.20.20.21

10.0.10.61:8006 see windows desktop
on windows set custom port 8888 for IIS
on windows localhost:8888 work default page IIS
from net 10.0.10.61:8888 not work! (((

why?

@kroese
Copy link
Contributor

kroese commented Feb 26, 2025

Maybe the firewall in Windows is enabled for example. I dont even know the Windows version (because you used a custom iso) and I dont see any logfile.

For the most direct connection, enable DHCP mode as described in the FAQ. That way there will be no tunneling of traffic

@sercherep
Copy link
Author

win10pro 21h2
firewall off

@sercherep
Copy link
Author

is it possible to set up a direct connection with a fixed ip address? so that the windows system's IP address matches the external address?

@kroese
Copy link
Contributor

kroese commented Feb 26, 2025

Yes.. thats DHCP mode described in the FAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants