Forum Discussion
sonu_kumar4
Altostratus
Jan 10, 2019i-Rule redirect/load-balance request based upon source subnets.
Hello Guys,
I am looking for I-rule which could load-balance the requests to different-2 pools based upon the different-2 source subnets.
let's say I have three pool:-
Pool-A
10.10.10....
Rico
Cirrus
Jan 10, 2019Try this:
when HTTP_REQUEST
{
switch [IP::addr [IP::remote_addr]]
{
case "172.16.10.0/24" -
case "172.16.20.0/24" {
pool Pool-A
}
case "172.16.30.0/24" -
case "172.16.40.0/24" {
pool Pool-B
}
case "172.16.50.0/24" -
case "172.16.60.0/24" {
pool Pool-C
}
default {
pool Pool-A
}
}
}
If you have any more questions, I am sure I can help.
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