From owner-freebsd-bugs Sat Oct 5 21:30: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA4BE37B404 for ; Sat, 5 Oct 2002 21:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC61F43E42 for ; Sat, 5 Oct 2002 21:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g964U3Co071497 for ; Sat, 5 Oct 2002 21:30:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g964U3Ht071496; Sat, 5 Oct 2002 21:30:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A05E37B401 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/43734: ipfw add divert problem (also related to NAT). Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43734 >Category: conf >Synopsis: ipfw add divert problem (also related to NAT). >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 05 21:30:02 PDT 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message