Date: Mon, 04 Jan 1999 02:59:39 -0800 From: David Greenman <dg@root.com> To: xiyuan qian <xiyuan@dns.hgs.com.cn> Cc: isp@FreeBSD.ORG Subject: Re: How to transfer the tcp socket connection? Message-ID: <199901041059.CAA24307@implode.root.com> In-Reply-To: Your message of "Mon, 04 Jan 1999 17:55:19 GMT." <199901041755.RAA08104@dns.hgs.com.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
>Hi, I have a host acts as a gateway with two NICs. Now, I need to let my client >to connect to the outside through this host. That is when I enter: >telnet gateway-host 1234, then the gateway host will auto make this connection >to the 1234 port of one outside host. > >For example: > >Inside: 10.10.10.10 (client) >Gateway-host: 10.10.10.1 and 202.100.100.1 >Outside: 202.100.100.100 > >Now, I enter telnet 10.10.10.1 1234 at the 10.10.10.10 host, then the >connection will auto be made to 202.100.100.100 1234. > >How to carry this out? You appear to be describing a need for network address translation. We have a thing called "natd" which will do this for you - in your case, you would probably want to set it up for static translation of the two addresses. See the manual page for natd... -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901041059.CAA24307>