Categories

Monday, 28 May 2012

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

Ad