xiaolin_chen_99
Jan 19, 2010Nimbostratus
pass traffic based on client source IPs
Hello,
i have a simple question. we want to pass traffic based on client source ip. i have below irule.
when CLIENT_ACCEPTED {
if { [IP::addr [client_addr] equals 192.168.217.0/24] } {
pool pool-1
} elseif { [IP::addr [client_addr] equals 192.179.217.0/24] } {
pool pool-1
} elseif { [IP::addr [client_addr] equals 192.179.10.0/24] } {
pool pool-1
} else {
pool pool-2
}
}
My question is:
1. if IP::addr [client_addr] equals 192.168.217.0/24 means client address belong to this /24 subnet, or must equal ? because we have a lot source ips in these three subnets, we do not want list all the /32 source ip on irule.
Thanks in advance.
xiaolin