[SOLVED] some ports not available outside of vm

molnart

Well-Known Member
Jul 30, 2020
41
7
48
42
I have set up a Debian-based virtual machine in proxmox to host my docker containers. The containers are up an running, but i am not able to forward some ports from this VM to the internet.
the VM is also running a simple web server, that I can access from my local network without any issues on ports 80 and 443. however when i try to nmap my host the ports 80 and 443 (and bunch of others that are used by some containers) are not visible. consequently i am not able to forward them to WAN.

Code:
$ nmap 192.168.50.10 -Pn
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
111/tcp  open  rpcbind
143/tcp  open  imap
587/tcp  open  submission
993/tcp  open  imaps
1334/tcp open  writesrv
3000/tcp open  ppp
5000/tcp open  upnp
6789/tcp open  ibm-db2-admin
8000/tcp open  http-alt
8080/tcp open  http-proxy
8086/tcp open  d-s-n
8100/tcp open  xprint-server
8180/tcp open  unknown
8181/tcp open  intermapper
8443/tcp open  https-alt
9000/tcp open  cslistener
9091/tcp open  xmltec-xmlmail

however, if i run nmap from inside the VM the ports 80 and 443 show up correctly:
Code:
$ nmap localhost -Pn
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
111/tcp  open  rpcbind
143/tcp  open  imap
443/tcp  open  https
587/tcp  open  submission
993/tcp  open  imaps
1334/tcp open  writesrv
3000/tcp open  ppp
5000/tcp open  upnp
6789/tcp open  ibm-db2-admin
8000/tcp open  http-alt
8080/tcp open  http-proxy
8081/tcp open  blackice-icecap
8083/tcp open  us-srv
8086/tcp open  d-s-n
8100/tcp open  xprint-server
8180/tcp open  unknown
8181/tcp open  intermapper
8443/tcp open  https-alt
9000/tcp open  cslistener
9091/tcp open  xmltec-xmlmail

this makes me think the problem somehow is in proxmox. firewall is disabled for the VM. previously the docker containers (with the same ports) where running on a different VM without any issues.

any idea where could be the problem?
 
Last edited:
[SOLVED] it was a stupid issue on the docker container listening on the HTTP(S) ports.