Forum Discussion
Annsar_Akhtar
Nimbostratus
Mar 17, 2015Setting IP:remote_addr using a custom header
Hi All
We have a custom app which is hard coded to capture the ip:remote_addr and wondering if it possible to replace this with a custom header via an irule.
Currently the app logs the F5 s...
Arie
Altostratus
Mar 17, 2015You can extract the value from the header that's inserted by the CDN and use it to populate your own header:
when HTTP_REQUEST {
HTTP::header insert True-Client-IP-CDN [HTTP::header value CDN-HEADER-NAME]
log local0. "Client IP: [IP::client_addr]"
}
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