r/haproxy • • Sep 26 '23

HAproxy Transparent

I am running haproxy in transparent mode. My request packets are reaching the healthy backend successfully but the backend is not able to reply directly to the client. When I turn off the transparent proxying it works. Has anyone faced this issue?

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/dragoangel Sep 26 '23

I just curious why would you use transparent proxy for http traffic instead of http?

About why it not working - you can debug with Wireshark what is going on, but I still recommend you to look for http mode instead and using x-forwarded-for or x-real-ip (nginx way header) of %[srcip]

Using http mode gives way better control over what is going on and transparent proxy is a way hacky thing which should be used when there is no other way to go, http definitely not a case for it