tcpdump常用命令

1. 只抓syn包

 tcpdump -i eth1 'tcp[tcpflags] = tcp-syn'

 2. 只抓ack包

tcpdump -nni xgbe1 dst host 191.168.100.199  and tcp  and 'tcp[tcpflags] & (tcp-ack) != 0' and 'tcp[tcpflags] & (tcp-fin|tcp-syn|tcp-push|tcp-rst) == 0'

 

posted on 2014-10-20 10:31  春之晓者  阅读(317)  评论(0编辑  收藏  举报

导航