From owner-freebsd-questions Sat May 5 22:55: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 4F6B037B422 for ; Sat, 5 May 2001 22:55:00 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f46766e32242; Sun, 6 May 2001 02:06:06 -0500 (CDT) (envelope-from nick@rogness.net) Date: Sun, 6 May 2001 02:06:05 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Chris Colllins Cc: freebsd-questions@freebsd.org Subject: Re: IPFW Port FW question In-Reply-To: <20010505205449.B2755-100000@collins.collins-ca.com> 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 On Sat, 5 May 2001, Chris Colllins wrote: Sending to -questions instead of -net. > > Hello > > I'm having some trouble getting ipfw to forward. Here is what I have > been doing. > > ipfw add 312 fwd 192.168.1.7,80 tcp from any to 192.168.1.2 80 > > or > > ipfw add 312 fwd 192.168.1.7,80 tcp from any to any 80 > > > > Here is what I am trying to accomplish. > > > Router------>NATed----------->BSDA------------>BSDB > > PubIP 192.168.1.1 192.168.1.2 192.168.1.7 > > An I would like to forward port 80. > > > Does anybody have any suggestions or ideas? Forward port 80 from the public side or what? If it's port 80 from the public side then you should be using natd's -redirect_port not ipfw fwd. See natd's man page for more info. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message