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.
Not that it matters a ton in this case, but in longer, more complex scenarios, this can save a fair amount of code. Also, the header replace option is a good one, that way you should only ever end up with one. This is only an option if you aren’t trying to preserve a previous XFF header though, obviously.