From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d2babff1ca57fca3 X-Google-Attributes: gidfee84,public From: harris@zk3.dec.com (Bob Harris) Subject: Re: tcpdump in promisc mode? Date: 1996/12/06 Message-ID: #1/1 X-Deja-AN: 202713415 references: <1996Dec6.091744@kuhub.cc.ukans.edu> content-type: text/plain; charset=ISO-8859-1 organization: Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 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/ ... options PACKETFILTER ... doconfig -c 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.