From nobody@FreeBSD.org  Tue Aug 21 22:22:16 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C17C437B40B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Aug 2001 22:22:15 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f7M5MFD81635;
	Tue, 21 Aug 2001 22:22:15 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108220522.f7M5MFD81635@freefall.freebsd.org>
Date: Tue, 21 Aug 2001 22:22:15 -0700 (PDT)
From: George Kerr <dgkerr@juno.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: After running CVSup, natd fails to run "ipfw: get sockopt (ip_fw_add): invalid command
X-Send-Pr-Version: www-1.0

>Number:         29947
>Category:       bin
>Synopsis:       After running CVSup, natd fails to run "ipfw: get sockopt (ip_fw_add): invalid command
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 21 22:30:01 PDT 2001
>Closed-Date:    Tue Sep 25 07:21:35 PDT 2001
>Last-Modified:  Tue Sep 25 07:22:26 PDT 2001
>Originator:     George Kerr
>Release:        4.3
>Organization:
>Environment:
4.4-RC FreeBSD 4.4-RC #0 Mon Aug 20 21:53:31 MDT 2001
>Description:
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}
>Fix:

>Release-Note:
>Audit-Trail:

From: "Crist J. Clark" <cristjc@earthlink.net>
To: George Kerr <dgkerr@juno.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/29947: After running CVSup, natd fails to run "ipfw: get sockopt (ip_fw_add): invalid command
Date: Tue, 21 Aug 2001 22:49:56 -0700

 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
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Sep 25 07:21:35 PDT 2001 
State-Changed-Why:  
Feedback timeout. 
Most likely, the running kernel did not have the IPDIVERT option. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29947 
>Unformatted:
