From owner-freebsd-isp Tue Jan 5 09:33:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA10056 for freebsd-isp-outgoing; Tue, 5 Jan 1999 09:33:14 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from carp.gbr.epa.gov (carp.gbr.epa.gov [204.46.159.110]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA10030 for ; Tue, 5 Jan 1999 09:33:03 -0800 (PST) (envelope-from mjenkins@carp.gbr.epa.gov) Received: (from mjenkins@localhost) by carp.gbr.epa.gov (8.8.8/8.8.8) id LAA09805; Tue, 5 Jan 1999 11:32:02 -0600 (CST) (envelope-from mjenkins) Date: Tue, 5 Jan 1999 11:32:02 -0600 (CST) From: Mike Jenkins Message-Id: <199901051732.LAA09805@carp.gbr.epa.gov> To: xiyuan@dns.hgs.com.cn Subject: Re: How to transfer the tcp socket connection? Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <199901041755.RAA08104@dns.hgs.com.cn> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 4 Jan 1999 xiyuan qian wrote: > 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? A simple solution is to use redir or plugdaemon. http://metalab.unc.edu/pub/Linux/system/network/daemons/redir-1.1.tar.gz http://www.taronga.com/plugdaemon.shar Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message