Date: Wed, 14 May 2008 17:30:21 +0800 From: "CyberSans AirBort" <cybersans@gmail.com> To: "Doug Hardie" <bc979@lafn.org>, freebsd-questions@freebsd.org Subject: Re: problem on pf @ freebsd 7.0 Message-ID: <15af975d0805140230i6a162aw492fdf9995d7b990@mail.gmail.com> In-Reply-To: <B9D04477-A5C2-4292-B84A-80BF030641D1@lafn.org> References: <15af975d0805131824i142a4847u852a6ad09f61e526@mail.gmail.com> <DE768131-4D48-405A-BE3E-81FB643FBC5A@lafn.org> <15af975d0805140140m588027f7xa77cabb997e2b5bc@mail.gmail.com> <B9D04477-A5C2-4292-B84A-80BF030641D1@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
oh yes. i did type exactly like that. and still pf didn't load on startup even though it has /etc/rc.d/pf and like i said before, i have to re-load the pf by using /etc/rc.d/pf restart btw, what kind of freebsd's distro that you used without having problem on this pf? 7.0? On Wed, May 14, 2008 at 4:59 PM, Doug Hardie <bc979@lafn.org> wrote: > > On May 14, 2008, at 01:40, CyberSans AirBort wrote: > > kldstat only shows: > > Id Refs Address Size Name > > 1 7 0xc0400000 910b90 kernel > > 2 1 0xc0d11000 6a32c acpi.ko > > 3 1 0xc6c4f000 22000 linux.ko > > > > yes, i already put: > > pf_load="YES" > > pflog_load="YES" > > pfsync_load="YES" > > inside /boot/loader.conf > > > > and my previous message, i already compile the kernel with pf and put > > appropriate line inside /etc/rc.conf > > > > and the pf still do not loading when freebsd 7.0 boot up. > > > > thank you > > > > On Wed, May 14, 2008 at 2:28 PM, Doug Hardie <bc979@lafn.org> wrote: > > > > On May 13, 2008, at 18:24, CyberSans AirBort wrote: > > > > hello there. sorry if this similar question been asked before in this > > forum. > > > > my problem is, i install freebsd 7.0 and after that compile the kernel > > to > > enable pf (using the same method like freebsd's handbook said): > > > > device pf > > device pflog > > device pfsync > > > > options ALTQ > > options ALTQ_CBQ > > options ALTQ_RED > > options ALTQ_RIO > > options ALTQ_HFSC > > options ALTQ_CDNR > > options ALTQ_PRIQ > > options ALTQ_NOPCC > > > > and i put everything inside /etc/rc.conf > > > > pf_enable="YES" > > pf_rules="/etc/pf.conf" > > pf_flags="" > > pflog_enable="YES" > > pflog_logfile="/var/log/pflog" > > pflog_flags="" > > > > and guess what? pf is not loading when startup. i have to manually > > restarted > > the pf using /etc/rc.d/pf restart > > > > is that a bug? i never have this kind of problem when using version 5.* > > or > > 6.* > > > > Did you load the kernel extensions: pflog and pf? Use kldstat and make > > sure both of them appear. I had to add pflog_load="YES" to > > /boot/loader.conf to get it to work properly. > > > > pf should be loaded by /etc/rc.d/pf. pflog has to be loaded by you. > Easiest is in /boot/loader.conf as described above. Check the typing very > carefully for the pf commands. Mine are: > > pf_enable="YES" # Enable PF (load module if required) > pf_rules="/etc/pf.conf" # rules definition file for pf > pf_flags="" # additional flags for pfctl startup > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15af975d0805140230i6a162aw492fdf9995d7b990>