wireshark的安装
安装:
sudo apt install
如果在安装过程中不选择允许非root用户抓包,直接运行会显示:
couldn't run /usr/bin/dumpcap in child process: Permission Denied.
这时需要
sudo dpkg-reconfigure wireshark-common
在/etc/gshadow中,一个名为wireshark的用户组会被创建. 将当前用户加入这个组即可
sudo gpasswd -a $USER wireshark
过滤条件
过滤tcp连接超时
tcp.flags.reset==1 # If you mean an application timeout where it shuts down the socket you'll see a reset packet.