How can I know when my computer is pinged?
I'm using Linux. I would like to know how to tell who is pinging my computer. I have seen this similar question using Windows, but I'm not sure it applies to me.
It looks like you're asking how to see who's pinging you, right? One quick and dirty way would be using
Note that tcpdump will resolve hostnames by default, so you might need to add the
(This is, by the way, basically identical to the instructions given in the question you linked, though they are for Wireshark, a related but separate tool.)
You can use tcpdump like this
and you get this kind of output
You could use iptables too
and get messages like this in /var/log/messages (on CentOS at least)