From owner-freebsd-hackers Fri Mar 17 09:49:31 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA00689 for hackers-outgoing; Fri, 17 Mar 1995 09:49:31 -0800 Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.20.4]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id JAA00683 for ; Fri, 17 Mar 1995 09:49:30 -0800 Received: by brasil.moneng.mei.com (4.1/SMI-4.1) id AA23717; Fri, 17 Mar 95 11:24:36 CST From: Joe Greco Message-Id: <9503171724.AA23717@brasil.moneng.mei.com> Subject: Re: Connecting a BBS to serial port? To: root@io.cts.com (Morgan Davis) Date: Fri, 17 Mar 1995 11:24:35 -0600 (CST) Cc: hackers@FreeBSD.org In-Reply-To: <199503171225.EAA14339@io.cts.com> from "Morgan Davis" at Mar 17, 95 04:25:28 am X-Mailer: ELM [version 2.4beta PL9] Content-Type: text Content-Length: 2085 Sender: hackers-owner@FreeBSD.org Precedence: bulk > After a caller logs in to the FreeBSD box with a special login name, > the interpreter would simply be cu, which would connect to the serial > port to wake up the BBS. The BBS supports direct serial connections > which, in its 'getty' mode, simply watches for newlines, and then > prompts a caller for login and password codes. > > In reading the cu manual, it doesn't appear to have a "raw" or > restricted mode -- and I'm afraid that a caller would be able to enter > tilde commands to cu. The connection has to be transparent and > support 8 bit data so that file transfers would work. > > Is there any existing solution to do this sort of thing, or would I > need to write my own variation of cu to make the port-to-port > connection? The BBS at the other end is an Apple IIGS (running > software I've written), so performance isn't critical -- 19,200 is > just fine. Hi, Having a relatively high level of experience with "bizarre" configurations to get things to work in restricted environments, I would highly suggest that you look closely at "kermit". Advantages: .kermrc (?) file can be used to configure Kermit just-so. :-) Disadvantages(?): it does not look like you can disable the escape character without hacking sources, at least from the 3 minutes I played around with it. What I (quickly) did in SunOSland: Added k::65534:65534:Kermit the Frog:/files/home/users/k:/usr/local/bin/kermit to /etc/passwd Created /files/home/users/k, touched .hushlogin, and created .kermrc: echo Please wait, connecting to port. echo set line /dev/ttyd0 set speed 38400 connect quit The quit at the end to kick the user off at session's end.. Disadvantages: I've never actually tried this specific hack in the past, so I can't guarantee it will work. But it seems like a relatively low-effort thing to try (aside from hacking out the escape char support). ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847