From owner-freebsd-questions Mon Jun 12 07:58:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA21398 for questions-outgoing; Mon, 12 Jun 1995 07:58:27 -0700 Received: from sam.neosoft.com (root@sam.NeoSoft.com [198.64.213.71]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA21392 for ; Mon, 12 Jun 1995 07:58:26 -0700 Received: from scooter-slip-a7.NeoSoft.com (scooter-slip-a7.NeoSoft.com [198.65.165.16]) by sam.neosoft.com (8.6.10/8.6.10) with SMTP id JAA04323 for ; Mon, 12 Jun 1995 09:59:19 -0500 Date: Mon, 12 Jun 1995 09:59:19 -0500 Message-Id: <199506121459.JAA04323@sam.neosoft.com> X-Sender: rberndt@popmail.neosoft.com X-Mailer: Windows Eudora Version 1.4.4 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-questions@freebsd.org From: rberndt@neosoft.com (Randy Berndt) Subject: Help needed on (mis-)use of TELNETD Sender: questions-owner@freebsd.org Precedence: bulk I would like to request comments and suggestions on the following plan: I am attempting to use the net as a substitute for long-distance dedicated lines. I have terminals in one city that need to talk to a mini-computer in another city. The mini-computer has NO internet access at all. I am planning on two freebsd machines, one with the terminals hooked up to it, and one with multiple serial ports connected to the mini-computers RS-232 lines. The shell script for each user would directly start up a TELNET process, and log them off when TELNET ends. They will not be doing ANYTHING else on the system. Once a connection is made, I need ALL characters to pass through from the terminal to the mini, and back, WITHOUT INTERPRETATION. How do I get the local process on the terminal side to ignore everything? I looked at setting the tty to non-canonical, and BRKINT, so that a BREAK could shut down the telnet process and log them off. Is this correct? On the machine by the mini, it appears that: 1. adding the line #define _PATH_LOGIN 'my-prog' 2. recompiling TELNETD with another output name 3. putting this new program in /etc/services on an unused port 4. specifying the new port to TELNET on the terminal machine would let me get from a terminal to the pty created by TELNETD. Is this correct? 'my_prog' would be a program that looks for the first available serial port, and then connects serial-in to pty-out and serial-out to pty-in. Is there an existing program that might do this? or that I could use code from? Again, I need ALL characters to go thru as is. Thanks in advance for your help. I am just getting started in freebsd, it is just starting to make sense, and that scares me a little. Randy Berndt [Signature, like every damned freeway in Houston, is "Under Construction"]