From owner-freebsd-ipfw@FreeBSD.ORG Tue Jan 16 16:40:52 2007 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C67CF16A40F for ; Tue, 16 Jan 2007 16:40:52 +0000 (UTC) (envelope-from tony@crosswinds.net) Received: from out-mx1.crosswinds.net (out-mx1.crosswinds.net [216.18.117.38]) by mx1.freebsd.org (Postfix) with ESMTP id A58A913C45D for ; Tue, 16 Jan 2007 16:40:52 +0000 (UTC) (envelope-from tony@crosswinds.net) Received: from admin.crosswinds.net (out-mx1.crosswinds.net [216.18.117.38]) by out-mx1.crosswinds.net (Postfix) with ESMTP id C08C92E722 for ; Tue, 16 Jan 2007 11:21:13 -0500 (EST) Received: by admin.crosswinds.net (Postfix, from userid 1001) id B691C403D; Tue, 16 Jan 2007 11:21:13 -0500 (EST) Date: Tue, 16 Jan 2007 11:21:13 -0500 From: Tony Holmes To: freebsd-ipfw@freebsd.org Message-ID: <20070116162113.GA29639@crosswinds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Forwarding with Packet Rewriting X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 16:40:52 -0000 Hi all, I have what should be a simple problem but due to lack of sleep I can't get it and need a solution asap. I have a freebsd 4.11 firewall with ipfw and divert/natd in it. All I want to do is rewrite packets destined to IP a.b.c.d 25 to IP a.b.c.e 25 and rewrite them on the way out. a.b.c.d and a.b.c.e are not on the local machines - but are on the local subnets. NATD is looking to use the local interface and that's where my tiredness is coming in. How can I do a simple tranparent rewrite like that. -- Tony Holmes Ph: (416) 993-1219 Founder and Senior Systems Architect Crosswinds Internet Communications Inc.