Linux:如何监视传入的ping


14

我可以以某种方式监视Linux计算机上的传入ping吗?netcat似乎不支持。

Answers:


21

您可以tcpdump ip proto \\icmp用来监视传入的ping(ICMP回显请求)


2

您可以在iptables中设置记录icmp数据包的规则。


1

如果您想要比tcpdump(GUI和其他东西)更好的东西,可以尝试使用Wireshark。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.