25

Can I somehow monitor incoming pings on a Linux machine? netcat doesn't seem to support that.

futlib
  • 1,289

3 Answers3

41

You can use tcpdump ip proto \\icmp to monitor incoming pings (ICMP echo requests)

3

You could setup a rule in iptables that logs icmp packets.

chuck
  • 534
1

If you want something nicer than tcpdump (GUI and stuff), you can try with Wireshark.

m0skit0
  • 1,337