From owner-freebsd-questions Sat Jan 5 19:36:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from odyssey.apana.org.au (odyssey.apana.org.au [203.11.114.1]) by hub.freebsd.org (Postfix) with ESMTP id 6EED437B405 for ; Sat, 5 Jan 2002 19:36:45 -0800 (PST) Received: from odyssey.apana.org.au (IDENT:ugpMu0r+RbSkCMAHT6W6CoC7WCiq0JB9@odyssey.apana.org.au [203.11.114.1]) by odyssey.apana.org.au (8.9.3/8.9.3) with ESMTP id LAA86503; Sun, 6 Jan 2002 11:36:40 +0800 (WST) Date: Sun, 6 Jan 2002 11:36:40 +0800 (WST) From: Dean Hollister To: cjclark@alum.mit.edu Cc: questions@freebsd.org Subject: Re: ipfw question In-Reply-To: <20020105184641.G204@gohan.cjclark.org> Message-ID: <20020106113530.R85470-100000@odyssey.apana.org.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 5 Jan 2002, Crist J. Clark wrote: > > I need to divert any outgoing packet on port 100 to any host over to the > > same port on machine B. > > # ipfw add fwd 2.2.2.2 from 1.1.1.1 to any 100 out > > Should do it, provided, > > 1) 2.2.2.2 is local to 1.1.1.1 On the same LAN in other words? > 2) This is _really_ what you want to do. You do realize that the > fwd'ed packet is NOT modified. Machine B will receive a datagram > without the destination address changed in any way (if 1.1.1.1 was > sending a datagram to 3.3.3.3, port 100, Machine B will receive a > datagram with a destination address of 3.3.3.3, port 100). That's fine - I need the destination address to receive the correct origin address. > As I think I said before, you probably actually want to do NAT of some > sort. NAT changes the origin. Regards, d To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message