Forum Discussion
hooleylist
Jul 10, 2009Cirrostratus
If you want to test a single IP address/subnet, you can use IP::addr (Click here). If you want to compare the client IP to a group of IP addresses and subnets, you can create them in a datagroup (aka class) and then use matchclass:
class users_A_class {
host 1.1.1.1
network 2.0.0.0/8
}
if {not ([matchclass [IP::client_addr] equals $::users_A_class])}{
The class definition is separate from the iRule.
Aaron