Snort mailing list archives

Question about negated and non-negated variables in rules


From: "J-H. Johansen" <corinth () online no>
Date: Thu, 27 Nov 2003 14:49:07 +0100

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


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: