Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 1996 09:03:30 +0200 (IST)
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Hal Snyder <hal@post.vale.com>
Cc:        "'Christoph Kukulies'" <kuku@gilberto.physik.rwth-aachen.de>, "'questions@freebsd.org'" <questions@FreeBSD.ORG>
Subject:   RE: catching a ping 
Message-ID:  <Pine.BSF.3.91.960906090218.27970A-100000@gatekeeper.barcode.co.il>
In-Reply-To: <01BB9B1A.D42D3C90@jaguar>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 5 Sep 1996, Hal Snyder wrote:

> 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
> 
Better than ipfw, you can use IPfilter (I think it's in the ports, and if 
not, you can use the standard version, it has instructions for compiling 
on FreeBSD, at least for 2.1.0). Unlike ipfw it knows about ICMP types so 
you can log/block just ICMP echos.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960906090218.27970A-100000>