Who’s pinging my Linux server

Who’s pinging my Linux server



tcpdump packet analyzer will help us figure out the IP address where the ICMP requests come from. To monitor incoming ICMP echo requests type:

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

where eth0 is the name of the Ethernet adapter (in your case it can be other eth1, eth2.. ). If you don’t need resolve source hostname, you can add option -n and get source IP address. For example:

tcpdump -n -i ens32 icmp and icmp[icmptype]=icmp-echo

Example output:

IP address where the requests come from



Leave a Reply

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