[Snort-users] Same source/dest

Brei, Matt mbrei at ...8727...
Wed Apr 2 10:49:29 EST 2003

How do I go about adding a BPF, and what is a BPF as long as I'm asking
how to add one?  Thank you.

-----Original Message-----
From: Erek Adams [mailto:erek at ...950...] 
Sent: Wednesday, April 02, 2003 11:59 AM
To: Brei, Matt
Cc: snort-users
Subject: RE: [Snort-users] Same source/dest

On Wed, 2 Apr 2003, Brei, Matt wrote:

> That's exactly what I did.  I'll refer you to my first post seen
>   pass ip 53 -> 1026 (msg:"BAD TRAFFIC
> > same SRC/DST"; sameip; reference:cve,CVE-1999-0016;
> > reference:url,www.cert.org/advisories/CA-1997-28.html;
> > classtype:bad-unknown; sid:527; rev:3;)

Remove the extra stuff.  It's not needed, and you're 'reusing' a SID
you shouldn't do.  You can shorten all that to:

	pass ip 53 -> 1026

If 1026 is what port it always hits on.  If it varries, then change it

	pass ip 53 -> any

I'm assuming that this is DNS traffic.  To reduce the chance of
bad slipping by you could make it:

	pass udp 53 -> any

One thing to think about:  If you're seeing a lot of traffic of this
instead of using a pass rule, use a BPF filter.  By using the BPF
you are stopping the packets from ever getting into Snort.  As minor as
that sounds, that can save you CPU cycles which is a good thing.  It
eliminates the need for the reading and parsing the pass rules, and the
comparisions to see if it should be passed.  On a heavily loaded
that could be a significant savings.


Erek Adams

   "When things get weird, the weird turn pro."   H.S. Thompson

More information about the Snort-users mailing list