From owner-freebsd-isp Mon Jan 4 02:31:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA26288 for freebsd-isp-outgoing; Mon, 4 Jan 1999 02:31:39 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from dns.hgs.com.cn ([202.96.210.159]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA26280 for ; Mon, 4 Jan 1999 02:31:37 -0800 (PST) (envelope-from xiyuan@dns.hgs.com.cn) Received: (from xiyuan@localhost) by dns.hgs.com.cn (8.8.7/8.8.7) id RAA08104 for isp@freebsd.org; Mon, 4 Jan 1999 17:55:19 GMT (envelope-from xiyuan) Date: Mon, 4 Jan 1999 17:55:19 GMT From: xiyuan qian Message-Id: <199901041755.RAA08104@dns.hgs.com.cn> To: isp@FreeBSD.ORG Subject: How to transfer the tcp socket connection? 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? --xiyuan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message