From: Just a fellow traveller... (jedubins@unix.amherst.edu)
Date: 04/11/93


From: jedubins@unix.amherst.edu (Just a fellow traveller...)
Subject: redirecting ports.
Date: Sun, 11 Apr 1993 05:31:11 GMT


[ Article crossposted from comp.unix.admin,comp.unix.questions,comp.unix.wizards ]
[ Author was Just a fellow traveller... ]
[ Posted on Sun, 11 Apr 1993 05:29:38 GMT ]

[ Article crossposted from amherst.comp ]
[ Author was Just a fellow traveller... ]
[ Posted on Sun, 11 Apr 1993 04:44:43 GMT ]

(term refers to term107 from tartarus.uwa.edu in /pub/oreillym/term)

I am able, using the term program and tredir to redirect ports on my host
machine to ports on my local machine, i.e., running

tredir 4321 23

on my host machine allows me to redirect port 4321 of my host machine to my
local Linux box's login prompt, so that people telnetting there can log into
my pc at home from somewhere else on the internet(I also realize, not being
root I can only redirect ports over 1024 on my host machine).

Is there anyway for me to give a netname alias for that port? Could I set it
up so typing

telnet linux.whatsamatta.edu

would really be

telnet bigboy.whatsamatta.edu 4321

for anyone else on the net. If so where do I look to learn how to do this?
do I have to have access to /etc/hosts on the main machine?

I really am just beginning to learn about unix administration, even though I
have been using unix, and programming on various non-unix platforms for years.
In this area I am somewhat new, although I'm sure there is a fairly simple
solution, if there is one. I guess one answer might be that I would have
to gain the assistance of a su on the host system, but I would prefer to
avoid that. Any pointers would be appreciated.

                                        Jim

p.s. I don't mind if you post to the newsgroup, because I'll probably read
that too, eventually, but if you could email me a reply instead, I'll probably
get a chance to read it much sooner.