<?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>Web Hosting India &#187; security</title>
	<atom:link href="http://windowshostingindia.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://windowshostingindia.com</link>
	<description>cPanel Hosting, Linux Hosting, Website Hosting, Dedicated Server, Hosting Tutorial, Hosting Tools, Hosting Resources</description>
	<lastBuildDate>Thu, 07 Jan 2010 09:12:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Check DDOS attack on server</title>
		<link>http://windowshostingindia.com/security/how-to-check-ddos-attack-on-server/</link>
		<comments>http://windowshostingindia.com/security/how-to-check-ddos-attack-on-server/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:15:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://windowshostingindia.com/?p=71</guid>
		<description><![CDATA[An useful and useful command for checking if a server is under ddos?:
netstat -anp &#124;grep ‘tcp\&#124;udp’ &#124; awk ‘{print $5}’ &#124; cut -d: -f1 &#124; sort &#124; uniq -c &#124; sort -n
This command will list the IPs checking the most amounts of connections to a server, it&#8217;s  important to note that the ddos is [...]]]></description>
			<content:encoded><![CDATA[<p>An useful and useful command for checking if a server is under ddos?:</p>
<p>netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>This command will list the IPs checking the most amounts of connections to a server, it&#8217;s  important to note that the ddos is becoming more and more planned and hackers are using most sophisticated method. If this is the case you will still get low number of connections even while you are under a DDOS.</p>
<p>Another vital thing to look at is how many active connections your server is processing at the most.</p>
<p>netstat -n | grep :80 |wc -l</p>
<p>netstat -n | grep :80 | grep SYN |wc -l</p>
<p>The first command will show the number of active connections which are open to your server, most of the attacks typically starting a connection to the server and then not sending any reply making the server wait for longer time. The number of active connections from the first command is going to differ in large amount but if you are much above 500 you are probably having problems. If the second command is over 100 you are having trouble with a syn attack.</p>
<p>To Block a certain IP address that on server, you can use following commands</p>
<p>—————–command——————————</p>
<p>route add ipaddress reject</p>
<p>for example route add 192.168.0.168 reject</p>
<p>You can check whether given IP is blocked on server by using following command</p>
<p>route -n |grep IPaddress</p>
<p>—————–command——————————</p>
<p>OR</p>
<p>use follwoing command to block a ip with iptables on server<br />
—————–command——————————<br />
iptables -A INPUT 1 -s IPADRESS -j DROP/REJECT</p>
<p>service iptables restart</p>
<p>service iptables save</p>
<p>—————–command——————————</p>
<p>Then KILL all httpd connection and restarted httpd service by using following command</p>
<p>killall -KILL httpd</p>
<p>service httpd startssl</p>
<p>Hope this help! </p>
]]></content:encoded>
			<wfw:commentRss>http://windowshostingindia.com/security/how-to-check-ddos-attack-on-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
