[Snort-users] Question about negated and non-negated variables in rules

J-H. Johansen corinth at ...4741...
Thu Nov 27 05:50:03 EST 2003


Hi,

I'm working on some ICMP rules and was wondering
Recently I added a variable which contains our homenet with exclusions:

var NOT_ICMP_SERVERS [$HOME_NET,!xxx.xxx.xx.xxx/32,!xxx.xx.xx.xx/32]

This failed while running a check so I've also tried:

var ICMP_WHITELIST [xxx.xxx.xx.xxx/32,xxx.xx.xx.xx/32]
var NOT_ICMP_SERVERS $HOME_NET !$ICMP_WHITELIST

this one doesn't fail but it doesn't work either.

var ICMP_WHITELIST [xxx.xxx.xx.xxx/32,xxx.xx.xx.xx/32]
var NOT_ICMP_SERVERS [$HOME_NET,!$ICMP_WHITELIST]

fails as well.

Any clues as to how this must be done ?


Thanks
Jens-Harald Johansen




More information about the Snort-users mailing list