Snort mailing list archives

Re: Snort Inline mode with iptables problems on Ubuntu 12.04


From: James Lay <jlay () slave-tothe-box net>
Date: Wed, 19 Mar 2014 14:08:07 -0600

On 2014-03-19 13:17, Shiva wrote:
Hi,
I have installed the latest version of snort in inline mode and I
have been having problems in accessing the machine once I change the
iptables entries.I am able to start the snort with no issues.But as
soon as I change the iptables, I am no longer able to access it.Here
is the iptables commands that I use.

iptables -A INPUT -i lo -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -o lo -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
iptables -A INPUT -j QUEUE
iptables -A FORWARD -j QUEUE
iptables -A OUTPUT -j QUEUE

snort -Q —daq afpacket —daq-mode inline -i eth0:eth1 - u snort -g
snort -c /etc/snort/snort.conf

(I believe I don’t have to install extra modules for ip_queue on
ubuntu 12.04).Please let me know what I am doing wrong here?Any
suggestions is greatly appreciated.

—
Shiva

Gotta assign the queue a number and point snort to it:

snort -Q --daq nfq --daq-var device=br0 --daq-var queue=1 -c 
/etc/snort/snort.conf
iptables -I FORWARD -j NFQUEUE --queue-num 1

As I understand it, you only get one queue, so choose wisely.  I could 
be wrong as I'm in the early stages of converting from IDS to IPS.

James


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
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://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: