From owner-freebsd-pf@FreeBSD.ORG Fri Jan 25 21:47:22 2008 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D55416A41A for ; Fri, 25 Jan 2008 21:47:22 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (unknown [IPv6:2001:5c0:8fff:fffe::214d]) by mx1.freebsd.org (Postfix) with ESMTP id 2D17513C46E for ; Fri, 25 Jan 2008 21:47:22 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by noop.in-addr.com with local (Exim 4.54 (FreeBSD)) id 1JIWOP-000MIz-0p; Fri, 25 Jan 2008 16:47:21 -0500 Date: Fri, 25 Jan 2008 16:47:20 -0500 From: Gary Palmer To: Gavin Spomer Message-ID: <20080125214720.GC86111@in-addr.com> References: <4799CBBC020000900001305B@hermes.cwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4799CBBC020000900001305B@hermes.cwu.edu> Cc: freebsd-pf@freebsd.org Subject: Re: How does /dev/pf get created? X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 21:47:22 -0000 On Fri, Jan 25, 2008 at 11:45:00AM -0800, Gavin Spomer wrote: > My mistake, I DO have pf.ko: > > # ls /boot/kernel/pf.ko > -r-xr-xr-x 1 root wheel 184K Jan 25 09:33 kernel/pf.ko > > I was trying "ls /boot/kernel/pf" before. Now I'm wondering why I'm still getting "kldload: can't load pf.ko: No such file or > directory" when I run kldload. > > Sigh, shouldn't be this difficult. ;) ENOENT ("No such file or directory") can also mean that a symbol that the module requires cannot be found in the kernel. This can be many things, including a missing prerequisite module or that the module was built with a different set of options to the currently running kernel. Check dmesg to see if there is a related error message from the kernel. Gary > - Gavin > > >>> Gavin Spomer 01/25/08 11:08 AM >>> > >>> Jeremy Chadwick 01/25/08 10:05 AM >>> > On Fri, Jan 25, 2008 at 09:54:19AM -0800, Gavin Spomer wrote: > > I followed your instructions to a "T" and then after I rebooted, I double checked everything to make sure I didn't do > > anything stupid. Still no /dev/pf. Running kldstat still shows that pf.ko didn't get loaded. Trying to load it via your > > instructions (kldload -v pf) I get: > > > > kldload: can't load pf: No such file or directory > This would indicate that /boot/kernel/pf.ko is missing. It doesn't > appear it was built during your last buildkernel/installkernel. > > > Yes, you're quite correct. Oddly enough, I remember that when I had the pf stuff in my kernel config, pk.ko DID exist in > /boot/kernel. THAT doesn't make much sense. > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > >