Not sure if this idea will work, but it just might.  Enable the telnet
daemon (gasp!), but make it listen ONLY ON LOOPBACK on the host that
your legacy app is supposed to connect to.  Then, on the machine where
your legacy app is running, create an SSH tunnel going to the new
machine.  Assuming that your legacy app is running Linux as well, the
following should suffice:

ssh -L 1123:localhost:23 server.host -N

Now, making the legacy application connect via telnet to port 1123 on
localhost will actually connect it to the (loopback listening!) port 23
on server.host.  The actual telnet tunnels the traffic so it looks from
the point of view of the telnet daemon on server.host that there is a
local connection to its port, when in reality, the data is being
tunneled over SSH to it from some remote host.

This is the same method I use to send mail using our company mail server
even though I'm using random ISP's and have various different IP
addresses, even though our mail server is not an open relay.  I create
an SSH tunnel to it and send my mail by posting to the forwarded port on
my local machine...  It relays the mail because mail sent this way looks
like it came from the mail server's local loopback; the mail server
doesn't see my real IP (the SSH server does though).

I suppose this should also be possible with the PuTTY suite of
applications under Windows; I haven't got the first clue how it might be
done though, being nowhere near as familiar with that as the standard
OpenSSH.

-- 
Democracy needs citizens, not consumers. When people are merely consumers of
politics, they are more easily manipulated.  And in our time conformism is
stronger than in the past.
http://stormwyrm.blogspot.com/
--
Philippine Linux Users' Group (PLUG) Mailing List
plug@lists.q-linux.com (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to