tcpdump
tcpdump [options] [not] protrol dir type
=====
-i: 网络接口
-c: 打印输出的行数
-e:输出的每行中都将包括数据链路层头部信息,例如源MAC和目标MAC
-nn: hostname转换为ip地址
-vvv:产生比-vv更详细的输出
=====
protrol: tcp udp icmp arp ip
=====
dir: src ,dst ,src and dst, src or dst(默认)
=====
type: host, net, port, portrange
例如: 网卡为ens33,tcp协议
固定IP
tcpdump -nn -c 10 -i ens33 tcp and src 192.168.250.1 and dst port 22
具体网段
tcpdump -nn -c 10 -i ens33 tcp and src net 192.168.250 and dst port 22
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。