Forum Discussion
Jeff_Tuthill_10
Aug 11, 2009Nimbostratus
So how do I get an iRule to look at two different Data Groups? Here is the scenario:
1. Check the IP addresses in data group 1 and send to pool
2. Check the hostnames (string) in data group 2 and send to pool
3. Otherwide discard
Would something like this work?:
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals $::DATA_GROUP_NAME] } {
pool pool1
} else {
if { [matchclass [DNS::name] equals $::DATA_GROUP_NAME2] } {
pool pool1
} else {
discard
}
}