Only port 80 and 443 reachable by reverse proxy

robko

Member
Nov 12, 2021
5
2
8
29
Hi,

I used to have 3 servers with Ubuntu and debian installed on bare metal. The first server is running directadmin where I have a reverse apache proxy to access services running in docker containers on the other 2 servers. This successfully redericted the domains to the services running in docker, regardless of the port the service was running on.

The server running the apache reverse proxy is unaltered. The other 2 servers are now virtualized in proxmox and are running the same services in docker on the same ports.

Now the problem is that only services running on port 80 or 443 accept connections by the reverse proxy (all other ports give a connection refused). If the service is on any other port the traffic is blocked. This is the case for both LXC’s (ubuntu, debian and turnkey) and for Debian and windows VM’s. Weird thing is that with some Ubuntu VM’s all ports work… If I just connect to the local IP with the port everything works fine on all virtual environments, just with the reverse proxy it doesn’t want to to work.

The firewall is turned off for the datacenter, for the Node and for the Virtual environments. When I check the iptables on the debian VM’s or LXC’s I don’t see any things that should block the traffic. Also firewall in windows is completely turned off to test.

I have no idea where else to look. I also turned on logging for the firewall on debug but no logging ever appears. Where else can I look to try to debug this issue?

Also the proxmox nodes and the other servers are running within my local network and connect to the network over the gateway, which carries the public ip.

The gateway forwards all communication over port 80 and 443 to the server running the reverse proxy which should forward the traffic to the internal servers and services.

No VLANs are used at all, just a flat network.

Thanks in advance!
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!