From nobody@FreeBSD.org  Sat Oct  5 21:29:04 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 1A05E37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2002 21:29:04 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CDC4243E4A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Oct 2002 21:29:03 -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 g964T37R083048
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Oct 2002 21:29:03 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g964T3Ap083047;
	Sat, 5 Oct 2002 21:29:03 -0700 (PDT)
Message-Id: <200210060429.g964T3Ap083047@www.freebsd.org>
Date: Sat, 5 Oct 2002 21:29:03 -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:         43734
>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:    Sat Oct 05 23:37:12 PDT 2002
>Last-Modified:  Sat Oct 05 23:37:12 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:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sat Oct 5 23:35:58 PDT 2002 
State-Changed-Why:  
Duplicate of conf/43733. 

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