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