Access 2 host from outside

kolarkso

New Member
Mar 26, 2020
1
0
1
27
Hello,

I have an issue with connection to my http server (first virtual machine) running at port 80 (also listening for 9060). I already have one http server (second virtual machine) listening on port 80 and it works. But if i add the second one, the first one stops working. First one is reverse proxy configured with haproxy. I have public ip and dns server. I configured hostname (example: 10.56.20.20 (local ip) -> 56.24.42.11(public ip) ) to direct to my public ip. I can configure port forwarding to listen for port 9080 and redirect to port 9080 or 80. This works if i use public ip:9080/ , but i doesn't work if i want to use the actual name test.si:9080/something or just test.si/something. If i redirect port 80 to port 80, my first server stops working, i can't access it from outside. I also tried adding rules, server, backend.. in haproxy and i can't seem to get it to work. I have opnsense platform.
Localy everything works as it should. If if try to access test.si/something from another virtual machine in the network it works, i can also access it with local ip of the machine (10.56.20.20/something).

Any help would be appreciated.
 
Last edited:
Hi,

HA-Proxy is not the main topic here and I guess you find more specialists about this topic on opensense or pfsense forum.
Don't get me wrong you can ask here but I think you get a faster answers on your question in this forums.
 

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!