[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mapping ports ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Mapping ports ?
- From: Rakhesh Sasidharan <rakhesh_(_at_)_cse_(_dot_)_iitd_(_dot_)_ernet_(_dot_)_in>
- Date: Sat, 10 Mar 2001 16:48:08 +0530 (IST)
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
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
220.127.116.11/32 etc. What do they exactly mean (the / part) ?