| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 
 | <verbose> 指控制抓取数据包的内容1: print header of packets, //只抓取IP的原地址、源端口、目的地址、目的端口和数据包
 的Sequence numbers 为系统缺省设置
 2: print header and data from ip of packets, //抓取IP数据包的详细信息,包括IP数据的
 payload。
 3: print header and data from ethernet of packets) ,//抓取IP数据包的详细信息,包
 括IP数据的payload,导出到文本文件可以使有专用的转换工具,转换为Ethereal支持文件
 格式
 例:
 【例1】 抓所有接口(interface=any)的任何数据包(filter=none),级别1
 (verbose=1)
 FG-UTM # dia sni pa any none 1
 interfaces=[any]
 filters=[none]
 nr=2048,fr=1584,b_nr=1024,pg=4096
 3.710103 127.0.0.1.1029 -> 127.0.0.1.53: udp 40
 
 【例2】 抓所有接口(interface=any)的任何数据包(filter=none),级别2
 (verbose=2),会显示数据包的payload信息。
 # diag sniffer packet internal none 2 1
 192.168.0.1.22 -> 192.168.0.30.1144: psh 2867817048 ack 1951061933
 0x0000 4510 005c 8eb1 4000 4006 2a6b c0a8 0001 E..\..@.@.*k....
 0x0010 c0a8 001e 0016 0478 aaef 6a58 744a d7ad .......x..jXtJ..
 0x0020 5018 0b5c 8ab9 0000 9819 880b f465 62a8 P..\.........eb.
 0x0030 3eaf 3804 3fee 2555 8deb 24da dd0d c684 >.8.?.%U..$.....
 0x0040 08a9 7907 202d 5898 a85c facb 8c0a f9e5 ..y..-X..\......
 0x0050 bd9c b649 5318 7fc5 c415 5a59 ...IS.....ZY
 
 【例3】 抓所有接口(interface=any)的任何数据包(filter=none),级别3
 (verbose=3),会显示数据包的payload信息。
 FG-UTM # dia sni pa any none 3
 interfaces=[any]
 filters=[none]
 nr=2048,fr=1584,b_nr=1024,pg=4096
 3.770099 127.0.0.1.1029 -> 127.0.0.1.53: udp 40
 0x0000 0004 0304 0000 0000 9200 0000 2a00 0800
 
 
 |