Subject: Mapping ports ?
To: netbsd-users@NetBSD.org <netbsd-users@netbsd.org>
From: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
List: netbsd-users
Date: 03/10/2001 23:44:02
Hi,

I have a NetBSD-1.5/i386 which has "ftpd" running as a standalone daemon
on port 21, and also "wu-ftpd" running out of inetd on port 821. I'm not
connected to the net, and so I have configured lo0 (loopback) as
10.20.3.5, and lo1 as 10.20.3.6.  The machine itself has the IP of
10.20.3.5.

As of now, ftp-ing to 10.20.3.6 or 10.20.3.5 invokes the ftpd of port 21.
What I am trying to do is that when I type "ftp 10.20.3.6", it
automatically connects to port 821 (wu-ftpd) instead of port 21.  I could
do this explicitly with "ftp ftp://10.20.3.6:821", but is it possible to
do it automatically ?  Is that possible ? Do things like NAT etc do
something along these lines ?

Regards.
Rakhesh

PS: Quite often I have seen notations like this: 10.0.0.0/24 or
209.1.2.3/32 etc.  What do they mean (the / part) ?

__
Rakhesh Sasidharan	rakhesh at cse.iitd.ac.in