<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I had the same problem.  I was told that Suricata was only getting half the traffic and that I should use like below also.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>sudo iptables -I FORWARD -o eth0 -i eth1 -j NFQUEUE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think the order of the interfaces and packet direction is important to watch for.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Another way was:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>sudo iptables -I FORWARD - m physdev --physdev-in eth0 --physdev-out eth1 -j NFQUEUE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>sudo iptables -I FORWARD - m physdev --physdev-out eth0 --physdev-in eth1 -j NFQUEUE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I was told that af-packet IPS is more efficient and we use it for IPS mode.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><a href="https://home.regit.org/2012/09/new-af_packet-ips-mode-in-suricata/" target="_blank">https://home.regit.org/2012/09/new-af_packet-ips-mode-in-suricata/</a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I hope all of this helps.  It did for us.<o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> oisf-users-bounces@openinfosecfoundation.org [mailto:oisf-users-bounces@openinfosecfoundation.org] <b>On Behalf Of </b>mouna amani<br><b>Sent:</b> Thursday, June 13, 2013 3:30 AM<br><b>To:</b> oisf-users@openinfosecfoundation.org<br><b>Subject:</b> [Oisf-users] I did the installation of suricata as an IPS<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>I used NFQ to use surricata as an IPS<o:p></o:p></p><div><p class=MsoNormal>I have three machines:<o:p></o:p></p></div><div><p class=MsoNormal>-a host1 <o:p></o:p></p></div><div><p class=MsoNormal>-a host2 <o:p></o:p></p></div><div><p class=MsoNormal>-an IPS between them<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I followed the steps like in the official website<o:p></o:p></p></div><div><p class=MsoNormal>I used iptables -I FORWARD -i eth0 -o eth1 -j NFQUEUE <o:p></o:p></p></div><div><p class=MsoNormal>iptables -I FORWARD -i eth1 -o eth0 -j NFQUEUE and I check with iptables -vnL <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Then  I run suricata -c /etct/suricata/suricata.conf -q 0 <o:p></o:p></p></div><div><p class=MsoNormal> Everthing went well .I only got a warning "no rules to be loaded  from emerging-icmp.rules":I downloaded the file from web site and it is in the right place ".<o:p></o:p></p></div><div><p class=MsoNormal>I guess it is only a warning it will not effect the IPS working well ?<o:p></o:p></p></div><div><p class=MsoNormal>Then I tried to ping the host1 from host2 and I got the error destination unreachable .<o:p></o:p></p></div><div><p class=MsoNormal>I think the IPS is blocking all the trafic including the good want<o:p></o:p></p></div><div><p class=MsoNormal>I configured NFQ to work in accept/drop mode .I think it means that if the packets are for an attack they will be dropped ??<o:p></o:p></p></div><div><p class=MsoNormal>I really need help because this is for my final project .<o:p></o:p></p></div><div><p class=MsoNormal>What I did wrong and what should I check ?<o:p></o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <br><b><i><span style='color:#FF6666;background:#FFCC99'>Amani smiai </span></i></b><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></body></html>