/etc/rc.d/ipfw fails to load the ipdivert module when natd is enabled.
This causes the divert rules that /etc/rc.firewall adds in this case to fail on system boot, with the following error message displayed during ipfw rule load:
ipfw: getsockopt(IP_FW_ADD): Invalid argument
Restarting ipfw works around the problem as /etc/rc.d/natd (which is run _after_ ipfw is intialised) DOES load ipdivert.
Fix: Apply the attached patch.
This is verified to fix the problem in 8.2-BETA1, also 8.1-RELEASE. The patched file is identical in HEAD (against which the patch has been created) and 8.2-BETA1.
Patch attached with submission follows:
How-To-Repeat: In /etc/rc.conf
Over to maintainer(s).
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped
I am going to close this issue as it is nearly 10 years old. If this bug still exists on supported FreeBSD please feel free to reopen.