Forum Discussion
Christopher_Hyl
May 05, 2011Nimbostratus
True-IP persistence or source-IP if it doesn't exsist.
This is a basic derivative of the irule in the last post .
It's a long story of why we're doing this, but we're using a CDN that passes us the "true-client-ip" HTTP header. We want source persis...
Christopher_Hyl
May 06, 2011Nimbostratus
Hmmm, it doesn't look like it's working on our test website. It's not even falling back to source persistence. Am I supposed to be checking if a persistence profile already exists before assigning one in the variable? Am I clobbering already existing persistence assignments? Should I be doing what they're doing here:
http://devcentral.f5.com/Forums/tabid/53/aft/61948/Default.aspx
Which has this block of code:
when HTTP_REQUEST {
Check if there is an existing UIE persistence record
if {[persist lookup uie "[IP::client_addr]_apps"] ne ""}{
Use the existing UIE persistence record regardless of which URI was requested
persist uie "[IP::client_addr]_apps"] 36000
} else {
Check requested path
switch -glob [HTTP::path] {
"/apps/aml/*" {
Persist client for 10 hours using client IP _ apps
persist uie "[IP::client_addr]_apps" 36000
}
default {
Persist client for 1 hour
persist source_addr 3600
}
}
}
}
I'm speculating I need that first line of code?
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