Snort mailing list archives

RE: Ignoring more that one host completely


From: "Wirth, Jeff" <WirthJe () DNB com>
Date: Wed, 14 Aug 2002 09:12:47 -0400


From: Srijith.K [mailto:srijith () comp nus edu sg]

The snort FAQ states that if I need to completely
ignore packets from a particular IP address I can use
the BPF style filter at command line like:

$ snort <commandline options> not host 192.168.0.1

My question is, what if I need to ignore more that one IP address?
How do I pass it in command line? Is it -

$ snort <commandline options> not host 192.168.0.1 
192.168.10.1 192.168.12.1

is the sepetator between the IP addresses ' ' or is it something else?

a separator is not used with BPF, you need to add a *condition*...."and",
"or", "not".  One of the following should work:..

$ snort <options> not (host a.a.a.a or host b.b.b.b or host c.c.c.c)
$ snort <options> not host a.a.a.a or not host b.b.b.b or not host c.c.c.c


- Jeff


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
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: