Forum Discussion
Kevin_Nail
Nimbostratus
Jan 15, 2009Multiple XFF headers
We have a situation where it may be possible for one LTM to insert the XFF and load-blance the packets to another LTM with another XFF set.
I would like to have an iRule the checks for ...
dennypayne
Employee
Jan 15, 2009I would try using "return" to exit from the HTTP_REQUEST event.
when HTTP_REQUEST {
if {[HTTP::header exists "X-Forwarded-For"]}
return
} else {
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
}
}
Denny
EDIT: removed extra bracket
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