24

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

futlib
  • 1,279
  • 2
  • 11
  • 12

3 Answers3

39

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

RedGrittyBrick
  • 81,981
  • 20
  • 135
  • 205
3

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

chuck
  • 524
  • 2
  • 7
1

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

m0skit0
  • 1,337
  • 7
  • 16