Multidomain Proxy on single WAN IP with transparent mode


Dear list

I’ve been playing around with HAProxy. A common problem when running multidomain http hosting on a single WAN ip is that the webservers behind the firewall only can see the gateway ip.
What I did understand from HAProxy is that transparent mode supported (http sever sees real source address of client). A colleage of mine disagreed that this is hardly possible.
Is there a reference configuration available (if possible also with multidomain ssl example).

Best Dani


It is possibly, if haproxy is within the forwarding path, as it makes haproxy a quasi MITM.

A configuration example can be found here:

That said, this setup is complicated and I would usually suggest using a X-forwarded-for or PROXY protocol approach, to fix the client IP issue.