<?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>Tuts4Tech &#187; iptables</title>
	<atom:link href="http://tuts4tech.net/tag/iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IPTables and Bashrc Aliases</title>
		<link>http://tuts4tech.net/2009/08/30/iptables-and-bashrc-aliases/</link>
		<comments>http://tuts4tech.net/2009/08/30/iptables-and-bashrc-aliases/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 10:59:07 +0000</pubDate>
		<dc:creator>RCP</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[netfilter]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=571</guid>
		<description><![CDATA[We all know IPTables can be difficult. By adding the following lines to your ~/.bashrc you can simplify the tasks of blocking packets from a certian ip. First your going to need to install IPTables: Gentoo: emerge iptables   (Must be  Root to use/install iptables) Ubuntu/Debian: sudo apt-get install iptables Then edit your .bashrc file and [...]]]></description>
			<content:encoded><![CDATA[<p>We all know IPTables can be difficult. By adding the following lines to your ~/.bashrc you can simplify the tasks of blocking packets from a certian ip.</p>
<p>First your going to need to install IPTables:<br />
Gentoo: emerge iptables   (Must be  Root to use/install iptables)<br />
Ubuntu/Debian: sudo apt-get install iptables</p>
<p>Then edit your .bashrc file and add the following</p>
<pre class="brush: bash;">alias blockedips=&quot;iptables -L&quot;
alias blockip=&quot;iptables -I INPUT -j DROP -s &quot;
alias unblockip=&quot;iptables -D INPUT -j DROP -s &quot;</pre>
<p>Reload your .bashrc by running source .bashrc and you should then be able to run the commands below</p>
<pre class="brush: bash;">blockedips - Will Show all Blocked hosts
blockip IP-HERE - Will Block that ip
unblockip IP-HERE - Unblocks that ip</pre>
<p><img class="alignnone size-full wp-image-572" src="http://tuts4tech.net/wp-content/uploads/2009/08/screenshot-rootredfire.png" alt="screenshot-rootredfire" width="403" height="461" /></p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/30/iptables-and-bashrc-aliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stopping SSH brute force attacks using iptables</title>
		<link>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/</link>
		<comments>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 11:08:52 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[asia]]></category>
		<category><![CDATA[brute]]></category>
		<category><![CDATA[force]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[wordlist]]></category>

		<guid isPermaLink="false">http://duffys-place.co.cc/?p=130</guid>
		<description><![CDATA[If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. [...]]]></description>
			<content:encoded><![CDATA[<p>If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks</p>
<p>Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. At this stage the bot running the attack will either give up as its getting no reply from the SSH server or it will keep trying until it finishes its wordlist</p>
<pre class="brush: plain;">iptables -I INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

iptables -I INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 180 --hitcount 4 --name DEFAULT --rsource -j DROP</pre>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
