Kevin_Nail
Jan 15, 2009Nimbostratus
Multiple XFF headers
We have a situation where it may be possible for one LTM to insert the XFF and load-blance the packets to another LTM with another XFF set.
I would like to have an iRule the checks for the existence of the XFF header and if it exists then do nothing... else add it in. This is waht I have but it doesn't seem to be working correctly, I am still getting 2 XFF headers in the payload.
Any help would be appreciated
when HTTP_REQUEST {
if {
[HTTP::header exists "X-Forwarded-For"]
}
{
Do nothing
}
else
{
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
}
}