From owner-freebsd-questions Sun Dec 20 17:23:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA17267 for freebsd-questions-outgoing; Sun, 20 Dec 1998 17:23:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ngrdev.ic.gc.ca (ngrdev.ic.gc.ca [198.103.246.249]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17262 for ; Sun, 20 Dec 1998 17:23:13 -0800 (PST) (envelope-from antonio@ngrdev.ic.gc.ca) Received: from localhost (antonio@localhost) by ngrdev.ic.gc.ca (8.9.1/8.9.1) with SMTP id UAA05144 for ; Sun, 20 Dec 1998 20:22:44 -0500 (EST) Date: Sun, 20 Dec 1998 20:22:44 -0500 (EST) From: Antonio Bemfica Reply-To: Antonio Bemfica To: freebsd-questions@FreeBSD.ORG Subject: Re: Port redirection In-Reply-To: <367CF1DC.2BE9A41C@tdx.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 20 Dec 1998, Karl Pielorz wrote: > Antonio Bemfica wrote: > > > > On Sat, 19 Dec 1998, Jaime wrote: > > > > > [...] If you're running 2.x, you'll have to either upgrade or write a > > > program which acts as a daemon on port 23 and then reconnects incomming > > > connections to 8000. > > > > I think TCP wrappers can do that. > > Netcat (in the ports, i.e. /usr/ports/net/netcat) certainly can - we > use it [...] The only problem is - once you relay port 23 onto port > 8000 - you coulnd't telnet to the box, so make sure you have ssh or > move the 'real telnet' to a different port ;-) If you compile TCP Wrappers with PROCESS_OPTIONS, you will be able to run a different server on the same port depending on the host (or user@host) who is connecting to it [at least that's what I understood from the man page (man hosts_options, look for the 'twist' option)]. Antonio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message