PMG behind HAPROXY

BastienH

New Member
Apr 25, 2025
1
0
1
Hi,

I have my Proxmox Mail Gateway (version 8.1.0) behind HAProxy (on pfSense) for the web interface only, and I’d like to set up Fail2Ban to protect it.

My problem is that the visible IP is the one from HAProxy, not the actual client, even though I’m using the forwardfor option.
I assume the IP being used is taken directly from the socket.

Is there a way to change this behavior, or is there another approach I could take ?

Thanks for your help.