From owner-freebsd-questions Fri Jan 31 15:56:50 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9679737B401 for ; Fri, 31 Jan 2003 15:56:48 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D2C543F43 for ; Fri, 31 Jan 2003 15:56:47 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a101.otenet.gr [212.205.215.101]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0VNuRVq002385; Sat, 1 Feb 2003 01:56:38 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0VNuM9g002733; Sat, 1 Feb 2003 01:56:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0VNuMnf002732; Sat, 1 Feb 2003 01:56:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 1 Feb 2003 01:56:22 +0200 From: Giorgos Keramidas To: "Stephen D. Kingrea" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tcpdump irregularity Message-ID: <20030131235622.GB589@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-01-31 16:44, "Stephen D. Kingrea" wrote: > using 4.7 on a gateway designated machine (ipfw/natd) serving 3 > wstations. > > www#tcpdump -i dc0 ###in fact, any interface.... > tcpdump: (no devices found) /dev/bpf0: Device not configured Check that you have the following in your kernel config: $ grep -i bpf /usr/src/sys/i386/conf/GENERIC # The `bpf' device enables the Berkeley Packet Filter. device bpf # Berkeley packet filter $ Then make sure you have proper device nodes created in /dev by running (further down in your post you mentioned that you *do* have a /dev/bpf0 node, so this part is already done on your setup). # cd /dev # sh MAKEDEV bpf0 bpf1 [...] > now, i read somewhere that kernel must be compiled with option > PACKETFILTER, however; workstation running 4.7 with generic kernel > runs tcpdump perfectly. There is no PACKETFILTER kernel option afaik. When you want to know what options are available and how to enable them for your kernel you should consult the files GENERIC and LINT in /usr/src/sys/i386/conf. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message