Bug 29947

Summary: After running CVSup, natd fails to run "ipfw: get sockopt (ip_fw_add): invalid command
Product: Base System Reporter: George Kerr <dgkerr>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description George Kerr 2001-08-22 06:30:01 UTC
After I got updates using CVSup, - default release=cvs tag=RELENG_4 - and src-all, plus a few other common lines, the natd portion of the firewall fails to run.  The line in rc.ipfw " ${fwcmd} add divert natd all from any to any via ${natd_interface} " gives the following error 
ip_fw_ctl: Invalid command
ipfw: get sockopt(ip_fw_add): Invalid argument.  I am sure this worked before getting the update on Saturday Aug 18, 2001
Hope this is a good enough explanation.

George Kerr

How-To-Repeat: Kernel with IPFIREWALL, IPDIVERT, rc.conf- firewall_type="simple", gaetway_enable="YES", natd_enable="YES", firewall_script="/etc/rc.ipfw",
in rc.ipfw, this line: ${fwcmd} add divert natd all from any to any via ${natd_interface}
Comment 1 Crist J. Clark 2001-08-22 06:49:56 UTC
On Tue, Aug 21, 2001 at 10:22:15PM -0700, George Kerr wrote:
> 
> >Number:         29947
> >Category:       bin
> >Synopsis:       After running CVSup, natd fails to run "ipfw: get sockopt (ip_fw_add): invalid command

Are your world and kernel in sync? That is, did you rebuild and
install world and kernel?

This is more of a question for the mail lists and should be submitted
as a PR after it has been verified to most likely be a bug and not
pilot error.
-- 
Crist J. Clark                           cjclark@alum.mit.edu
Comment 2 ru freebsd_committer freebsd_triage 2001-09-25 15:21:35 UTC
State Changed
From-To: open->closed

Feedback timeout. 
Most likely, the running kernel did not have the IPDIVERT option.