Date: Fri, 25 Jan 2008 07:56:13 -0800 (PST) From: Tommy Pham <tommyhp2@yahoo.com> To: freebsd-pf@freebsd.org Subject: Re: How does /dev/pf get created? Message-ID: <499023.26589.qm@web38213.mail.mud.yahoo.com> In-Reply-To: <4799933A0200009000012FFC@hermes.cwu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gavin, Have you rebuilt world or is it a clean install? Update the src to RELENG_6_2 patch 9 via cvs? If I remember correctly, a clean install of 6.2-RELEASE from the cD should have the require pf device. You can start using it by enabling in the rc.conf. (ALTQ will not be available until you specify device+options and rebuild the kernel.) This will get you going using the rules w/o queueing. ~Tommy --- Gavin Spomer <spomerg@cwu.EDU> wrote: > 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=YES is not commented out. > > I only have 3 lines in my /etc/make.conf: a comment and 2 lines > about what perl to use. Is NO_PF=YES the default if not > specified? In that case adding NO_PF=NO 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). > > 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...? > > That is correct. I did: cp GENERIC MACHINEHOSTNAME and edited > MACHINEHOSTNAME w/ vim. > > If so, did you specify the > kernel file name in the /etc/make.conf or in the command line > KERNCONF=<filename>? > > I did it via the command line: > make buildkernel KERNCONF=MACHINEHOSTNAME > make installkernel KERNCONT=MACHINEHOSTNAME > > 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: > > > > pfctl: /dev/pf: No such file or directory". > _______________________________________________ > 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?499023.26589.qm>