Forum Discussion
Lou_125071
Nimbostratus
Dec 09, 2014Load balance to specific pool by reading the X-Forwarded-For IP address
I've been asked if we can send specific client to a different pool based on the X-Forwarded-For IP address. I suspect this must be done via an IRule. Any help would be appreciated.
Thanks
Ryannnnnnnnn
Altocumulus
Dec 09, 2014Hi mate,
maybe something like the following
when HTTP_REQUEST {
if {[HTTP::header values "X-Forwarded-For"] contains "1.2.3.4"}{
pool some_pool
}
}
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