Friday, March 22, 2013

Command to check no of connections coming to linux server from an IP.


It is usefull to check any ddos attack on the server.

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

No comments:

Post a Comment