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 05, 2011Nimbostratus
Actually, this one would be better as it grabs the pool that's assigned to the VIP and I can now be used across multiple VIPs with a single irule. This should help users like me who use CDNs like akamai or limelight.
when HTTP_REQUEST {
set default_pool [LB::server pool]
if {[HTTP::header exists "True-Client-IP"]}{
set tcip_header [HTTP::header "True-Client-IP"]
} else { set tcip_header [IP::remote_addr] }
if {[active_members $default_pool]}{
persist uie $tcip_header 43200
return
}
}
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