Date: Thu, 5 Sep 1996 11:10:20 -0500 From: Hal Snyder <hal@post.vale.com> To: "'Christoph Kukulies'" <kuku@gilberto.physik.rwth-aachen.de> Cc: "'questions@freebsd.org'" <questions@freebsd.org> Subject: RE: catching a ping Message-ID: <01BB9B1A.D42D3C90@jaguar>
next in thread | raw e-mail | index | archive | help
Christoph Kukulies wrote:
> Is there a way to test if some host is pinging me in intervals?
> I tried systat -netstat and did a ping -c 1 <host> and the
> connection didn't show up (would port 7 be used in that case)
Enable bpf in your kernel and use tcpdump, something like
tcpdump icmp[0] = 8 or icmp[0] = 0
For syslogging, you could enable IPFIREWALL and use the likes of
ipfw add accept log icmp from any to ${my_ip} icmptypes 0,8
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BB9B1A.D42D3C90>
