Hello,
I am running Snort on Windows 2008 Server R2
I am trying to figure out how I can bypass traffic that is being sent from certain networks, since it is creating false-positives
Information on my setup.
My watched networks are:: 10.75.x.x/24 and 10.76.x.x/24
Now I also have two other networks, that are not being watched, but are part of my companies network and setup.
They are:: 10.10.x.x/24 <- Office network
10.30.x.x/24 <- Remote VPN users
Originally I tried putting in a .bpf file, but that did not work. (anyone know how to make it work?)
So I tried my HOME_NET like this::Â [10.75.0.0/16,10.76.0.0/16,!10.10.0.0/24,!10.30.0.0/24]
That didn't work, snort still sent out alerts for the two networks.
So I put HOME_NET back to ::Â [10.75.0.0/16,10.76.0.0/16]
And set EXTERNAL_NET to this::Â [any, !10.10.0.0/24,!10.30.0.0/24], that did not work
So I tried::Â [any, [!10.10.0.0/24,10.30.0.0/24]], that did not work
Â
Any ideas on what I can do to fix this?
My networks 10.75.x.x and 10.76.x.x are connected to the networks 10.10.x.x and 10.30.x.x via two Cisco PIX 515E's
Â
Thanks,
Seth
Ok, I think I got it corrected.
I altered my EXTERNEL_NET variable to ::Â [!10.30.0.0/24,!10.10.0.0/24]
That seems to have stopped the false-positives, while still logging other traffic.
So I am assuming there is a default "any" aspect to this variable.
What is DAQ? I have seen that, but have no idea what that is.
As far as my bpf file goes, if it is like this::
Â
#not net 10.10.0.0/24 and not net 10.30.0.0/24
not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
It will fail with::
Reading filter from bpf file: D:\Snort\etc\ignore2.bpf
ERROR: short read D:\Snort\etc\ignore2.bpf (169 != 170)
Fatal Error, Quitting..
Â
If I remove the commented line, then snort starts fine.
If I try to have multiple lines in the file, (all being rules, no comments) the it will fail with a similar error as above.
I have never seen a DAQ error.
Â
From: Russ Combs [mailto:rco...@sourcefire.com]
Sent: Thursday, May 02, 2013 12:08 AM
To: waldo kitty
Cc: snort...@lists.sourceforge.net
Subject: Re: [Snort-users] Network Variables
Â
Snort does allow comments in the BPF file, starting with # to end of line. Â If there is a syntax error, you should see something like:
What is DAQ? I have seen that, but have no idea what that is.As far as my bpf file goes, if it is like this::Â#not net 10.10.0.0/24 and not net 10.30.0.0/24not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
It will fail with::Reading filter from bpf file: D:\Snort\etc\ignore2.bpfERROR: short read D:\Snort\etc\ignore2.bpf (169 != 170)Fatal Error, Quitting..ÂIf I remove the commented line, then snort starts fine.
If I try to have multiple lines in the file, (all being rules, no comments) the it will fail with a similar error as above.
I have never seen a DAQ error.Â
What is DAQ? I have seen that, but have no idea what that is.
As far as my bpf file goes, if it is like this::
Â
#not net 10.10.0.0/24 and not net 10.30.0.0/24
not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
It will fail with::Reading filter from bpf file: D:\Snort\etc\ignore2.bpf
ERROR: short read D:\Snort\etc\ignore2.bpf (169 != 170)
Fatal Error, Quitting..
I tried using quotes,
Starting with " #
Starting and ending with "Â "
Tried starting with ## and ending with ##
If I have a blank line, with the rule on the next line,
Tried calling the file with the -F switch, and not through snort.conf file
All come back with the same error.
Very odd, not being able to comment out a line, when the snort.conf file is full of commented lines.
Â
Nothing seems to work with the bpf file, and it seems I am stuck to having just one rule in the file.Â
Â
From: James Lay [mailto:jl...@slave-tothe-box.net]
Sent: Thursday, May 02, 2013 8:10 AM
To: Snort
Subject: Re: [Snort-users] Network Variables
Â
Quotation marks may be needed…try appending via command line as well.
Â
James
Â
On May 2, 2013, at 5:50 AM, Seth Dunn <se...@d2ms.com> wrote:
What is DAQ? I have seen that, but have no idea what that is.
As far as my bpf file goes, if it is like this::
Â
#not net 10.10.0.0/24 and not net 10.30.0.0/24
not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
It will fail with::
Reading filter from bpf file: D:\Snort\etc\ignore2.bpf
ERROR: short read D:\Snort\etc\ignore2.bpf (169 != 170)
Fatal Error, Quitting..
Â
If I remove the commented line, then snort starts fine.
If I try to have multiple lines in the file, (all being rules, no comments) the it will fail with a similar error as above.
I have never seen a DAQ error.
Also of note.
It seems that if snort starts with a bpf file configured....then for whatever reason, all traffic is no longer monitored, even though snort has started.
So while this rule::
not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
is pretty specific.....
I have another rule set in my local.rules file that should alert on any FTP attempt to IP 10.76.65.1....and if the bpf file is configured for snort, then the attempt is not alerted by snort.
If I remove the bpf file from being used, then any FTP attempt is again alerted.
On 2013-05-02 08:09, Seth Dunn wrote:
> Also of note.
> It seems that if snort starts with a bpf file configured....then for
> whatever reason, all traffic is no longer monitored, even though
> snort
> has started.
> So while this rule::
> not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not
> net
> 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
>
> is pretty specific.....
> I have another rule set in my local.rules file that should alert on
> any FTP attempt to IP 10.76.65.1....and if the bpf file is configured
> for snort, then the attempt is not alerted by snort.
> If I remove the bpf file from being used, then any FTP attempt is
> again alerted.
>
> FROM: James Lay [mailto:jl...@slave-tothe-box.net]
> SENT: Thursday, May 02, 2013 8:10 AM
> TO: Snort
> SUBJECT: Re: [Snort-users] Network Variables
>
> Quotation marks may be needed…try appending via command line as
> well.
>
> James
>
> On May 2, 2013, at 5:50 AM, Seth Dunn <se...@d2ms.com [1]> wrote:
>
> What is DAQ? I have seen that, but have no idea what that is.
>
> As far as my bpf file goes, if it is like this::
>
> #not net 10.10.0.0/24 and not net 10.30.0.0/24
>
> not net 10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not
> net
> 10.30.0.0/24 and dst host 10.75.45.1 && dst port 80
>
> It will fail with::
>
> Reading filter from bpf file: D:Snortetcignore2.bpf
>
> ERROR: short read D:Snortetcignore2.bpf (169 != 170)
>
> Fatal Error, Quitting..
>
> If I remove the commented line, then snort starts fine.
> If I try to have multiple lines in the file, (all being rules, no
> comments) the it will fail with a similar error as above.
> I have never seen a DAQ error.
>
> FROM: Russ Combs [mailto:rco...@sourcefire.com [2]]
> SENT: Thursday, May 02, 2013 12:08 AM
> TO: waldo kitty
> CC: snort...@lists.sourceforge.net [3]
> SUBJECT: Re: [Snort-users] Network Variables
> http://p.sf.net/sfu/appdyn_d2d_ap1 [5]
> _______________________________________________
> Snort-users mailing list
> Snort...@lists.sourceforge.net [6]
> Go to this URL to change user options or unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/snort-users [7]
> Snort-users list archive:
> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
> [8]
>
> Please visit http://blog.snort.org [9] to stay current on all the
> latest Snort news!
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for
> Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
>
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> [10]
> Snort-users mailing list
> Snort...@lists.sourceforge.net [11]
> Go to this URL to change user options or unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/snort-users [12]
> Snort-users list archive:
> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
> [13]
>
> Please visit http://blog.snort.org [14] to stay current on all the
> latest Snort news!
>
>
>
> Links:
> ------
> [1] mailto:se...@d2ms.com
> [2] http://sourcefire.com
> [3] mailto:snort...@lists.sourceforge.net
> [4] mailto:wkit...@windstream.net
> [5] http://p.sf.net/sfu/appdyn_d2d_ap1
> [6] mailto:Snort...@lists.sourceforge.net
> [7] https://lists.sourceforge.net/lists/listinfo/snort-users
> [8]
> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
> [9] http://blog.snort.org
> [10]
>
> http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
> [11] mailto:Snort...@lists.sourceforge.net
> [12] https://lists.sourceforge.net/lists/listinfo/snort-users
> [13]
> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
> [14] http://blog.snort.org
[08:19:26 me@box:~/snort$ sudo snort -c snort.conf 'not net
10.10.0.0/24 and dst host 10.75.45.1 && dst port 80 or not net
10.30.0.0/24 and dst host 10.75.45.1 && dst port 80'
Running in IDS mode
--== Initializing Snort ==--
Initializing Output Plugins!
Initializing Preprocessors!
Initializing Plug-ins!
<snip>
Decoding Ethernet
--== Initialization Complete ==--
,,_ -*> Snort! <*-
o" )~ Version 2.9.4.6 GRE (Build 73)
'''' By Martin Roesch & The Snort Team:
http://www.snort.org/snort/snort-team
Copyright (C) 1998-2012 Sourcefire, Inc., et al.
Using libpcap version 1.1.1
Using PCRE version: 8.12 2011-01-15
Using ZLIB version: 1.2.3.4
Rules Engine: SF_SNORT_DETECTION_ENGINE Version 1.17
<Build 18>
Preprocessor Object: SF_SDF Version 1.1 <Build 1>
<snip>
Preprocessor Object: SF_DNP3 Version 1.1 <Build 1>
Commencing packet processing (pid=28871)
James
James