Traffic Stats
Linux
Networking
iftop
apt-get update
apt-get install iftop
iftop -i eth1 -P
tcpdump
BytesMBtcpdump -i eth1 -nn -q -c 5000 | \
awk '
{
# 去掉目标端口末尾冒号
gsub(":", "", $5)
# 拆分源和目标
split($3, a, "."); split($5, b, ".")
src_ip = a[1]"."a[2]"."a[3]"."a[4]
...