From owner-freebsd-stable Sat Sep 7 12:11:22 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DC4237B400 for ; Sat, 7 Sep 2002 12:11:20 -0700 (PDT) Received: from radix.cryptio.net (radix.cryptio.net [199.181.107.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id E347F43E65 for ; Sat, 7 Sep 2002 12:11:19 -0700 (PDT) (envelope-from emechler@radix.cryptio.net) Received: from radix.cryptio.net (localhost [127.0.0.1]) by radix.cryptio.net (8.12.5/8.12.5) with ESMTP id g87JBJC2062627 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 7 Sep 2002 12:11:19 -0700 (PDT) (envelope-from emechler@radix.cryptio.net) Received: (from emechler@localhost) by radix.cryptio.net (8.12.5/8.12.5/Submit) id g87JBJKS062626; Sat, 7 Sep 2002 12:11:19 -0700 (PDT) Date: Sat, 7 Sep 2002 12:11:18 -0700 From: Erick Mechler To: Gene Bomgardner Cc: FreeBSD-stable@FreeBSD.ORG Subject: Re: ipfw add command format problem Message-ID: <20020907191118.GM31416@techometer.net> References: <3D79F88E.29385.CA8C73@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D79F88E.29385.CA8C73@localhost> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :: ipfw add divert natd all from any to any via rl0 :: :: Right out of the natd manpage , :: however, ipfw responds: ipfw: error: missing 'to' Try adding a rule number to it (I'm assuming you already have other ipfw rules installed, and your divert rule should be the first one): ipfw add 50 divert natd all from any to any via rl0 Do you also have the proper settings in /etc/rc.conf for natd and is natd running properly? From the looks of it, you should have the following in rc.conf: natd_enable="YES" natd_interface="rl0" See natd(8) for more info. Cheers - Erick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message