[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mapping ports ?



Hi,

I have a OpenBSD-2.7/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 exactly mean (the / part) ?