XFF Universal Persistence iRule
Problem this snippet solves: Simple iRule to read the XFF header on an incoming HTTP Request and use a Universal Persistence ID.
Orginal iRule found to have an issue with multiple IP addresses in th...
Updated Jun 06, 2023
Version 2.0Andy_McGrath
Cumulonimbus
Joined November 14, 2005
Sumanta_88744
Jun 21, 2016Cirrus
Hi Amg
Will this also need One Connect as mandatory? How is this different from the below code I am using?
*********************************************************************
when HTTP_REQUEST {
set xff [HTTP::header "x-forwarded-for"]
persist uie [HTTP::header "x-forwarded-for"]
log local0. "[IP::client_addr]:[TCP::client_port]: XFF: $xff"
}
*********************************************************************