Created attachment 216753 [details]
Currently this RC script will load ipdivert.ko only on natd_enable="YES"; this patch however added another RC variable to load the kernel module along with ipfw.ko, if enabled.
I uses some ipdivert-based programs that work with ipfw(4), however I don't use natd(8), so I need another way to automatically load ipdivert.ko without adding ipdivert_load=YES in /boot/loader.conf, because I don't want ipfw be enabled so early at boot.
For example to enable ipdivert without natd, add following to /etc/rc.conf:
Of course other ipfw-related variables may be required to complete the whole configuration.