From owner-freebsd-isp Mon Jan 4 03:01:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28928 for freebsd-isp-outgoing; Mon, 4 Jan 1999 03:01:36 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from implode.root.com (root.com [208.221.12.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28923 for ; Mon, 4 Jan 1999 03:01:34 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id CAA24307; Mon, 4 Jan 1999 02:59:39 -0800 (PST) Message-Id: <199901041059.CAA24307@implode.root.com> To: xiyuan qian cc: isp@FreeBSD.ORG Subject: Re: How to transfer the tcp socket connection? In-reply-to: Your message of "Mon, 04 Jan 1999 17:55:19 GMT." <199901041755.RAA08104@dns.hgs.com.cn> From: David Greenman Reply-To: dg@root.com Date: Mon, 04 Jan 1999 02:59:39 -0800 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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