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 ...
Vitaliy_Savrans
Mar 24, 2016Nacreous
Hi, if you want to add X-Forwarded-For header you can use:
when HTTP_REQUEST {
HTTP::header replace X-Forwarded-For [IP::client_addr]
}
- MSK_222682Mar 24, 2016NimbostratusHi Vitaliy, Thanks for the quick response. Will this iRule insert X-Forwarded-For header for the client requests which already have it, which shouldn't be the case as per my requirement. -MSK
- Vitaliy_SavransMar 24, 2016NacreousThis irule will insert the header if it wasn't present or replace the value.
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