我在CentOS Linux版本7.1.1503。 我想在8058端口以明文forms打印所有的通讯,为此我运行了下面的命令:
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
以上是什么意思,是我input正确的命令?
谢谢
根据错误信息,听起来像ngrep正在select一个不存在的设备来嗅探。 如果添加-d eth0 (或者您希望看到stream量通过的接口),您可能会有更好的运气。
另外,我似乎回想起在深沉,黑暗,遥远的过去使用ngrep时,你需要指定一个模式,当你也指定一个BPFfilter,否则ngrep不知道什么是BPF和什么是一个相当恼人的“陷阱”不是。 所以,一切起来,你的命令应该是这样的:
sudo ngrep -d eth0 -pqtW byline '.*' port 8058