From owner-freebsd-questions Wed Aug 4 15:32:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id B8C0614E24; Wed, 4 Aug 1999 15:32:04 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id PAA77104; Wed, 4 Aug 1999 15:28:35 -0700 (PDT) Date: Wed, 4 Aug 1999 15:28:34 -0700 (PDT) From: Julian Elischer To: Kent Ho Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: Forwarding ip packets with ipfw. In-Reply-To: <19990804083844.91908.qmail@graffiti.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG you probably want to use natd to do this rather than ipfw fwd.. ipfw fwd does not change the packet, but, rather, just delivers the unaltered packet somewhere. (This can be useful, but not for what you want to do). Now, if the web server was running FreeBSD you might be able to do it, but otherwise you need to actually change the packets so that they reflect the new target. Natd can actually do this I believe. (it also uses IPFW so you haven't wasted the effort you have done so far.) julian On Wed, 4 Aug 1999, Kent Ho wrote: > Hi, > > I have recently moved one of our webserver from my network to an ISP > data center assigned with a new IP address. > > The problem is that lot of machines out there still trying to find the > webserver at the old IP. So I have setup on one of my pc's in my > network and aliased the old IP. Now I need help to setup ipfw to > forward web connections to the old IP to the new IP. > > So far I have recompiled the kernel and enabled firewalling, ip > forwarding and updated the startup scripts. > > I have tried many combination of the ipfw. An example of what i'm > trying to do: > > ipfw add fwd xxx.xxx.xxx.xxx,xx ip from any to xxx.xxx.xxx.xxx in recv > fxp0 > > please help. > > many thanks > > Kent. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message