Dec 09 2008

从netstat中统计ip连接数

Category: 技术ssmax @ 14:21:23

看看是不是有人攻击了,不过一般都看不出什么东东来的了

 

netstat -n | awk ‘{print $5}’ | awk -F: ‘{print $1}’ | sort |uniq -c|sort -n

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.