Forum Discussion
What_Lies_Bene1
Dec 13, 2012Cirrostratus
I'm not sure switch matches client addresses to subnets like an if statement would? If it does, you need some quotation marks at least;
when CLIENT_ACCEPTED {
switch [IP::addr [IP::client_addr]] {
"10.120.0.0/16" { STATS::incr mystats Stats_GER 1 }
"10.110.0.0/16" { STATS::incr mystats Stats_CZ 1 }
default { STATS::incr mystats Stats_Other 1 }
}
}
[/code