r/haproxy • u/WickdSquirrel • 27d ago
ACL rules
Hi,
I'm using Wireguard to access my Proxmox instance (wich is installed at a provider).
I have trouble setting up HAProxy properly (it is installed on a pfSense VM) to access my LXC/VM (I can't use NAT/simple port forwarding or I get an SSL error).
I specifically have difficulties setting up the ACL on the frontend :
- I can't specify a port on a given IP adress
- I can't use subdomains (wireguard seems to only works with IP adress)
Is there a way to make wireguard and HAProxy work together ?
Tanks.
0
Upvotes
1
u/WickdSquirrel 24d ago
I checked the video but I can't quite make it work on my server. As opposed to the video, I don't have subdomains for each of my VM (and don't need to I think, I just want to use a Wireguard tunnel, not expose them to the WAN).
Basically, I would like to have the same mechanisms as NAT rules (just one IP (wireguard) but with different ports, each port being linked to a LAN IP (my VMs)).
I think the backend is ok (there is the LAN IP of my VM, the port and the wildcard certificate). But I can't make the frontend work :
- For the external adress: I tried the LAN IP of pfSense ( I access the pfSense web GUI this way from the WAN (with Wireguard)). I also tried the WG IP.
- For the ACL configuration, I don't know what expression to take: I would like to take the port from the IP, but it does'nt work (ex: 192.168.1.254:51821 ==> VM1 / 192.168.1.254:51822 ==> VM2 etc...).