Custom HTTP Persistence on F5 LTM

By | November 26, 2013

If you put a custom header into your HTTP request & set all persistence profiles to none, you can then search a custom HTTP header of any name & persist using that. You can then fall back to persistence of your choice. Here is the custom iRule to do so:

when HTTP_REQUEST {
if { [HTTP::header exists “True-ClientIP-Header”] } {
persist uie [HTTP::header “True-ClientIP-Header”]
}
else {
persist source_addr
}
}