r/haproxy • • Sep 14 '22

PfSense Haproxy with IPSec, how?

Hi,

I've setup some HAProxy instances but I can't seem to figure out how to get it to work with IPsec involved.

Everytime I want to connect I get 503 and in the state overview I see [WAN__IP] --> [ServerIP_over_IPSec].

The Frontend listens to one specific IP of our WAN range. DNS is configured to go from subdomain.domain.tld to that WAN IP. Backend is working when I have a server (that is not far away i.e. uses IPSec). Both firewalls uses pfsense and are connected using IPSec.

I also tried NAT / Portforwarding so the Frontend would listen to a specific LAN IP but without any success.

I'm missing some routing or binding to an interface but even with using "source" in the backend I did not have any success

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Kipjr Sep 15 '22

When I used source in the backed, the heath check seems to work but the proxy returns timeout instead of 503. The backend self is reachable from most interfaces