HAProxy community

Send X-Forwarded-For in TCP Mode


Hi there!

I am new to this discourse.

Can someone tell me how to set up a frontend/backend configuration, in TCP Mode that sends always the header X-Forwarded-For.

I want to balance 2 Cisco WSA web proxies in port 8080.

Thanks in advance


You have to use HTTP mode for that. When you use HTTP mode, you enable it with the “option forwardfor” directive.