Reputation:
I installed Proxmox and I want to make the 2nd scheme in the picture.
For this, I installed HAproxy (1.7.8) on Proxmox (5.4) and edited the HAproxy's config file. I get a 503 error when I try to access it with domains. What could be the reason for this?
If the second scheme is not possible, can I at least make the first scheme?
Upvotes: 0
Views: 1667
Reputation: 3578
I would suggest running pfSense in a vm on proxmox. pfSense has an haproxy extension and supports high availability. Route all your traffic through the pfSense/haproxy. There's also a bunch of security benefits you get when you do it this way, such as firewall rule, NAT, certificate management, DHCP, etc...
https://docs.netgate.com/pfsense/en/latest/packages/haproxy.html
You can download the pfSense iso at the following link.
https://atxfiles.netgate.com/mirror/downloads
Upvotes: 0
Reputation: 594
No problem to use #2, Proxmox use only port 8006 and some SPICE port or something - 80 + 443 is free to use. I use nginx instead of haproxy inside proxmox in VM like other VMs and forward traffic from outside through firewall via proxmox into nginx VM and into each VM where real websites are running on port 80 (https letsencrypt certs are in nginx VM). If you setup NAT for 80,443 you can easily use and renew letsencrypt certs for every domain. You could have the same directly on proxmox server in haproxy/nginx.
Upvotes: 0
Reputation: 141
I don't see any real reason why the second option is not a possibility. I will admit I'm running HAProxy on a different server to my Proxmox cluster but the idea is the same. Some things to look at to start with are:
Upvotes: 0