Strange problem with kldload and pf
Matt Emmerton
matt at gsicomp.on.ca
Wed Dec 28 08:49:16 PST 2005
> Fresh install of FreeBSD 6.0-RELEASE from CD.
>
> With the GENERIC kernel, I was able to 'kldload pf' to get the pf
firewall.
> However this doesn't work after I rebuilt a new kernel; it fails to load.
>
> All I did was add IPSEC and disable IPv6. The exact config diff from
GENERIC
> is attached below.
>
> However this module file definitely exists, and has a timestamp from when
> the kernel was rebuilt:
>
> # ls -l /boot/kernel/pf.ko
> -r-xr-xr-x 1 root wheel 188030 Dec 28 15:15 /boot/kernel/pf.ko
> # wc -c /boot/kernel/pf.ko
> 188030 /boot/kernel/pf.ko
>
> I guess I can go ahead and rebuild the kernel again, this time with pf
built
> in. However I would like to know why I can't load pf as a module, even
> though it seems to have been successfully built as one.
Sometimes kldload fails mysteriously, and more helpful error messages are
dumped in /var/log/messages. But only sometimes.
--
Matt Emmerton
More information about the freebsd-stable
mailing list