Forum Discussion
Andy_O_4935
Nov 01, 2011Nimbostratus
X-Forwarded-for Header Insertion
In a lab setup, I wrote an irule to insert an X-forwarder-for header if one doesn't exist and using snat automap.
The Ip address I see on the webserver is the SNAT (floating) IP address which i...
Michael_Yates
Nov 01, 2011Nimbostratus
Hi Andy,
You could always just check it by logging it to your LTM Log to make sure that it is correct.
Here is an example:
when HTTP_REQUEST {
if { [HTTP::header exists "X-Forwarded-For"] } {
log local0. "X-Forward IP: [HTTP::header values "X-Forwarded-For"]"
log local0. "Client IP: [IP::client_addr]"
}
}
Hope this helps.
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