Forum Discussion
amit_128525
Nimbostratus
Dec 04, 2013Irule for redirect
HeI am trying to understand below irule which is already create don our F5 please advise if possble .
when HTTP_REQUEST { if {[HTTP::header exists A-Forwarded-For]}{ HTTP::header replace A-Forw...
Dec 04, 2013
This iRule is looking for a HTTP header called A-Forwarded-For and if it exists it's replacing its value with the client IP address for the connection.
This iRule seems to be reliant on you having route domains configured on your unit as it is looking for "%" as a separator. I presume you are running TMOS v10.x.
If the header is not present then it is inserting it with the client IP address as its value.
Basically it's a way to log the source IP of your HTTP requests through the BIG-IP usually if you use SNAT.
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