Who’s pinging my Linux server

Who’s pinging my Linux server

tcpdump will monitor all incoming ICMP echo requests to your server:

tcpdump -i ethX icmp and icmp[icmptype]=icmp-echo

where ethX is the name of the adapter you’re interested in listening to. That tcpdump will resolve hostnames by default, so you might need to add the -n option to get IPs instead.

arstech

Leave a Reply

Your email address will not be published. Required fields are marked *