Linux: How to monitor incoming pings

14

2

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

futlib

Posted 2011-10-19T13:32:03.910

Reputation: 1 129

Answers

22

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

RedGrittyBrick

Posted 2011-10-19T13:32:03.910

Reputation: 70 632

2

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

chuck

Posted 2011-10-19T13:32:03.910

Reputation: 504

1

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

m0skit0

Posted 2011-10-19T13:32:03.910

Reputation: 1 317