Forum Discussion
SSHSSH_97332
Nimbostratus
Jan 26, 2012Multiple IRules to same VS
i will do an Irule mentioned at the below link : but at the same time i want to forward to specific Pool based on src ip of client , will i do 2 Irules & then apply to the VS ? or it should only be o...
nitass
Employee
Jan 28, 2012can you try this?
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
youtube.com -
www.youtube.com -
4shared.com -
www.4shared.com -
rapidshare.com -
www.rapidshare.com {
set flag 1
}
default {
set flag 0
}
}
if {[class match -- [IP::client_addr] equals group1] and $flag} {
pool proxy1
} elseif {[class match -- [IP::client_addr] equals group2] and $flag} {
pool proxy2
} else {
forward
pool gateway
}
}
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