1、查询网卡名 ifconfig 假设网卡名:eno8 2、通过对方host抓包,-i 指定网卡名 sudo tcpdump -i eno8 host 192.168.1.6 3、通过本地端口抓包 sudo tcpdump -i eno8 port 8080