Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 15:55:09 -0600 (CST)
From:      "Scott A. Moberly" <smoberly@karamazov.org>
To:        <user@mail.econolodgetulsa.com>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: port redirect with ipfw NOT NAT (not NAT)
Message-ID:  <43498.65.221.169.187.1038347709.squirrel@mail.karamazov.org>
In-Reply-To: <20021126123656.G77087-100000@mail.econolodgetulsa.com>
References:  <20021126123656.G77087-100000@mail.econolodgetulsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43498.65.221.169.187.1038347709.squirrel>