From: harris@zk3.dec.com (Bob Harris)
Subject: Re: tcpdump in promisc mode?
Date: 1996/12/06 [thread overview]
Message-ID: <harris-ya023580000612961254310001@usenet.pa.dec.com> (raw)
In-Reply-To: 1996Dec6.091744@kuhub.cc.ukans.edu
In article <1996Dec6.091744@kuhub.cc.ukans.edu>, paul@kuhub.cc.ukans.edu
(Craig Paul) wrote:
>How does one get tcpdump into promisuous mode and also sniffing icmp
>and other IP packets not destined for it but on the same wire?
>
>If involves more than
>
>MAKEDEV pfilt
>pfconfig ln0 promisc
>ifconfig -i ln0 promisc (or something like that)
>tcpdump ....
First you need to have the PACKETFILTER configured into your kernel
/usr/sys/conf/<HOSTNAME>
...
options PACKETFILTER
...
doconfig -c <HOSTNAME>
copy new kernel to /vmunix (or some other name if you prefer)
reboot the system specifying the kernel with the PACKETFILTER code
With a kernel booted that has the PACKETFILTER, I use the following to
start up tcpdumps
pfconfig +p +c tu0
tcpdump -w /tmp/tcpdump.raw host xxx and yyy
Personally, I tend to limit my filtering to just host selection and capture
everything into a raw file. I then do my analysis later. And to date I
have only been concerned with NFS and related protocols.
--
Bob Harris
"I don't get to tell me what to do, I only get to tell me how to do it."
Comments expressed here are my own and _NOT_ those of my employer.
next prev parent reply other threads:[~1996-12-06 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-06 5:00 tcpdump in promisc mode? Craig Paul
1996-12-06 5:00 ` Bob Harris [this message]
1996-12-10 5:00 ` Eric Werme
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox