From nobody@FreeBSD.org  Sat Oct  5 21:28:53 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 43D2F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2002 21:28:53 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B4CA143E4A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2002 21:28:52 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g964Sq7R083027
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Oct 2002 21:28:52 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g964Sq7W083026;
	Sat, 5 Oct 2002 21:28:52 -0700 (PDT)
Message-Id: <200210060428.g964Sq7W083026@www.freebsd.org>
Date: Sat, 5 Oct 2002 21:28:52 -0700 (PDT)
From: Anocha Yimsiriwattana <tawtao@tawtao.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfw add divert problem (also related to NAT).
X-Send-Pr-Version: www-1.0

>Number:         43733
>Category:       conf
>Synopsis:       ipfw add divert problem (also related to NAT).
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 05 21:30:02 PDT 2002
>Closed-Date:    Sun Oct 06 10:01:56 PDT 2002
>Last-Modified:  Sun Oct 06 10:01:56 PDT 2002
>Originator:     Anocha Yimsiriwattana
>Release:        4.6.2
>Organization:
A Graudate Student@ UMBC
>Environment:
FreeBSD pluto.solarnet.res 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray@builder.freebsdmaill.com/usr/src/sys/compie/GENERIC i386
>Description:
I tried to setup NAT. vr0 is the internet interface, and vr1 is my local network interface.  I followed the instruction in the handbook, section "Network Address Translation". Then I run "/etc/netstart." I got this error messages,

ipfw: getsockopt(IP_FW_ADD): Invalid argument


I trace thought rc.firewall script and I found that there is a bug in "ipfw" command. Here is the command that I have problem with,

# ipfw add divert natd all from any to any via vr0

The out put of this command was,

ipfw: getsockopt(IP_FW_ADD): Invalid argument


>How-To-Repeat:
(1) Follow the instruction to setup NAT in the handbook
(2) run /etc/netstart
(3) You can also type in following command,

# ipfw add divert natd all from any to any via vr0

>Fix:
No.  Please let me know if any one get a fixed!.
Thanks.
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@FreeBSD.org>
To: Anocha Yimsiriwattana <tawtao@tawtao.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: conf/43733: ipfw add divert problem (also related to NAT).
Date: Sun, 6 Oct 2002 10:41:56 +0400 (MSD)

 [...]
 > >How-To-Repeat:
 > (1) Follow the instruction to setup NAT in the handbook
 
 Do you have
 
      options IPFIREWALL
      options IPDIVERT
 
 in your kernel config file?
 
 Did you recompile and reinstall your kernel?
 
 Did you reboot your computer?
 
 -- 
 Maxim Konovalov, maxim@FreeBSD.org
 
 

From: Maxim Konovalov <maxim@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: RE: conf/43733: ipfw add divert problem (also related to NAT). (fwd)
Date: Sun, 6 Oct 2002 19:30:34 +0400 (MSD)

 Add to the audit trail.
 
 ---------- Forwarded message ----------
 Date: Sun, 6 Oct 2002 10:44:02 -0400
 From: ayimsi1 <ayimsi1@umbc.edu>
 To: Maxim Konovalov <maxim@FreeBSD.org>
 Subject: RE: conf/43733: ipfw add divert problem (also related to NAT).
 
 Hi Maxim,
 
 Thanks for fast reply,
 
 >===== Original Message From Maxim Konovalov <maxim@FreeBSD.org> =====
 >[...]
 >> >How-To-Repeat:
 >> (1) Follow the instruction to setup NAT in the handbook
 >
 >Do you have
 >
 >     options IPFIREWALL
 >     options IPDIVERT
 >
 >in your kernel config file?
 Yes I did.
 
 >
 >Did you recompile and reinstall your kernel?
 No I did not. I though that I have above option in my config file, so I did
 not recompile and reinstall the kernel.
 >
 >Did you reboot your computer?
 Yes I did. By the way, do I have to reboot the computer after I change network
 configuration?  Can I just run "/etc/netstart" to reconfig network?
 
 >
 >--
 >Maxim Konovalov, maxim@FreeBSD.org
 
 I will recompile kernel and I will let you know.
 
 Thanks again.
 
 Anocha
 
 

From: Maxim Konovalov <maxim@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: RE: conf/43733: ipfw add divert problem (also related to NAT). (fwd)
Date: Sun, 6 Oct 2002 20:53:39 +0400 (MSD)

 ---------- Forwarded message ----------
 Date: Sun, 6 Oct 2002 12:49:58 -0400
 From: ayimsi1 <ayimsi1@umbc.edu>
 To: Maxim Konovalov <maxim@FreeBSD.org>
 Subject: RE: conf/43733: ipfw add divert problem (also related to NAT).
 
 Thanks Maxim,
 
 After config a new kernel, it works fine now.
 
 Anocha
 
 >===== Original Message From Maxim Konovalov <maxim@FreeBSD.org> =====
 >[...]
 >> >How-To-Repeat:
 >> (1) Follow the instruction to setup NAT in the handbook
 >
 >Do you have
 >
 >     options IPFIREWALL
 >     options IPDIVERT
 >
 >in your kernel config file?
 >
 >Did you recompile and reinstall your kernel?
 >
 >Did you reboot your computer?
 >
 >--
 >Maxim Konovalov, maxim@FreeBSD.org
 
 
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sun Oct 6 10:01:22 PDT 2002 
State-Changed-Why:  
Configuration error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43733 
>Unformatted:
