Ok, I've been messing around with this problem as well, and I'll have you
warn you, I'm proably not as technically inclined in the ways of
programming as some of you are.
(however, i have a friend who is).
He told me about a program called 'MODEMU' which will take a portmaster
(say, /dev/ttypf) and use it to act as an I/O, appearing to be a modem
when in fact, it is a telnet session. It answers regular modem commands,
and to begin the telnet session, you send atd"fqdn (quote needed, for some
strange reason). in any case, I tried to couple it with DOSEMU using the
following command line:
modemu -d /dev/ttypf -c "dos"
(inform it to talk through portmaster ttypf, and begin the dosemu
program).
in dosemu.conf I modified it so that $_com2 = "/dev/ttypf"
(inform DOSEMU that it should use link com2 to /dev/ttypf)
this should work, however it doesnt. maybe someone might want to take a
look at it, and hopefully see why I cant get it to work.
MODEMU is at
ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/dialout/modemu-0.0.1.tar.gz
On Mon, 14 Dec 1998, Jeff Bachtel wrote:
> Just FWIW, a com port/internet redirector in softare is not unheard of,
> there used to be one for Win95, that just gave "OK" responses to AT commands
> thrown at it, except for ATDT, for which it took the remaining text as the
> FQDN that you wished to connect to. It would the return a CONNECT string
> when the telnet connection was established. (Let you use procomm as telnet
> client, which was spiffy). More on topic, this could be done in Linux, if
> dosemu uses the linux /dev/ttyS0 devices, by creating a device driver (in C)
> that functions as the emulator I described above does, and telling dosemu
> that that device was a certain com port. You'd of course have to disable
> direct port access, methinks.
>
> regards,
> jeff
>
> On Sun, Dec 13, 1998 at 10:06:35PM -0800, Stefan Hudson wrote:
> > > Hiya.
> > >
> > > I'm looking for a way to "fake" a telnet session as a serial port under
> > > dosemu (legacy application uses serial ports to communicate and we need to
> > > make it use telnet instead).
> > >
> > > I've had some success with using $_com2 = "/dev/ttyp4" (for eg) but can't
> > > get the input going in both directions properly. (and have problems with not
> > > being able to open the current VT). Since the 16550 code creates entirely
> > > virtual UARTs, I can't see why this can't be done, or why it hasn't been
> > > done already.
> > >
> > > If anyone has any experience in this sort of task, or pointers towards a
> > > setup that does it, I'd be grateful. If not, I guess me/somebody has to
> > > write it :)
> >
> > I had a similar problem... I wanted to put up a DOS based BBS, and have
> > it accessed via the Internet instead of a modem. I solved the problem by
> > throwing hardware at it - I used a null modem to a Portmaster serial port,
> > which can connect to an incoming TCP connection.
> >
> > I looked at trying to do it without the hardware, which would be preferable,
> > but I didn't get too far. I think to work well, it would have to be
> > implemented inside the emulator itself. I don't know what you could tell
> > when the aplication has opened the port otherwise, and you'd also have
> > to fake a modem's response codes for outbound connections.
> >
> > --
> > /// Stefan Hudson <[EMAIL PROTECTED]>
> > __ /// Senior Network Administrator - Monterey Bay Internet
> > \\\/// http://www.mbay.net/ - Email: [EMAIL PROTECTED]
> > \XX/ Voice: 831-642-6100 Fax: 831-642-6101 Modem: 831-642-6102
>
> --
> Jeff Bachtel
> Network Availiblity Center, Texas A&M University
> http://www.houseofj.ml.org/~jeff
> Feebly jeer the calf.
>