Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2000 14:31:09 -0800
From:      "Joseph T. Lee" <nugundam@nerv.nu>
To:        Marco Rodrigues <drkangel@pathcom.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: natd redirect_port
Message-ID:  <20000213143109.A27031@greenwood3.nerv.nu>
In-Reply-To: <BOEMKCGKNBBLNDGJKEHEAEAMCAAA.drkangel@pathcom.com>; from Marco Rodrigues on Sun, Feb 13, 2000 at 03:39:56PM -0500
References:  <BOEMKCGKNBBLNDGJKEHEAEAMCAAA.drkangel@pathcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 13, 2000 at 03:39:56PM -0500, Marco Rodrigues wrote:
> 	Has anyone ever got the redirect_port switch to work with natd? It seems
> i've tried everything and I can't never get it to work. -redirect_port tcp
> externalip:telnet internalip:telnet should pass all requests to port 23 on
> the computer with both nics to a internal box at port 23 correct? I've also

From the manpage:
     -redirect_port proto targetIP:targetPORT[-targetPORT] [aliasIP:]alias-
                 PORT[-aliasPORT] [remoteIP[:remotePORT[-remotePORT]]]
[snip]
                       tcp inside1:telnet 6666

                 means that incoming tcp packets destined for port 6666 on
                 this machine will be sent to the telnet port on the inside1
                 machine.

                       tcp inside2:2300-2399 3300-3399

                 will redirect incoming connections on ports 3300-3399 to host
                 inside2, ports 2300-2399.  The mapping is 1:1 meaning port
                 3300 maps to 2300, 3301 maps to 2301, etc.

You have it reversed.

Try -redirect_port tcp internal:telnet telnet.

-- 
Joseph nugundam =best=com==/==\=IIGS=/==\=Playstation=/==\=Civic HX CVT=/==\
#            Anime Expo 2000            >> www.anime-expo.org/              >
#      FreeBSD: The Power to Serve      >> www.freebsd.org                  >
#    The Ultimate Online Speed-Shop     >> www.racesearch.com              /


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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