Forum Discussion
dennypayne
Jan 21, 2009Employee
Hi,
You'll want to use the matchclass command with a couple of class files (Data Groups in the GUI). Click here
So if you build 2 class files, one called http-Test-mediation and the other alt-http-Test with the appropriate addresses, then use a rule like this:
when CLIENT_ACCEPTED {
if { [matchclass $::http-Test-mediation contains [IP::client_addr]] } {
pool http-Test-mediation
} elseif { [matchclass $::alt-http-Test contains [IP::client_addr]] } {
pool alt-http-Test
} else {
pool alt-http-Test-mediation
}
}
then you should be able to update your class files without having to change the rule.
Denny