<?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>k3mist™ &#187; iptables</title>
	<atom:link href="http://k3mist.com/tag/iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://k3mist.com</link>
	<description>Development, Design &#38; System Administration</description>
	<lastBuildDate>Sat, 12 Sep 2009 15:40:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Howto prevent and block repeat failed connections to ssh with iptables</title>
		<link>http://k3mist.com/linux/howto-prevent-and-block-repeat-failed-connections-to-ssh-with-iptables/</link>
		<comments>http://k3mist.com/linux/howto-prevent-and-block-repeat-failed-connections-to-ssh-with-iptables/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 13:07:06 +0000</pubDate>
		<dc:creator>k3mist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://k3mist.com/?p=152</guid>
		<description><![CDATA[<p>The following iptable entries will prevent and block repeat failed connections, but not permanently. This allows two new connections every 60 seconds. This is an effective way of blocking automated attacks you will see mostly from Chinese ISP&#8217;s.</p>
<p><code><br />
iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW  --set --name DEFAULT --rsource<br />
iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW -j DROP  --update --seconds 60 --hitcount 2 --name DEFAULT --rsource<br />
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT<br />
</code></p>
]]></description>
			<content:encoded><![CDATA[<p>The following iptable entries will prevent and block repeat failed connections, but not permanently. This allows two new connections every 60 seconds. This is an effective way of blocking automated attacks you will see mostly from Chinese ISP&#8217;s.</p>
<p><code><br />
iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW  --set --name DEFAULT --rsource<br />
iptables -A INPUT -p tcp -m tcp -m state -m recent ! -s 10.0.0.0/24 -i eth0 --dport 22 --state NEW -j DROP  --update --seconds 60 --hitcount 2 --name DEFAULT --rsource<br />
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://k3mist.com/linux/howto-prevent-and-block-repeat-failed-connections-to-ssh-with-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto allow outgoing ftp connections in iptables</title>
		<link>http://k3mist.com/linux/howto-allow-outgoing-ftp-connections-in-iptables/</link>
		<comments>http://k3mist.com/linux/howto-allow-outgoing-ftp-connections-in-iptables/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 18:24:55 +0000</pubDate>
		<dc:creator>k3mist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://k3mist.com/?p=149</guid>
		<description><![CDATA[<p>From terminal, execute the following;<br />
<code>sudo modprobe ip_nat_ftp ports=21<br />
sudo modprobe ip_conntrack_ftp</p>
<p>sudo iptables -A FORWARD -m state --state ESTABLISHED -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --dport 21 --state NEW -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --sport 20 --state RELATED -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --dport 1024:65535 --sport 1024:65535 --state RELATED -j ACCEPT</code></p>
]]></description>
			<content:encoded><![CDATA[<p>From terminal, execute the following;<br />
<code>sudo modprobe ip_nat_ftp ports=21<br />
sudo modprobe ip_conntrack_ftp</p>
<p>sudo iptables -A FORWARD -m state --state ESTABLISHED -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --dport 21 --state NEW -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --sport 20 --state RELATED -j ACCEPT<br />
sudo iptables -A FORWARD -p tcp -m tcp -m state --dport 1024:65535 --sport 1024:65535 --state RELATED -j ACCEPT</code></p>
]]></content:encoded>
			<wfw:commentRss>http://k3mist.com/linux/howto-allow-outgoing-ftp-connections-in-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
