Forum Discussion
Manuel_60430
Nimbostratus
Mar 25, 2014TCL error message with X-Forwarded-For iRule
We are using the X-Forwarded-For http header field on the BigIP LTM to server our webshop application with client IP addresses (to determinde country hawk and so on). Our web application can only wor...
Kevin_Stewart
Employee
Mar 25, 2014If I had to guess, it's because you're trying to perform replace and remove operations on the same header. Try this:
when HTTP_REQUEST {
if { [HTTP::header exists True-Client-IP] } {
HTTP::header replace X-Forwarded-For [HTTP::header True-Client-IP]
} else {
HTTP::header replace X-Forwarded-For [IP::client_addr]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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