Forum Discussion
Brad_Kloch_1032
Nimbostratus
Oct 26, 2006iRule for fallback persistence
I'm trying to create an iRule that will modify the source_addr so that our fallback persistence will work using Akamai. Akamai does pass over the user's IP address in the request in a header named "T...
Deb_Allen_18
Oct 27, 2006Historic F5 Account
You can change the sourceIP with a SNAT, but it would be changed on egress. Simple persistence inside of LTM looks at the source address upon ingress, before any iRule processing, so that wouldn't solve your problem.
You'll need to include both persistence methods in your iRule.
If you search the forum for "jsessionid", you'll find some examples of iRules which use cookies if they exist, and fallback to URI parameters otherwise. I'm thinking you could modify that logic to look for whatever primary persistence token you are currently using, and if non-existent, use [HTTP::header "True-Client-IP"] as a fallback.
HTH
/deb
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects