<div dir="ltr">Hi James,<div><br></div><div>Yes, I do have a capture on my Windows 7 PC which is sitting behind Snort(linux).</div><div><br></div><div>-> Snort command used: </div><div>snort -c /etc/snort/snort.conf -Q -i eth1:eth0 --daq afpacket -k none -A fast</div><div><br></div><div><br></div><div>-> Traffic from Windows 7 pc: </div><div><br></div><div><div>%wget <a href="http://cnn.com">cnn.com</a></div><div>--2015-02-22 22:54:36--  <a href="http://cnn.com/">http://cnn.com/</a></div><div>Resolving <a href="http://cnn.com">cnn.com</a> (<a href="http://cnn.com">cnn.com</a>)... 157.166.226.26, 157.166.226.25</div><div>Connecting to <a href="http://cnn.com">cnn.com</a> (<a href="http://cnn.com">cnn.com</a>)|157.166.226.26|:80... connected.</div><div>HTTP request sent, awaiting response... 301 Moved Permanently</div><div>Location: <a href="http://www.cnn.com/">http://www.cnn.com/</a> [following]</div><div>--2015-02-22 22:54:37--  <a href="http://www.cnn.com/">http://www.cnn.com/</a></div><div>Resolving <a href="http://www.cnn.com">www.cnn.com</a> (<a href="http://www.cnn.com">www.cnn.com</a>)... 103.245.222.185</div><div>Connecting to <a href="http://www.cnn.com">www.cnn.com</a> (<a href="http://www.cnn.com">www.cnn.com</a>)|103.245.222.185|:80... connected.</div><div>HTTP request sent, awaiting response... 302 Found</div><div>Location: <a href="http://edition.cnn.com/">http://edition.cnn.com/</a> [following]</div><div>--2015-02-22 22:54:38--  <a href="http://edition.cnn.com/">http://edition.cnn.com/</a></div><div>Resolving <a href="http://edition.cnn.com">edition.cnn.com</a> (<a href="http://edition.cnn.com">edition.cnn.com</a>)... 103.245.222.185</div><div>Reusing existing connection to <a href="http://www.cnn.com:80">www.cnn.com:80</a>.</div><div><b>HTTP request sent, awaiting response... 200 OK</b></div><div>Length: 214393 (209K) [text/html]</div><div>Saving to: ‘index.html.6’</div><div><br></div><div>100%[================================================================================>] 214,393      321KB/s   in 0.7s</div><div><br></div><div>2015-02-22 22:54:39 (321 KB/s) - ‘index.html.6’ saved [214393/214393]</div><div><br></div></div><div><br></div><div>Alert on Snort:</div><div><div><b>02/22-22:54:36.628789  [Drop] [**] [1:1112111:1] you are blocked [**] [Priority: 0] {TCP} <a href="http://192.168.10.1:54980">192.168.10.1:54980</a> -> <a href="http://103.245.222.185:80">103.245.222.185:80</a></b></div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 22, 2015 at 9:29 PM, James Lay <span dir="ltr"><<a href="mailto:jlay@...13475..." target="_blank">jlay@...13475...</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div><div><div class="h5">
On Sun, 2015-02-22 at 20:47 +0530, Rishabh Shah wrote:
<blockquote type="CITE">
    Hi James,
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    Thanks for looking in to this. In your case, the HTTP request is getting blocked by snort. But the same is not happening in my case. Any other command output that could help you figure out this issue?
</blockquote>
<blockquote type="CITE">
    <br>
</blockquote>
<blockquote type="CITE">
    On Sun, Feb 22, 2015 at 7:55 PM, James Lay <<a href="mailto:jlay@...843.....13475..." target="_blank">jlay@...13475...</a>> wrote:
</blockquote>
<blockquote type="CITE">
    <blockquote>
        On Sat, 2015-02-21 at 20:04 +0530, Rishabh Shah wrote: <br>
        <blockquote type="CITE">
            Hi Snort-Experts,<br>
            <br>
            <br>
            I am running Snort-2.9.7 in Ubuntu 14.04.1 LTS (64-bit). Snort is unable to drop packets, despite a drop alert being generated:<br>
            02/21-14:48:11.602240  [Drop] [**] [1:1112111:1] you are blocked [**] [Priority: 0] {TCP} <a href="http://192.168.10.1:53013/" target="_blank">192.168.10.1:53013</a> -> <a href="http://157.166.226.25/" target="_blank">157.166.226.25:80</a><br>
            <br>
            <br>
            -> Following rule in snort.rules file is getting triggered for the above alert log.<br>
            drop tcp any any -> any 80 (msg: "you are blocked"; sid: 1112111; rev: 1;)<br>
            <br>
            <br>
        </blockquote>
        <br>
        <blockquote type="CITE">
            <br>
            ===============================================================================<br>
            Action Stats:<br>
                 Alerts:            7 (  1.118%)<br>
                 Logged:            7 (  1.118%)<br>
                 Passed:            0 (  0.000%)<br>
            Limits:<br>
                  Match:            0<br>
                  Queue:            0<br>
                    Log:            0<br>
                  Event:            0<br>
                  Alert:            0<br>
            Verdicts:<br>
                  Allow:          231 ( 36.435%)<br>
                  Block:            0 (  0.000%)<br>
                Replace:            0 (  0.000%)<br>
              Whitelist:            0 (  0.000%)<br>
            <b><font size="4">  Blacklist:          394 ( 62.145%)</font></b><br>
                 Ignore:            0 (  0.000%)<br>
                  Retry:            0 (  0.000%)<br>
            ===============================================================================<br>
            <br>
        </blockquote>
        <br>
        Interestingly, Blacklist means getting dropped/blocked/not-allowed-through/whatever you want to call it.  Case in point below:<br>
        <br>
        start line:<br>
        <tt>sudo snort -c snort.conf -Q --daq afpacket -i eth1:eth2 -A console -k none</tt><br>
        <br>
        <tt>[ Number of patterns truncated to 20 bytes: 0 ]</tt><br>
        <tt>afpacket DAQ configured to inline.</tt><br>
        <tt>Acquiring network traffic from "eth1:eth2".</tt><br>
        <tt>Reload thread starting...</tt><br>
        <tt>Reload thread started, thread 0x7f383d236700 (3419)</tt><br>
        <br>
        <tt>        --== Initialization Complete ==--</tt><br>
        <br>
        snort rule:<br>
        <tt>drop tcp any any -> any $HTTP_PORTS (msg:"HTTP Traffic Index Get"; content:"index"; http_uri; sid:1000003; rev:1;)</tt><br>
        <br>
        wget from remote box:<br>
        <tt>[07:09:05 $] wget <a href="http://192.168.1.73/index.html" target="_blank">http://192.168.1.73/index.html</a></tt><br>
        <tt>--2015-02-22 07:09:44--  <a href="http://192.168.1.73/index.html" target="_blank">http://192.168.1.73/index.html</a></tt><br>
        <tt>Connecting to 192.168.1.73:80... connected.</tt><br>
        <tt>HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.</tt><br>
        <tt>Retrying.</tt><br>
        <br>
        <tt>--2015-02-22 07:09:45--  (try: 2)  <a href="http://192.168.1.73/index.html" target="_blank">http://192.168.1.73/index.html</a></tt><br>
        <tt>Connecting to 192.168.1.73:80... connected.</tt><br>
        <tt>HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.</tt><br>
        <tt>Retrying.</tt><br>
        <br>
        <tt>--2015-02-22 07:09:47--  (try: 3)  <a href="http://192.168.1.73/index.html" target="_blank">http://192.168.1.73/index.html</a></tt><br>
        <tt>Connecting to 192.168.1.73:80... connected.</tt><br>
        <tt>HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.</tt><br>
        <tt>Retrying.</tt><br>
        <br>
        tshark on ips box:<br>
        <tt>31 2015-02-22 07:09:46.143340  192.168.1.2 -> 192.168.1.73 TCP 74 43815→80 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1201101 TSecr=0 WS=128</tt><br>
        <tt>32 2015-02-22 07:09:46.143469 192.168.1.73 -> 192.168.1.2  TCP 74 80→43815 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=54730 TSecr=1201101 WS=16</tt><br>
        <tt>33 2015-02-22 07:09:46.144245  192.168.1.2 -> 192.168.1.73 TCP 66 43815→80 [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSval=1201101 TSecr=54730</tt><br>
        <tt>34 2015-02-22 07:09:46.145281  192.168.1.2 -> 192.168.1.73 HTTP 186 GET /index.html HTTP/1.1 </tt><br>
        <tt>35 2015-02-22 07:09:46.145388 192.168.1.73 -> 192.168.1.2  TCP 66 80→43815 [ACK] Seq=1 Ack=121 Win=14480 Len=0 TSval=54731 TSecr=1201101</tt><br>
        <tt>36 2015-02-22 07:09:46.145893  192.168.1.2 -> 192.168.1.73 TCP 54 43815→80 [RST, ACK] Seq=121 Ack=1 Win=0 Len=0</tt><br>
        <tt>37 2015-02-22 07:09:49.147339  192.168.1.2 -> 192.168.1.73 TCP 74 43817→80 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1201852 TSecr=0 WS=128</tt><br>
        <tt>38 2015-02-22 07:09:49.147486 192.168.1.73 -> 192.168.1.2  TCP 74 80→43817 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=55481 TSecr=1201852 WS=16</tt><br>
        <tt>39 2015-02-22 07:09:49.148246  192.168.1.2 -> 192.168.1.73 TCP 66 43817→80 [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSval=1201852 TSecr=55481</tt><br>
        <tt>40 2015-02-22 07:09:49.149275  192.168.1.2 -> 192.168.1.73 HTTP 186 GET /index.html HTTP/1.1 </tt><br>
        <tt>41 2015-02-22 07:09:49.149381 192.168.1.73 -> 192.168.1.2  TCP 66 80→43817 [ACK] Seq=1 Ack=121 Win=14480 Len=0 TSval=55482 TSecr=1201852</tt><br>
        <tt>42 2015-02-22 07:09:49.150088 192.168.1.73 -> 192.168.1.2  HTTP 557 HTTP/1.1 200 OK  (text/html)</tt><br>
        <tt>43 2015-02-22 07:09:49.151366  192.168.1.2 -> 192.168.1.73 TCP 54 43817→80 [RST, ACK] Seq=121 Ack=1 Win=0 Len=0</tt><br>
        <tt>46 2015-02-22 07:09:53.153356  192.168.1.2 -> 192.168.1.73 TCP 74 43818→80 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=1202853 TSecr=0 WS=128</tt><br>
        <tt>47 2015-02-22 07:09:53.153489 192.168.1.73 -> 192.168.1.2  TCP 74 80→43818 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=56483 TSecr=1202853 WS=16</tt><br>
        <tt>48 2015-02-22 07:09:53.154244  192.168.1.2 -> 192.168.1.73 TCP 66 43818→80 [ACK] Seq=1 Ack=1 Win=29312 Len=0 TSval=1202853 TSecr=56483</tt><br>
        <tt>49 2015-02-22 07:09:53.155285  192.168.1.2 -> 192.168.1.73 HTTP 186 GET /index.html HTTP/1.1 </tt><br>
        <tt>50 2015-02-22 07:09:53.155395 192.168.1.73 -> 192.168.1.2  TCP 66 80→43818 [ACK] Seq=1 Ack=121 Win=14480 Len=0 TSval=56483 TSecr=1202854</tt><br>
        <tt>51 2015-02-22 07:09:53.155921  192.168.1.2 -> 192.168.1.73 TCP 54 43818→80 [RST, ACK] Seq=121 Ack=1 Win=0 Len=0</tt><br>
        <br>
        snort result using console:<br>
        <tt>02/22-07:09:46.145218  [Drop] [**] [1:1000003:1] HTTP Traffic Index Get [**] [Priority: 0] {TCP} <a href="http://192.168.1.2:43815" target="_blank">192.168.1.2:43815</a> -> <a href="http://192.168.1.73:80" target="_blank">192.168.1.73:80</a></tt><br>
        <tt>02/22-07:09:49.149219  [Drop] [**] [1:1000003:1] HTTP Traffic Index Get [**] [Priority: 0] {TCP} <a href="http://192.168.1.2:43817" target="_blank">192.168.1.2:43817</a> -> <a href="http://192.168.1.73:80" target="_blank">192.168.1.73:80</a></tt><br>
        <tt>02/22-07:09:53.155221  [Drop] [**] [1:1000003:1] HTTP Traffic Index Get [**] [Priority: 0] {TCP} <a href="http://192.168.1.2:43818" target="_blank">192.168.1.2:43818</a> -> <a href="http://192.168.1.73:80" target="_blank">192.168.1.73:80</a></tt><br>
        <br>
        and lastly, snort stats after kill:<br>
        <tt>===============================================================================</tt><br>
        <tt>Packet I/O Totals:</tt><br>
        <tt>   Received:           57</tt><br>
        <tt>   Analyzed:           57 (100.000%)</tt><br>
        <tt>    Dropped:            0 (  0.000%)</tt><br>
        <tt>   Filtered:            0 (  0.000%)</tt><br>
        <tt>Outstanding:            0 (  0.000%)</tt><br>
        <tt>   Injected:           12                  <----------- injected RST I am guessing</tt><br>
        <tt>===============================================================================</tt><br>
        <br>
        <tt>===============================================================================</tt><br>
        <tt>Action Stats:</tt><br>
        <tt>     Alerts:            6 ( 10.526%)</tt><br>
        <tt>     Logged:            6 ( 10.526%)</tt><br>
        <tt>     Passed:            0 (  0.000%)</tt><br>
        <tt>Limits:</tt><br>
        <tt>      Match:            0</tt><br>
        <tt>      Queue:            0</tt><br>
        <tt>        Log:            0</tt><br>
        <tt>      Event:            0</tt><br>
        <tt>      Alert:            0</tt><br>
        <tt>Verdicts:</tt><br>
        <tt>      Allow:           50 ( 87.719%)</tt><br>
        <tt>      Block:            0 (  0.000%)</tt><br>
        <tt>    Replace:            0 (  0.000%)</tt><br>
        <tt>  Whitelist:            0 (  0.000%)</tt><br>
        <tt>  Blacklist:            7 ( 12.281%)</tt><br>
        <tt>     Ignore:            0 (  0.000%)</tt><br>
        <tt>      Retry:            0 (  0.000%)</tt><br>
        <br>
        And there ya go.<br>
        <br>
        <font color="#888888">James</font>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        ------------------------------------------------------------------------------<br>
        Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server<br>
        from Actuate! Instantly Supercharge Your Business Reports and Dashboards<br>
        with Interactivity, Sharing, Native Excel Exports, App Integration & more<br>
        Get technology previously reserved for billion-dollar corporations, FREE<br>
        <a href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk</a><br>
        _______________________________________________<br>
        Snort-users mailing list<br>
        <a href="mailto:Snort-users@lists.sourceforge.net" target="_blank">Snort-users@lists.sourceforge.net</a><br>
        Go to this URL to change user options or unsubscribe:<br>
        <a href="https://lists.sourceforge.net/lists/listinfo/snort-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/snort-users</a><br>
        Snort-users list archive:<br>
        <a href="http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users" target="_blank">http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users</a><br>
        <br>
        Please visit <a href="http://blog.snort.org" target="_blank">http://blog.snort.org</a> to stay current on all the latest Snort news!
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    -- 
</blockquote>
<blockquote type="CITE">
    Regards,
</blockquote>
<blockquote type="CITE">
    Rishabh Shah.
</blockquote>
<blockquote type="CITE">
<pre>------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk</a>
_______________________________________________
Snort-users mailing list
<a href="mailto:Snort-users@lists.sourceforge.net" target="_blank">Snort-users@lists.sourceforge.net</a>
Go to this URL to change user options or unsubscribe:
<a href="https://lists.sourceforge.net/lists/listinfo/snort-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/snort-users</a>
Snort-users list archive:
<a href="http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users" target="_blank">http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users</a>

Please visit <a href="http://blog.snort.org" target="_blank">http://blog.snort.org</a> to stay current on all the latest Snort news!
</pre>
</blockquote>
<br></div></div>
Rishabh,<br>
<br>
How are you confirming that this isn't getting dropped/blocked/blacklisted?  Do you have a capture, or can you capture on the IPS to see what the traffic is looking like?<span class="HOEnZb"><font color="#888888"><br>
<br>
James
</font></span></div>

<br>------------------------------------------------------------------------------<br>
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server<br>
from Actuate! Instantly Supercharge Your Business Reports and Dashboards<br>
with Interactivity, Sharing, Native Excel Exports, App Integration & more<br>
Get technology previously reserved for billion-dollar corporations, FREE<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk</a><br>_______________________________________________<br>
Snort-users mailing list<br>
<a href="mailto:Snort-users@lists.sourceforge.net">Snort-users@...4626...ceforge.net</a><br>
Go to this URL to change user options or unsubscribe:<br>
<a href="https://lists.sourceforge.net/lists/listinfo/snort-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/snort-users</a><br>
Snort-users list archive:<br>
<a href="http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users" target="_blank">http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users</a><br>
<br>
Please visit <a href="http://blog.snort.org" target="_blank">http://blog.snort.org</a> to stay current on all the latest Snort news!<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards,<div>Rishabh Shah.</div></div>
</div>