<?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>Gentoo Blog &#187; iptables</title>
	<atom:link href="http://gentoo-blog.de/category/iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://gentoo-blog.de</link>
	<description>The ultimate Gentoo Blog</description>
	<lastBuildDate>Sun, 25 Dec 2011 10:48:06 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrading Iptables to 1.4 on Debian Etch</title>
		<link>http://gentoo-blog.de/iptables/upgrading-iptables-to-14-on-debian-etch/</link>
		<comments>http://gentoo-blog.de/iptables/upgrading-iptables-to-14-on-debian-etch/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 13:21:11 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[iptables]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=551</guid>
		<description><![CDATA[I required the module connlimit to limit the number of connections on one of our Debian firewall boxes. After a while of try and error i found out that the iptables version shipped with debian 1.3.6 doesn&#8217;t support the new module format used in 2.6.23+ kernels. So i looked for a backported version of iptables [...]]]></description>
			<content:encoded><![CDATA[<p>I required the module connlimit to limit the number of connections on one of our Debian firewall boxes. After a while of try and error i found out that the iptables version shipped with debian 1.3.6 doesn&#8217;t support the new module format used in 2.6.23+ kernels. So i looked for a backported version of iptables which i did not find <img src='http://gentoo-blog.de/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  So i thought i would try and install iptables from source. First download the latest iptables version from <a href="http://netfilter.org">Netfilter</a>.</p>
<p>Unpack the tarball</p>
<p><code>tar -xjvf iptables-1.4.2.tar.bz2</code></p>
<p>Change directory</p>
<p><code>cd iptables-1.4.2</code></p>
<p>configure iptables</p>
<p><code>./configure --prefix=/usr libdir=/lib bindir=/sbin mandir=/usr/share/man</code></p>
<p>if you just use ./configure then everything will be installed to /usr/local</p>
<p>make and install iptables</p>
<p><code>make prefix=/usr libdir=/lib bindir=/sbin mandir=/usr/share/man install</code></p>
<p>I don&#8217;t know why but a few binaries landed in /usr/sbin instead of /sbin so i copied them to the desired location</p>
<p>After that you can check your new iptables version</p>
<p><code>iptables -v</code> </p>
<p>The only problem i encountered is apps which need iptables as dependency beacuse aptitude will try and install the old version of iptables again as a dependency. Either you install those apps from source as well. Or you can install two versions of iptables one under /usr/local and one under /sbin which can be confusing.  </p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fiptables%2Fupgrading-iptables-to-14-on-debian-etch%2F&amp;t=Upgrading%20Iptables%20to%201.4%20on%20Debian%20Etch" id="facebook_share_link_551">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_551') || document.getElementById('facebook_share_icon_551') || document.getElementById('facebook_share_both_551') || document.getElementById('facebook_share_button_551');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_551') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/iptables/upgrading-iptables-to-14-on-debian-etch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iptables patch-o-matic-ng</title>
		<link>http://gentoo-blog.de/iptables/iptables-patch-o-matic-ng-extensions-connlimit/</link>
		<comments>http://gentoo-blog.de/iptables/iptables-patch-o-matic-ng-extensions-connlimit/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 16:46:31 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://gentoo-blog.de/?p=3</guid>
		<description><![CDATA[1. Download the newest patch-0-matic snapshot from
ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/. 
2. unpack with tar -xjvf filename
3. Check if Your iptables was compiled with the extensions USE flag. 
4. run ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild unpack
5. run ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild compile
6. Change dir to unpacked patch-o-matic-ng dir 
7. For the patch-o-matic module connlimit you must run ./runme --download
8. From there execute this one-liner [...]]]></description>
			<content:encoded><![CDATA[<p><span class="postbody"><span style="font-family: Arial" lang="EN-GB">1. Download the newest patch-0-matic snapshot from</span></span></p>
<p><span class="postbody"><span style="font-family: Arial"><a href="ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/" target="_blank"><span lang="EN-GB">ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/</span></a></span></span><span class="postbody"><span style="font-family: Arial" lang="EN-GB">. </span></span></p>
<p><span style="font-family: Arial" lang="EN-GB">2. unpack with tar -xjvf filename</span></p>
<p><span class="postbody"><span style="font-family: Arial" lang="EN-GB">3. Check if Your iptables was compiled with the <strong><em>extensions</em></strong> USE flag. </span></span></p>
<p><span style="font-family: Arial" lang="EN-GB">4. run <code><span style="font-family: Arial">ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild unpack</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">5. run <code><span style="font-family: Arial">ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild compile</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">6. <span class="postbody">Change dir to unpacked patch-o-matic-ng dir </span></span></p>
<p><span style="font-family: Arial" lang="EN-GB">7. For the patch-o-matic module connlimit you must run <code><span style="font-family: Arial">./runme --download</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">8. <span class="postbody">From there execute this one-liner </span></span></p>
<p><span class="postbody"><span style="font-family: Arial" lang="EN-GB">(you need to change KERNEL_DIR [<strong>/usr/src/linux</strong>],</span></span><span style="font-family: Arial" lang="EN-GB"><br />
<span class="postbody">IPTABLES_DIR [<strong>1.3.8-r1</strong>] and patches from p-o-m You want to apply [<strong>connlimit</strong>]) </span></span></p>
<p><code><span style="font-family: Arial" lang="EN-GB">IPTABLES_DIR=/var/tmp/portage/net-firewall/iptables-1.3.8-r1/work/iptables-1.3.8 KERNEL_DIR=/usr/src/linux ./runme connlimit</span></code></p>
<p><span style="font-family: Arial" lang="EN-GB">9. <span class="postbody">Now kernel and iptables sources are patched. It&#8217;s time to rebuild kernel (modules ) and iptables. Change to Your kernel sources dir</span></span></p>
<p><span style="font-family: Arial" lang="EN-GB">10.<code><span style="font-family: Arial"> cd /usr/src/linux</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">11. <code><span style="font-family: Arial">make menuconfig</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">12 . And choose you new modules</span></p>
<p><span style="font-family: Arial" lang="EN-GB">13. Now rebuild kernel modules and install them</span></p>
<p><span style="font-family: Arial" lang="EN-GB">14. <code><span style="font-family: Arial">make modules modules_install</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">15. Now You need to compile and install iptables (change dirs accordingly)</span></p>
<p><span style="font-family: Arial" lang="EN-GB">15. <code><span style="font-family: Arial">ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild install</span></code><br />
<code><span style="font-family: Arial">ebuild /usr/portage/net-firewall/iptables/iptables-1.3.8-r1.ebuild qmerge</span></code></span></p>
<p><span style="font-family: Arial" lang="EN-GB">16. <span class="postbody">If You have <strong>automatic kernel module loading</strong> compiled in the kernel Your modules will be loaded</span><br />
<span class="postbody">automatically each time iptables need it. Else You should load appropriate modules </span></span></p>
<p><span style="font-family: Arial" lang="EN-GB">17. <code><span style="font-family: Arial">modprobe ipt_connlimit</span></code></span></p>
<p><strong><span style="font-family: Arial" lang="EN-GB">Don&#8217;t forget! You need to repeat this whole procedure each time You update Your kernel or iptables!!!!</span></strong></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fgentoo-blog.de%2Fiptables%2Fiptables-patch-o-matic-ng-extensions-connlimit%2F&amp;t=iptables%20patch-o-matic-ng%20" id="facebook_share_link_3">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_3') || document.getElementById('facebook_share_icon_3') || document.getElementById('facebook_share_both_3') || document.getElementById('facebook_share_button_3');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_3') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://gentoo-blog.de/iptables/iptables-patch-o-matic-ng-extensions-connlimit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

