From owner-freebsd-questions Tue Nov 26 13:56:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7998937B401 for ; Tue, 26 Nov 2002 13:56:10 -0800 (PST) Received: from mail.karamazov.org (h162-040-089-010.adsl.navix.net [162.40.89.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ADDA43EBE for ; Tue, 26 Nov 2002 13:56:01 -0800 (PST) (envelope-from smoberly@karamazov.org) Received: from karamazov.org (mail.karamazov.org [10.0.0.11]) by mail.karamazov.org (8.12.6/8.12.6) with SMTP id gAQLsmsG001760; Tue, 26 Nov 2002 15:55:09 -0600 (CST) (envelope-from smoberly@karamazov.org) From: "Scott A. Moberly" Received: from 65.221.169.187 (SquirrelMail authenticated user smoberly) by mail.karamazov.org with HTTP; Tue, 26 Nov 2002 15:55:09 -0600 (CST) Message-ID: <43498.65.221.169.187.1038347709.squirrel@mail.karamazov.org> Date: Tue, 26 Nov 2002 15:55:09 -0600 (CST) Subject: Re: port redirect with ipfw NOT NAT (not NAT) To: In-Reply-To: <20021126123656.G77087-100000@mail.econolodgetulsa.com> References: <20021126123656.G77087-100000@mail.econolodgetulsa.com> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.8) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 > > Hello, > > I want to perform a very simple act: > > All traffic going to 10.10.10.10 port 50 > should go to > 10.10.10.10 port 5050 > > That's it. The trick is, I am _not_ interested in running NAT. This is > not some cable modem or laptop splitting my DSL service - this is a > rackmount firewall on a real network. So again, I do not have any > interest in running NAT in any form. Not interested, thanks. > > But, I cannot seem to figure out what the ipfw rule is to perform this > simple task. So the question is: > > > What is the ipfw syntax to redirect all traffic from one port to > another. > > > Thanks! Have you tried something like: add 01000 fwd 10.10.10.10,5050 tcp from any to 10.10.10.10 50 --- Scott A. Moberly smoberly@karamazov.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message