Forum Discussion
YossiV
Nimbostratus
Oct 06, 2015Replace Source ip with Real Client IP
Dear Community,
lately we started working with 3rd party company that making us Application security and protection (the A-Recored pointing to the protection gateway, and then it redirect ...
Brad_Parker
Cirrus
Oct 06, 2015Give this a try. One caveat, this will only work if your LTM is the default route for the backend servers, otherwise you will end up with asynchronous routing.
when HTTP_REQUEST {
if {[HTTP::header exists "X-Real-IP"]}{
snat [HTTP::header "X-Real-IP"]
}
elseif {[HTTP::header exists "X-Forwarded-For"}{
snat [HTTP::header "X-Forwarded-For"
}
else {
return
}
}
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