Forum Discussion
Kai_Wilke
Jan 15, 2016MVP
Hi Ken,
you may try this syntax...
if { [IP::addr [getfield [IP::client_addr] "%" 1] equals 10.15.115.0/24 ] } then {
match
} else {
no match
}
Note1: The [class] command have to be used in combination with datagroups only.
Note2: Both the [IP::addr] and [class] commands requiring to strip the route domain to work.
Note3: Your current code is performance wise the best choice for /8, /16 or /24 subnets.
Note4: Coding on a iPhone doesnt make fun at all. So please bear with me if the code has some syntax errors... 😉
Cheers, Kai