Im在一个CentOS Linux版本7.1.1503上。我希望在端口8058上以明文打印所有通信,并为此运行以下命令:
sudo ngrep -pqtW byline port 8058但是,运行上面的命令会给出以下错误:
SIOCGIFADDR: nflog: No such device: No such device
interface: nflog
pcap compile: NFLOG link-layer type filtering not implemented我输入的命令正确是什么意思?
谢谢
发布于 2015-08-28 08:21:33
根据错误消息,听起来ngrep正在选择一个不存在的设备来嗅探。如果添加-d eth0 (或任何您希望看到流量通过的接口),您可能会有更好的运气。
此外,我似乎还记得,在很深、黑暗、遥远的过去使用ngrep时,有一个相当恼人的“理解”,您需要在指定BPF筛选器时指定一个模式,否则ngrep不知道什么是BPF,什么不是BPF。所以,您的命令应该如下所示:
sudo ngrep -d eth0 -pqtW byline '.*' port 8058https://serverfault.com/questions/717431
复制相似问题