Hi Donster,
just the 1st pair has to insert the
X-Forwarded-For
header. This can be done by using a Standard VS with HTTP Profile attached and either
X-Forwarded-For
HTTP Profile settings enabled or by disabling the
X-Forwarded-For
HTTP Profile settings and deploying an iRule like this...
when HTTP_REQUEST {
HTTP::header remove "X-Forwarded-For"
HTTP::header insert "X-Forwarded-For" [getfield [IP::client_addr] "%" 1]
}
Note: You could also use the iRule of my previous post, if you need to consolidate existing X-Forwarded-For
headers into a unified header.
On the second unit you may also use a Standard VS with HTTP Profile attached - but you don't have to. If a HTTP Profile is getting attached, then you have to make sure that the
X-Forwarded-For
HTTP Profile settings are disabled.
Cheers, Kai