<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Inliniac &#187; libnetfilter_queue</title>
	<atom:link href="http://www.inliniac.net/blog/tag/libnetfilter_queue/feed" rel="self" type="application/rss+xml" />
	<link>http://www.inliniac.net/blog</link>
	<description>Everything inline.</description>
	<lastBuildDate>Thu, 02 Sep 2010 22:20:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Compiling Snort_inline with NFQUEUE support on Ubuntu</title>
		<link>http://www.inliniac.net/blog/2007/06/26/compiling-snort_inline-with-nfqueue-support-on-ubuntu.html</link>
		<comments>http://www.inliniac.net/blog/2007/06/26/compiling-snort_inline-with-nfqueue-support-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 26 Jun 2007 15:59:21 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Snort_inline]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[feisty]]></category>
		<category><![CDATA[libnetfilter_queue]]></category>
		<category><![CDATA[libnfnetlink]]></category>
		<category><![CDATA[nfqueue]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/?p=89</guid>
		<description><![CDATA[I needed to setup the right libraries for Snort_inline development on my fresh Ubuntu Feisty installation, so I decided to write down the procedure for those who think compiling Snort_inline from source is hard. Make sure you have build-essential package installed. This makes sure you have a compiler and development packages for glibc and other [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to setup the right libraries for Snort_inline development on my fresh Ubuntu Feisty installation, so I decided to write down the procedure for those who think compiling Snort_inline from source is hard. <img src='http://www.inliniac.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Make sure you have build-essential package installed. This makes sure you have a compiler and development packages for glibc and other important libraries. I&#8217;m installing the libraries from source to get the latest versions because the latest versions are more stable and perform better than the versions included in Feisty. I&#8217;m installing them into /usr because some programs like them there best.</p>
<p align="left">Download the library libnfnetlink version 0.0.25 from <a href="http://ftp.netfilter.org/pub/libnfnetlink/" target="_blank">http://ftp.netfilter.org/pub/libnfnetlink/</a></p>
<blockquote>
<pre>$ tar xvfj libnfnetlink-0.0.25.tar.bz2
$ cd libnfnetlink-0.0.25/
$ ./configure --prefix=/usr
$ make
$ sudo make install</pre>
</blockquote>
<p align="left">Next download libnetfilter_queue version 0.0.13 from <a href="http://ftp.netfilter.org/pub/libnetfilter_queue/" target="_blank">http://ftp.netfilter.org/pub/libnetfilter_queue/</a></p>
<blockquote>
<pre>$ tar xvfj libnetfilter_queue-0.0.13.tar.bz2
$ cd libnetfilter_queue-0.0.13
$ ./configure --prefix=/usr
$ make
$ sudo make install</pre>
</blockquote>
<p>Okay, that sets up the Netfilter libraries.</p>
<p>Next is the installation of libdnet. Do not use the dnet packages from Debian and Ubuntu because this is not the same library as we need for Snort_inline.</p>
<p>Download libdnet 1.11 from <a href="http://libdnet.sourceforge.net/" target="_blank">http://libdnet.sourceforge.net/</a></p>
<blockquote>
<pre>$ tar xzvf libdnet-1.11.tar.gz
$ cd libdnet-1.11
$ ./configure --prefix=/usr
$ make
$ sudo make install</pre>
</blockquote>
<p>Download snort_inline 2.6.1.5 from <a href="http://snort-inline.sourceforge.net/" target="_blank">http://snort-inline.sourceforge.net/</a></p>
<blockquote>
<pre>$ tar xvzf snort_inline-2.6.1.5.tar.gz
$ cd snort_inline-2.6.1.5
$ ./configure --enable-nfnetlink
$ make
$ sudo make install</pre>
</blockquote>
<p>Test if it works (as root):</p>
<blockquote>
<pre># iptables -A OUTPUT -p icmp -j NFQUEUE
# iptables -A INPUT -p icmp -j NFQUEUE
# /usr/local/bin/snort_inline -v -Q -H0</pre>
</blockquote>
<p>Then ping some host and you should see Snort_inline display the packets. If it doesn&#8217;t work, it might be that the kernel modules needed for nfqueue are not yet loaded. Using &#8216;lsmod&#8217; check if &#8216;nfnetlink&#8217; and &#8216;nfnetlink_queue&#8217; are loaded. If not, load them manually.</p>
<p>After this, setup Snort_inline as normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2007/06/26/compiling-snort_inline-with-nfqueue-support-on-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
