CLINET IP while forwading request to backend server


#1

Hi,
I am using HAProxy 1.6.12 and my backend server is weblgic 12c. when I check the access log from weblogic, the source IP it shows as HAProxy IP.

my requirement is the actual IP client address to be forwarded to the backend proxied server. Is there any setup in HAProxy to be done either in frontend and backend parameters?

RHEL7.2 (3.2)
HAProxy 1.6.12
weblogic 12c (backend content server)

Regards,
Vel


#2

Use option forwardfor:
http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-option%20forwardfor


#3

thanks, it works upon setting the below parameter in backend for weblogic 12c

option forwardfor header WL-Proxy-Client-IP

Regards,
Vel