Subject: Re: tty driver for reverse telnet (a better explanation)
To: Scott R. Burns <Scott.Burns@Netcontech.Com>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 02/24/2002 15:25:27
[ On Sunday, February 24, 2002 at 09:56:34 (-0500), Scott R. Burns wrote: ]
> Subject: tty driver for reverse telnet (a better explanation)
>
> I want to create a /dev/ttyabc entry which when open() is used on it
> causes it to telnet to terminalserver.company.com port 3001 for example.
> Much like you would say telnet terminalserver.company.com 3001 to connect
> to a modem hung off a terminal server port and offered on the terminal
> server via reverse telnet. Does that make any sense ?

Lots-o-sense!  ;-)

Livingston Portmasters used to come with such a driver.  They didn't use
plain telnet as the protocol for the connection though because telnet
alone doesn't have enough support to pass through some of the tty
settings.  Perhaps xylogics had such a driver too, but I don't remember.

Note that without similar special support in the terminal server you
won't be able to pass on many stty (termios) settings.

I did most of the design for such a protocol and driver about 8 years
ago, just before modems started to fall out of favour, and when a real
terminal server was priced a bit too high for the non-profit I was
working for at the time.  We never implemented it though because we were
able to farm out the modem pool to an internet provider.

> This allows programs written with only tty support to connect over the
> lan to devices hung off of terminal servers.

What programs are you thinking of?  I know of no such programs which
won't also need full, or nearly full, termios support.  Some of them
might get by with faked controls, and with a full telnet daemon on the
other end some termios changes can be translated into telnet options and
negotiated, but that's about as far as you'll get.

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>