Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  45] [ 0]  / answers: 1 / hits: 63724  / 1 Year ago, fri, december 23, 2022, 2:34:30

Is there a way to know who is pinging my PC on my network? Is it possible to monitor all ICMP packets? How can I do that?


More From » networking

 Answers
0

Yes, that is possible using tcpdump, which is a most powerful and widely used command-line packet sniffer (package analyzer) tool available on Linux.


In the terminal application of the computer you want to monitor :


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

Options:


-n avoid a (potentially slow) reverse DNS query
−i interface
icmp[icmptype]=icmp-echo To print all ICMP packets that are echo requests/replies

The it will start listening on ethX and waiting for arrived packets.


Example : I have 2 pc win7 10.1.1.8 , Ubuntu 10.1.1.57 which will monitor packets arrived :


enter image description here


On ubuntu :


enter image description here


Reference : nixCraft


[#26664] Saturday, December 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
needstar

Total Points: 268
Total Questions: 108
Total Answers: 117

Location: Seychelles
Member since Mon, Jun 28, 2021
3 Years ago
;