 |
|
| Linux Forum Index » Linux - Slackware Forum » Redirect telnet to a serial port... |
|
Page 1 of 1 |
|
| Author |
Message |
| Dan C... |
Posted: Sat Oct 10, 2009 3:20 pm |
|
|
|
Guest
|
I'm looking in to how I can redirect an incoming telnet connection to go
out a serial port. What I'm trying to do is be able to telnet to a Slack
box, have the connection go out the serial port, and go to another (DOS)
box's serial port (via a null modem serial cable). That DOS box is
running a BBS program (PCBoard) which I'd like to make reachable over the
internet via telnet. As you may remember, DOS doesn't do TCP/IP, so
that's why this approach is being tried... Any ideas? Thanks.
Followups set to comp.os.linux.networking
--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he garotted another passing Liberal.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/ |
|
|
| Back to top |
|
|
|
| Henrik Carlqvist... |
Posted: Sun Oct 11, 2009 5:07 pm |
|
|
|
Guest
|
Allen Kistler <ackistler at (no spam) oohay.moc> wrote:
Quote: Henrik Carlqvist wrote:
I haven't tried anything like this myself, but I think something like this
might work:
nc -l -p 23 < /dev/ttyS0 > /dev/ttyS0
I think
nc -lk 23 < /dev/ttyS0 > /dev/ttyS0
is closer to what you want.
There are different implementations of nc. I know that in RedHat it is not
allowed to combine the options -l and -p, instead you are supposed to only
use "nc -l 23". In Slackware 12.2 which ships with version 1.10 of nc your
example instead gives the error:
nc: invalid option -- k
nc -h for help
However, as you said, a real console server is probably better than a
custom hack with nc.
regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root at (no spam) localhost postmaster at (no spam) localhost |
|
|
| Back to top |
|
|
|
| +Alan Hicks+... |
Posted: Mon Oct 12, 2009 9:56 am |
|
|
|
Guest
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2009-10-10, Dan C <youmustbejoking at (no spam) lan.invalid> wrote:
Quote: I'm looking in to how I can redirect an incoming telnet connection to go
out a serial port. What I'm trying to do is be able to telnet to a Slack
box, have the connection go out the serial port, and go to another (DOS)
box's serial port (via a null modem serial cable). That DOS box is
running a BBS program (PCBoard) which I'd like to make reachable over the
internet via telnet.
Well, perhaps the simplest solution is to setup a dedicated user for
this task, and set it's shell to run something like minicom or cu on
the serial port. Anytime the user logs in, rather than running bash or
what-not, minicom will fire up and contact the DOS box on that serial
port.
- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkrTUZEACgkQNj1TaGS9H5KJCACgpOdcNgcDz8SljJa/oMbY8gB3
1nMAn0IL5vfwpuvF9q4u8Vjr8fYx+BHy
=uKjK
-----END PGP SIGNATURE----- |
|
|
| Back to top |
|
|
|
| Res... |
Posted: Mon Oct 12, 2009 2:47 pm |
|
|
|
Guest
|
I forget its name, but back in the very very early 90's the BBS I ran under
dos and desqview used a dos tcp program, it wasn't flash, but it worked
well enough for inbound telnet sessions to the board to use fido, d/l and
play games.
On Mon, 12 Oct 2009, +Alan Hicks+ wrote:
Quote: -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2009-10-10, Dan C <youmustbejoking at (no spam) lan.invalid> wrote:
I'm looking in to how I can redirect an incoming telnet connection to go
out a serial port. What I'm trying to do is be able to telnet to a Slack
box, have the connection go out the serial port, and go to another (DOS)
box's serial port (via a null modem serial cable). That DOS box is
running a BBS program (PCBoard) which I'd like to make reachable over the
internet via telnet.
Well, perhaps the simplest solution is to setup a dedicated user for
this task, and set it's shell to run something like minicom or cu on
the serial port. Anytime the user logs in, rather than running bash or
what-not, minicom will fire up and contact the DOS box on that serial
port.
- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkrTUZEACgkQNj1TaGS9H5KJCACgpOdcNgcDz8SljJa/oMbY8gB3
1nMAn0IL5vfwpuvF9q4u8Vjr8fYx+BHy
=uKjK
-----END PGP SIGNATURE-----
--
Res
Time to change the Australian Data Cable and Wiring Laws.
Help get the "Digital Data Exemption" back so we can legally make
ethernet cables. http://forums.ausics.net/./viewtopic.php?f=1&t=61 |
|
|
| Back to top |
|
|
|
| Dan C... |
Posted: Mon Oct 12, 2009 3:04 pm |
|
|
|
Guest
|
On Mon, 12 Oct 2009 15:56:03 +0000, +Alan Hicks+ wrote:
Quote: I'm looking in to how I can redirect an incoming telnet connection to
go out a serial port. What I'm trying to do is be able to telnet to a
Slack box, have the connection go out the serial port, and go to
another (DOS) box's serial port (via a null modem serial cable). That
DOS box is running a BBS program (PCBoard) which I'd like to make
reachable over the internet via telnet.
Well, perhaps the simplest solution is to setup a dedicated user for
this task, and set it's shell to run something like minicom or cu on the
serial port. Anytime the user logs in, rather than running bash or
what-not, minicom will fire up and contact the DOS box on that serial
port.
Not a bad idea, but won't work as far as making a BBS accessible to the
public (many different users, names unknown).
I'm exploring the world of networking on MSDOS, when I have some free
time. It's an ugly thing, to be sure.
--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he garotted another passing Liberal.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/ |
|
|
| Back to top |
|
|
|
| Res... |
Posted: Tue Oct 13, 2009 6:05 pm |
|
|
|
Guest
|
On Tue, 13 Oct 2009, Sylvain Robitaille wrote:
Quote: On Tue, 13 Oct 2009 23:21:23 +1000, Res wrote:
I'm sure it was not a m$ proggy, but, it is a VERY long time ago, I
*think* I might have found it on simtel, that kinda rings a bell, but
its late and i'm not going to stretch the brain any further tonight.
Trumpet? It's been a long time for me as well, but I think I remember
using that ...
not sure, doesnt really sound like it, but wasnt trumpet winsock a win 3.x
thing? It might have worked in pure DOS as well, dunno...
--
Res
Time to change the Australian Data Cable and Wiring Laws.
Help get the "Digital Data Exemption" back so we can legally make
ethernet cables. http://forums.ausics.net/./viewtopic.php?f=1&t=61 |
|
|
| Back to top |
|
|
|
| Dan C... |
Posted: Wed Oct 14, 2009 6:50 am |
|
|
|
Guest
|
On Wed, 14 Oct 2009 05:17:43 +0000, Sylvain Robitaille wrote:
Quote: On 13 Oct 2009 23:04:28 GMT, Dan C wrote:
... The tricky part is getting the communication from the Linux gateway
to the DOS computer running the BBS. How to connect the "bbs" user to
the outbound serial port of the Linux box? ...
Look at the "cu" command from the UUCP package that ships with
Slackware. I think you *should* be able to set that up, with appropriate
options as your "bbs" user's shell, to have anyone logging into your
system with that be immediately captive to the serial connection to the
BBS system.
I hope this helps ...
Excellent! That looks very promising. Now to just find some time for
all this... Hopefully on the weekend. Thanks a lot for the info.
--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he garotted another passing Liberal.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/ |
|
|
| Back to top |
|
|
|
| Theodore Heise... |
Posted: Thu Oct 15, 2009 5:15 am |
|
|
|
Guest
|
On 14 Oct 2009 03:21:56 GMT,
Dan C <youmustbejoking at (no spam) lan.invalid> wrote:
Quote: On Wed, 14 Oct 2009 03:33:05 +0200, Aragorn wrote:
The other option, which I would not rule out just yet, would be
to implement TCP/IP on the DOS box.
...have been scouring and collecting old files for
attempting to get TCP/IP on the DOS box.
Dan, this approach might be possible. Back around the turn of the
millenium I used an HP 200LX as my sole travel computer. It ran
DOS 5.0, and with lots of niggling I was able to get it connected
to the internet with TCP/IP over an ethernet PCMCIA card as well
as with a modem. Some of my old notes from those activities (not
all of which is relevant to your request) are here:
http://heise.nu/LXTCP.html
http://heise.nu/LX-LAN.html
The starting point would probably be WATTCP. There is at least
one caveat, this was all done using the 200LX as a client, but it
seems if you could get a TCP/IP connection established, it might
be possible to use the box to serve up services. I do have some
dim memory of using ssh to login to the 200LX over the network.
--
Theodore (Ted) Heise <theo at (no spam) heise.nu> Bloomington, IN, USA |
|
|
| Back to top |
|
|
|
| Dan C... |
Posted: Thu Oct 15, 2009 6:50 am |
|
|
|
Guest
|
On Thu, 15 Oct 2009 07:15:54 -0400, Theodore Heise wrote:
Quote: On 14 Oct 2009 03:21:56 GMT,
Dan C <youmustbejoking at (no spam) lan.invalid> wrote:
On Wed, 14 Oct 2009 03:33:05 +0200, Aragorn wrote:
The other option, which I would not rule out just yet, would be to
implement TCP/IP on the DOS box.
...have been scouring and collecting old files for
attempting to get TCP/IP on the DOS box.
Dan, this approach might be possible. Back around the turn of the
millenium I used an HP 200LX as my sole travel computer. It ran DOS
5.0, and with lots of niggling I was able to get it connected to the
internet with TCP/IP over an ethernet PCMCIA card as well as with a
modem. Some of my old notes from those activities (not all of which is
relevant to your request) are here:
http://heise.nu/LXTCP.html
http://heise.nu/LX-LAN.html
The starting point would probably be WATTCP. There is at least one
caveat, this was all done using the 200LX as a client, but it seems if
you could get a TCP/IP connection established, it might be possible to
use the box to serve up services. I do have some dim memory of using
ssh to login to the 200LX over the network.
Good stuff. Really appreciate the input.
--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he garotted another passing Liberal.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/ |
|
|
| Back to top |
|
|
|
| Grant Taylor... |
Posted: Mon Oct 19, 2009 6:03 pm |
|
|
|
Guest
|
On Wed, 14 Oct 2009 03:33:05 +0200, Aragorn wrote:
Quote: The other option, which I would not rule out just yet, would be to
implement TCP/IP on the DOS box.
Go take a look at FreeDOS and their networking documentation. They have
quite a bit of good information on networking in DOS. Further, FreeDOS
its self, is using a lot of open source programs that have been compiled
for DOS.
Link - FreeDOS Networking
- http://www.freedos.org/freedos/news/technote/157.html
Grant. . . . |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Tue Nov 24, 2009 8:26 pm
|
|