# Multidomain Proxy on single WAN IP with transparent mode

**URL:** <https://discourse.haproxy.org/t/multidomain-proxy-on-single-wan-ip-with-transparent-mode/1462>\
**Category:** Help!\
**Created:** [July 23, 2017, 6:52am UTC](https://discourse.haproxy.org/t/multidomain-proxy-on-single-wan-ip-with-transparent-mode/1462 "2017-07-23T06:52:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dani](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dani](https://discourse.haproxy.org/u/dani)\
**Post date:** [July 23, 2017, 6:52am UTC](https://discourse.haproxy.org/t/multidomain-proxy-on-single-wan-ip-with-transparent-mode/1462/1 "2017-07-23T06:52:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [July 30, 2017, 7:18pm UTC](https://discourse.haproxy.org/t/multidomain-proxy-on-single-wan-ip-with-transparent-mode/1462/2 "2017-07-30T19:18:28Z")

</div>

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

A configuration example can be found here:

> **[Transparent Proxying and Binding with HAProxy and ALOHA Load Balancer - HOWTO...](https://www.haproxy.com/blog/howto-transparent-proxying-and-binding-with-haproxy-and-aloha-load-balancer/)**
>
> Transparent Proxy HAProxy works has a reverse-proxy. Which means it maintains 2 connections when allowing a client to cross it: – 1 connection between HAProxy and the client – 1 connection between HAProxy and the server HAProxy then manipulate...

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.
