Subject: Mapping ports ?
To: netbsd-users@NetBSD.org <firstname.lastname@example.org>
From: Rakhesh Sasidharan <email@example.com>
Date: 03/10/2001 23:44:02
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
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 ?
PS: Quite often I have seen notations like this: 10.0.0.0/24 or
22.214.171.124/32 etc. What do they mean (the / part) ?
Rakhesh Sasidharan rakhesh at cse.iitd.ac.in