Forum Discussion
cquick11_115408
Nimbostratus
Jun 07, 2013Real source IP from a CDN (EdgeCast) Persistence
This is just a reference for people using edgcast or another cdn.
You have to request that Edgecast sends the True-Client-IP and then set it up as a universal persistence profile with the irule below, they can actually send other fields in the http header. We just modfied the rule below from the forum.
when HTTP_REQUEST {
if { [HTTP::header exists "True-Client-IP"] } {
persist uie [HTTP::header "True-Client-IP"]
log local0. "[virtual name]:[HTTP::header value "True-Client-IP"]"
}
}
Thanks Guys.
1 Reply
- cquick11_115408
Nimbostratus
Funny how things work, I was checking something else and I came across Chris Miller's rule. I searched for this type of rule and couldn't find it. Oh well, here is Chris's link regarding Akamai
https://devcentral.f5.com/wiki/iRules.Akamai-True-Client-IP-Header-Persistence.ashx
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