ant77
Mar 09, 2021Cirrostratus
Universal persistence using IPV6 with iRule..
Hello everyone and F5,
please help....I am stuck and don’t know what to do or if F5 can support this...
Does anyone know how to persist an IPV6 address in an X-forwarded-for header, or add it to the current code below? We are currently calling
this i-Rule with universal persistence profile, however it seems to only work if the user's client IP is in IPV4 format. If they get an IPV6 address from
their ISP provider, the persistency does not work even though our CDN address their IPV6 in the XFF header field.
Any help is much appreciated!
when HTTP_REQUEST {
if {[HTTP::header X-Forwarded-For] != ""} then {
persist uie [lindex [ split [lindex [HTTP::header values X-Forwarded-For] 0] "," ] 0]
} else {
persist uie [IP::client_addr]
}
}