Ubuntu Dumpcap支持BPF(Berkeley Packet Filter)语法过滤器,可基于协议、端口、IP地址、MAC地址等条件过滤数据包。具体如下:
tcp、udp、icmp、ip、ether等。port 80、tcp port 80、udp port 53等。host 192.168.1.1、src host 192.168.1.1、dst host 192.168.1.1等。and、or、not组合多个条件,如tcp and port 80、not host 192.168.1.1等。