Forum Discussion
Michael_Yates
Mar 24, 2011Nimbostratus
You could string them together, but it is cleaner to create a Data Group (Under Local Traffic -> iRules -> Data Group List) to put all of your subnets in.
Create group.
General Properties:
Type Address.
Records:
Type Network.
Then modify your iRule to perform a class match (class match is v10. You will need to use matchclass and some different syntax for v9). In this case I named the class: mynetworks.
when CLIENT_ACCEPTED {
if { [class match IP::addr[IP::client_addr] eq mynetworks] } {
pool matching.pool.name
}
else {
pool nonmatching.pool.name
}
}