home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
rdtelnet.zip
/
ReadMe.Txt
< prev
next >
Wrap
Text File
|
1997-03-29
|
4KB
|
104 lines
ReDirectTelnet/2 Version 0.50 beta (29/03/1997)
Copyright (c) Nitin Chandra 1997
-----------------------------------------------
In general, ReDirectTelnet/2 simply redirects the traffic from
a given socket to another.
I use it to redirect incoming telnet calls on my dial-out system
to another system which runs my BBS (connected via ethernet).
It can, maybe, be used for other purposes as well, but I use it
only for telnet re-direction for now.
Of course, it can be used to re-direct telnet calls over a any
LAN which has TCPIP setup properly.
The block diagram below illustrates my usage.
+------------------+ +-----------------+
| AdeptXBBS System |<---Warp TCPIP over Ethernet--->| Dial-Out System |
+------------------+ +-----------------+
The BBS system does not dial out anywhere. That is done by my Dial-Out
System. Altho the excellent InJoy dialer with it's masquerading turned
on allows the BBS to get news/email, but cannot route back a telnet call
and neither can any proxy (or proxy like) programs that I have tried so
far do that in a seamless manner.
ReDirectTelnet is my saviour for this kind of situation :)
The usage is simple:
ReDirectTelnet <Dial-Out System Port> <Network IP> <Network Port>
<Dial-Out System Port> is the port u want people to telnet to on your
dial-out system which will then be redirected
to the BBS system over the LAN.
<Network IP> is the IP address of the system on LAN (in my
case the IP address of the BBS system)
<Network Port> is the port number to redirect the incoming
calls on the network system (in my case the
BBS system)
Eg: ReDirectTelnet 5001 10.10.10.2 23
This line would redirect any incoming calls to the dial-out system
on port 5001 to the LAN system with IP 10.10.10.2 on port 23 (23
is generally the telnet port).
A Little BackGround
--------------------
Okay, for those who want to know more...ReDirectTelnet currently displays
the progress of all activities. Each incoming call is redirected on a
seperate thread. The maximium number of calls the program will take up is
5 (this is the max limit for a given socket as per docs).
Each thread will print out it's ID and the socket numbers it is using and
will print a terminating message when the connection terminates.
Pressing any key will terminate the program. Please make sure there are no
coonections in progress when you terminate the program as all threads will
be killed and the sockets they use will not be available for use before they
eventually timeout or the system is reset.
A sample session would look like the display below...
+----------------------------------------------------------------------------+
| [X:\BBS]ReDirectTelnet 3000 10.202.202.2 23 |
| |
| Telnet Re-director for AdeptXBBS Version 0.50 (beta) |
| Copyright (c) Nitin Chandra 1997 |
| E-Mail: nitin@poboxes.com |
| |
| This program is FREE for any non-commercial use! |
| Feel free to e-mail me with any comments/suggestions... |
| |
| Intializing sockets... |
| Getting command line... |
| Getting a socket...and binding it... |
| Press ANY key to exit! |
| Listening for connections... |
| |
| Connected...From...10.202.202.1 |
| Redirecting to network system...Done. |
| Creating Thread for current incoming call... |
| |
| Thread #3...manning redirection from socket #173 (local) to #174 (remote) |
| |
| Thread #3 Terminating... |
| |
| Clearing Keyboard Buffer... |
| Closing Server Socket... |
| |
| Done! Thank You :) |
+----------------------------------------------------------------------------+
Feel free to e-mail me at nitin@poboxes.com with suggestions/comments/bugs
or even "hey, i wanted this too :)"
That's it for now folks! :)