IndianWebPortal.com

Something Different In Linux

Home » How to » How to check DDOS attach

How to check DDOS attach

Posted by Rishikesh Vispute Categories: How to

How to check DDOS attach

netstat -n | grep :80 |wc -l                  // show the number of active connections that are open    to your server

netstat -n | grep :80 | grep SYN |wc -l  //connection of any IP more that 100 then block that IP

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c| sort -n

netstat -anp |grep 'FIN_WAIT2' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c| sort -n

To disable DOS attack add the following rule to the iptables :=>

# iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j IN_SANITY


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...