Date: Fri, 25 Jan 2008 07:43:54 -0800 From: Gavin Spomer <spomerg@cwu.EDU> To: freebsd-pf@freebsd.org Subject: Re: How does /dev/pf get created? Message-ID: <4799933A0200009000012FFC@hermes.cwu.edu>
next in thread | raw e-mail | index | archive | help
First of all, thanks! :) >>> Tommy Pham <tommyhp2@YAHOO.com> 01/24/08 5:17 PM >>> Check your /etc/make.conf. I remember that you can disable it if NO_PF=3DYES is not commented out.=20 I only have 3 lines in my /etc/make.conf: a comment and 2 lines about = what perl to use. Is NO_PF=3DYES the default if not specified? In that case adding NO_PF=3DNO and then building may work. Also, I remember reading it somewhere that pf requires 'device bpf' in the kernel (which you might want to check for that too).=20 I read that somewhere too and it is indeed left uncommented. I presume you used a copy of GENERIC kernel file and comment out what you don't need...?=20 That is correct. I did: cp GENERIC MACHINEHOSTNAME and edited MACHINEHOS= TNAME w/ vim. If so, did you specify the kernel file name in the /etc/make.conf or in the command line KERNCONF=3D<filename>? I did it via the command line: make buildkernel KERNCONF=3DMACHINEHOSTNAME make installkernel KERNCONT=3DMACHINEHOSTNAME Shouldn't having "device pf" in MACHINEHOSTNAME file and building = provide /dev/pf? I have such a vanilla installation of FreeBSD, it's hard for me to see = where I went wrong. I seem to have all the components of pf except /dev/pf. I have /sbin/pfctl, /etc/pf.conf, = /boot/kernel/pf.ko, /boot/kernel/pflog.ko and the appropriate stuff I mentioned in /etc/rc.conf and probably others as = well. I just don't have /dev/pf. How does this get created? Regards, Tommy --- Gavin Spomer <spomerg@cwu.EDU> wrote: > I have followed the instructions in the FreeBSD Handbook for > implementing pf, but when I run pfctl -e, I get: >=20 > pfctl: /dev/pf: No such file or directory".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4799933A0200009000012FFC>