Home > Apache / PHP, Newbie, cPanel and WHM > netstat to track connections in server | help identify ddos attacks

netstat to track connections in server | help identify ddos attacks

February 27th, 2010 admin Leave a comment Go to comments

Use either of these commands to track ddos in your server. This will give you an idea of number of connections and the network activity in server. Any unethically high number of connections can conclude that you are a victim.

netstat -tan | grep ‘:80 ‘ | awk ‘{print $6}’ | sort | uniq -c

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

Similar Posts:

    None Found

Share and Enjoy:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Facebook
  • MySpace
  • StumbleUpon
  • MSN Reporter
  • Live
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Technorati
  • Add to favorites
  • email
  • Print
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.