Forum Discussion
Annsar_Akhtar
Nimbostratus
Oct 23, 2013Irule query custom header
Hi Guys
We have requirement to capture the original client ip address but our hosted sites are proxied via Akamai who have an option to enable a custom header with the true client ip address. ...
Annsar_Akhtar
Nimbostratus
Oct 23, 2013I think I might have found the answer to my question and possibly an irule I could potentially modify etc..on https://devcentral.f5.com/questions/geoip-redirection-irule:
Parse the client IP from the CDN header
set client_ip [HTTP::header value "Client-IP"]
if { $client_ip eq "" }{
The header was empty/did not exist, so use the actual client IP
set client_ip [IP::client_addr]
I dont know if the above is valid but if I am able to do something similar as what the client_ip is used for, then I could just replace with the Akamai_Header
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