<?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>RedHatVN Network &#187; list ban ip</title>
	<atom:link href="http://redhatvn.net/tag/list-ban-ip/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:08:35 +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>How-to: List/Ban IP</title>
		<link>http://redhatvn.net/how-to-listban-ip</link>
		<comments>http://redhatvn.net/how-to-listban-ip#comments</comments>
		<pubDate>Mon, 03 Aug 2009 03:54:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[list ban ip]]></category>

		<guid isPermaLink="false">http://redhatvn.net/blog/?p=57</guid>
		<description><![CDATA[CODE Banning an IP iptables -A INPUT -p all -s IPHERE/32 -j DROP CODE Unbanning and IP iptables -D INPUT -p all -s IPHERE/32 -j DROP CODE Listing the last five ip&#8217;s with the most connections netstat -atnp -A inet &#124; grep &#8220;:80&#8243; &#124; awk -F &#8221; &#8221; &#8216;{print $5} &#8216; &#124; awk -F &#8220;:&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div>CODE</div>
<div><!--ec1-->Banning an IP<br />
iptables -A INPUT -p all -s IPHERE/32 -j DROP</div>
<p><!--ec2--><!--c1--></p>
<div>CODE</div>
<div><!--ec1-->Unbanning and IP<br />
iptables -D INPUT -p all -s IPHERE/32 -j DROP<!--c2--></div>
<p><!--ec2--></p>
<p><!--c1--></p>
<div>CODE</div>
<div><!--ec1-->Listing the last five ip&#8217;s with the most connections<br />
netstat -atnp -A inet | grep &#8220;:80&#8243; | awk -F &#8221; &#8221; &#8216;{print $5} &#8216; | awk -F &#8220;:&#8221; &#8216;{print $1}&#8217; | sort | uniq -c | sort -nr | head -5<!--c2--></div>
<p><!--ec2--></p>
<p><!--c1--></p>
<div>CODE</div>
<div><!--ec1-->Listing total connections<br />
netstat -nap | grep ESTABLISHED | wc -l<br />
netstat -nap | grep SYN | wc -l<br />
netstat -nap | grep TIME_WAIT | wc -l<!--c2--></div>
<p><!--ec2--></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-listban-ip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->