We have a setup where clients are behind proxy and proxy is the src-ip for LTM, we have enabled X-Forwarded-For and we are getting Proxy-IP in the header, but now the requirement is to have actual client IP as well in the header(Client-IP,Proxy1-IP).
I have enabled the X-forwarded-for on the proxy, but still it seems that the LB is replacing the header with the latest one(proxy-ip)
Please suggest how to get both IP’s in the header.
The iRule will collect any existing X-Forwarded-For header values, then remove any existing X-Forwarded-For headers and finally create a new one with the collected values + the current “X-Forwarded-For” value. E.g.: