抓包过滤器
类型:host net port
方向:src dst
协议:ether ip tcp udp http ftp
逻辑运算符:&& || !
举例:
src host 192.168.1.1 && dst port 80
host 192.168.1.1 || host 192.168.1.2
!broadcast
过滤MAC地址案例:
ether host 74:2f:68:4a:58:05
ether src host 74:2f:68:4a:58:05
ether dst host 74:2f:68:4a:58:05
过滤IP地址案例:
host 192.168.1.1
src host 192.168.1.1
dst host 192.168.1.1
过滤端口案例:
port 80
! port 80
dst port 80
src port 80
过滤协议案例:
arp
icmp
综合过滤案例:
host 192.168.1.100 && port 8080
显示过滤器
比较运算符:== != > >= < <=
逻辑运算符:and or xor(有且仅有一个条件满足) not
IP地址:ip.addr ip.src ip.dst
端口过滤:tcp.port tcp.srcport tcp.flag.syn tcp.flag.ack
协议:arp ip icmp tcp udp bootp dns
过滤IP地址案例:
ip.addr == 192.168.1.1
ip.src == 192.168.1.1
ip.dst == 192.168.1.1
ip.src == 192.168.1.100 and ip.dst == 192.168.1.1
过滤端口案例:
tcp.port == 80
tcp.srcport == 80
tcp.dstport == 80
tcp.flag.syn == 1
过滤协议案例:
arp
tcp
udp
not http
not arp
综合过滤案例:
ip.src == 192.168.1.100 and tcp.dstport == 80
ip.addr == 192.168.1.1 and udp.port == 4000