HaProxy routing to Proxmox

denislavstoqnov09

New Member
Jan 1, 2025
5
0
1
Hello, I was wondering if there is a way to direct any traffic (ssh,mysql etc) from a subdomain to a specific machine with haproxy. The problem is I have multiple Proxmox machines under one Public Ip and I want to access every machine with its own subdomain remotely.
 
You should rather do this using a VPN, since exposing the Web UI of your PVE Hosts might be seen as insecure. At least use Caddys request matchers to only allow connections from a specific IP (range)
 
You should rather do this using a VPN, since exposing the Web UI of your PVE Hosts might be seen as insecure. At least use Caddys request matchers to only allow connections from a specific IP (range)

Exposing the PVE WebUI is not the subject here, instead exposing applications and services running in containers or virtual machines on Proxmox.
 
I hope you're right, because that last sentence sounded like he's trying to expose the PVE Hosts themselves... Anyways, if he was trying to expose SSH and MySQL it would not be possible to do that using Caddy or Traefik (not sure about HAproxy) as AFAIK they only do HTTP(S), you'd have to DNAT every service separately on a different port
 

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!