Forum Discussion
AC_1475
Nimbostratus
Jun 05, 2007Using Different ports based on client IP
I have a load balancer that sits in front of two servers. Currently http requests come into the load balancer on port 8888 and then are sent to Server A on port 8888 or Server B on port 8888. ...
dennypayne
Employee
Jun 05, 2007You just need to create a different pool on port 7777 and then select that pool when the client list matches. You can set up your IP list as a Data Group and then use matchclass to compare the client IP to the list. So something like this: (not syntax tested)
when HTTP_REQUEST {
if {[matchclass [IP::client_addr] equals $::your_ip_list] }{
pool 7777_pool
}
}Hope that helps,
Denny
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