From owner-freebsd-ipfw@FreeBSD.ORG Tue Dec 23 22:39:16 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DFDB16A4CE for ; Tue, 23 Dec 2003 22:39:16 -0800 (PST) Received: from tequila.4you.lt (tequila.4you.lt [212.122.68.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 38ED043D2F for ; Tue, 23 Dec 2003 22:39:13 -0800 (PST) (envelope-from hugle@vkt.lt) Received: (qmail 71018 invoked by uid 0); 24 Dec 2003 06:35:02 -0000 Received: from hugle@vkt.lt by tequila by uid 82 with qmail-scanner-1.20rc1 (. Clear:RC:1:. Processed in 0.176476 secs); 24 Dec 2003 06:35:02 -0000 Received: from unknown (HELO 127.0.0.1) (213.252.192.162) by tequila.4you.lt with SMTP; 24 Dec 2003 06:35:02 -0000 Date: Tue, 23 Dec 2003 22:38:32 -0800 From: hugle X-Mailer: The Bat! (v2.01) X-Priority: 3 (Normal) Message-ID: <119306321256.20031223223832@vkt.lt> To: freebsd-ipfw@freebsd.org In-Reply-To: References: <19235318750.20031223025510@vkt.lt> MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Subject: Re[2]: ipfw forward command? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hugle List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2003 06:39:16 -0000 NR> On Tue, 23 Dec 2003, hugle wrote: >> Hello. >> As I understoon, ipfw's forward command goes before ipnat >> How i can make it go in some other direction (ipnat then ipfw fwd)? >> cause firstly I'd like to NAT packets and then forward them to needed >> gateway. But since forward happens before NAT this can't be done, and >> packets don't get forwarded to needed gw >> default gw x.x.x.161 ip x.x.x.162 >> second gw x.x.x.141 ip x.x.x.142 >> third gw y.y.y.1 ip y.y.y.59 NR> Any specific reason why you are using ipfw fwd instead of ipf NR> forwarding? Actualy didn't find ipf's forward rule. Could you plz give me an example? I only found redirect in ipant, but it is not what i'm ooking for. Thx, hugle