Hi gang,
Because I'm quite familiar with SunOS and ipfilter I figured that's a good way to start. I checked the FreeBSD handbook and followed the firewall IPF section.
I enabled ipf in /etc/rc.conf as follows:
Yet whenever I tried to check the status by using
I traced this back to the kernel module not getting automatically loaded, here is the current status:
...which I get to see when using
Even though I already solved this problem (in a test scenario using
I think that I can rule out config issues because even if I only enable the option
in /etc/rd.conf and then manually restart the ipfilter service using
Is this something I'm overlooking or does the handbook make false assumptions?
Because I'm quite familiar with SunOS and ipfilter I figured that's a good way to start. I checked the FreeBSD handbook and followed the firewall IPF section.
I enabled ipf in /etc/rc.conf as follows:
Code:
# IPF firewall
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf/ipf.conf"
ipmon_enable="YES"
ipmon_flags="-Ds" # D; daemon, s; syslog, v; log tcp/ack/seq, n; names
Yet whenever I tried to check the status by using
# ipf -V
it would show an error saying:
Code:
open device: No such file or directory
I traced this back to the kernel module not getting automatically loaded, here is the current status:
Code:
peter@smtp2:/etc % kldstat
Id Refs Address Size Name
1 20 0xffffffff80200000 1323388 kernel
2 1 0xffffffff81524000 2084f8 zfs.ko
3 2 0xffffffff8172d000 5c68 opensolaris.ko
4 5 0xffffffff81734000 4e38 virtio.ko
5 1 0xffffffff81739000 5868 virtio_pci.ko
6 1 0xffffffff8173f000 52d8 virtio_blk.ko
7 1 0xffffffff81745000 ad80 if_vtnet.ko
8 1 0xffffffff81750000 31f8 virtio_balloon.ko
...which I get to see when using
# kldstat
.Even though I already solved this problem (in a test scenario using
# kldload ipl
, or by adding ipl_load="YES" to /boot/loader.conf) I want to know and understand what's going on here.I think that I can rule out config issues because even if I only enable the option
Code:
ipfilter_enable="YES"
# /etc/rc.d/ipfilter restart
it doesn't complain about options in rc.conf nor does it fully enable ipfilter (by loading ipl.ko).Is this something I'm overlooking or does the handbook make false assumptions?