The handbook and most every tutorial I've seen says you must build a custom kernel to enable ipdivert, which is how natd is used with ipfw.
Is this still the case? There seems to be a libalias module, a dummynet module, an ipfw module, and an ipdivert module.
Must I really compile a custom kernel for ipfw with nat and dummynet, or can I use the GENERIC from FreeBSD 8.1 and load these modules?
I'm going to try it with the modules and see what happens.
In my testing setup, /etc/rc.conf has the following:
On startup, I see this message:
Loading modules gives me no errors:
Thanks
Is this still the case? There seems to be a libalias module, a dummynet module, an ipfw module, and an ipdivert module.
Must I really compile a custom kernel for ipfw with nat and dummynet, or can I use the GENERIC from FreeBSD 8.1 and load these modules?
I'm going to try it with the modules and see what happens.
In my testing setup, /etc/rc.conf has the following:
Code:
firewall_enable="YES"
firewall_type="open"
On startup, I see this message:
Code:
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled
Loading modules gives me no errors:
Code:
sudo kldload ipdivert
[jdratlif@xaiver-freebsd ~]$ sudo kldload dummynet
[jdratlif@xaiver-freebsd ~]$ sudo kldstat
Id Refs Address Size Name
1 15 0xc0400000 66e5f4 kernel
2 3 0xc40f7000 11000 ipfw.ko
3 1 0xc4108000 d000 libalias.ko
4 1 0xc4240000 4000 ipdivert.ko
5 1 0xc4244000 e000 dummynet.ko
Thanks