# TCP mode with forward ip

**URL:** https://discourse.haproxy.org/t/tcp-mode-with-forward-ip/8705
**Category:** Help!
**Created:** [May 22, 2023, 2:11pm UTC](https://discourse.haproxy.org/t/tcp-mode-with-forward-ip/8705 "2023-05-22T14:11:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sixart46](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sixart46](https://discourse.haproxy.org/u/sixart46)
#### Post date: [May 22, 2023, 2:11pm UTC](https://discourse.haproxy.org/t/tcp-mode-with-forward-ip/8705/1 "2023-05-22T14:11:10Z")

</div>

Hi,  
I have a haproxy configured with frontend and backend in tcp mode and apache2 runs on the backend, in the apache2 logs I can’t see the source ip but I get the balancer ip. Is there a way to get apache2 the ip where the request starts from?

Thanks in advance  
Dario

---

<div class="post-metadata">

### Author: ![victorsts](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@victorsts](https://discourse.haproxy.org/u/victorsts)
#### Post date: [May 22, 2023, 9:22pm UTC](https://discourse.haproxy.org/t/tcp-mode-with-forward-ip/8705/2 "2023-05-22T21:22:39Z")

</div>

You need to add support to Apache for Proxy Protocol. AFAIR, module mod\_remoteip implements it and using “send-proxy” on server line in HAProxy will instruct HAProxy to send the client IP to Apache so it can use it for logs, access control, etc.

---

<div class="post-metadata">

### Author: ![sixart46](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sixart46](https://discourse.haproxy.org/u/sixart46)
#### Post date: [May 23, 2023, 7:04am UTC](https://discourse.haproxy.org/t/tcp-mode-with-forward-ip/8705/3 "2023-05-23T07:04:44Z")

</div>

Hi,  
do you have an example of apache side configuration?  
The remoteip module is already enabled.

This is bind in frontend (haproxy)  
bind \*:443 accept-proxy

This is backend (haproxy)  
server test01 192.168.1.11:443 send-proxy check  
but it does not work.

Regards,  
Dario
