Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2011 11:03:05 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Michael Sierchio <kudzu@tenebras.com>
Cc:        Bill Tillman <btillman99@yahoo.com>, freebsd-questions@freebsd.org
Subject:   Re: IPFW Firewall NAT inbound port-redirect
Message-ID:  <20110712160304.GI6611@dan.emsphone.com>
In-Reply-To: <CAHu1Y725TGa8D=TQCKa7VQYDVAFLoABdFOZ%2BJwnMOBck0gWzyA@mail.gmail.com>
References:  <CAHu1Y70Uq1AkMF--rB8sAw2M1NW8a0x1H9voTPsy3cm5vQ6O2Q@mail.gmail.com> <20110711170729.GG6611@dan.emsphone.com> <1310473165.58370.YahooMailRC@web36501.mail.mud.yahoo.com> <CAHu1Y725TGa8D=TQCKa7VQYDVAFLoABdFOZ%2BJwnMOBck0gWzyA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 12), Michael Sierchio said:
> Is there a way of specifying a particular public address if there is
> more than one bound to the external interface?  A la
> 
> nat 123 config if re0.2 log same_ports redirect_port tcp 10.0.0.3:22 102.10.22.1:2222

Yes; the redirect_port syntax is described in the natd manpage:

     redirect_port proto targetIP:targetPORT[-targetPORT]
                 [aliasIP:]aliasPORT[-aliasPORT]
                 [remoteIP[:remotePORT[-remotePORT]]]



-- 
	Dan Nelson
	dnelson@allantgroup.com



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