干掉公鸡 : netstat -at ip最多的 iptables 封掉
统计 socket 连接 的 shell (感谢 iceblood 提供):
netstat -nt | grep "`ifconfig eth0 | grep 'inet addr:' | awk '{print $2}' | awk -F: '{print $2}'`:80 " | awk '{print $5}' | awk -F: '{print $4}' | sort | uniq -c | sort -n
干掉公鸡 : netstat -at ip最多的 iptables 封掉
统计 socket 连接 的 shell (感谢 iceblood 提供):
netstat -nt | grep "`ifconfig eth0 | grep 'inet addr:' | awk '{print $2}' | awk -F: '{print $2}'`:80 " | awk '{print $5}' | awk -F: '{print $4}' | sort | uniq -c | sort -n