Forum Discussion
MSK_222682
Mar 24, 2016Nimbostratus
X-Forwarded-For header
Hi All,
My application team requirement is to able to see the actual client ip address whoever accessing the application instead of BIG IP address as SNAT (Auto map) is enabled.
I have read some ...
Yann_Desmarest
Cirrus
Hello,
You can use the following :
when HTTP_REQUEST {
if {[HTTP::header exists X-Forwarded-For]}{
HTTP::header replace X-Forwarded-For "[HTTP::header X-Forwarded-For], [IP::client_addr]"
} else {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
Vitaliy_Savrans
Mar 24, 2016Nacreous
about statements https://devcentral.f5.com/wiki/iRules.HTTP__header.ashx
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