Subject: Re: Mapping ports ?
To: Alexander Frolkin <email@example.com>
From: Rakhesh Sasidharan <firstname.lastname@example.org>
Date: 03/11/2001 14:42:19
On Sat, 10 Mar 2001, Alexander Frolkin wrote:
> > 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 ?
> Try changing the ftp line in /etc/services from 21/tcp to 821/tcp.
Hmm, that's the catch. 10.20.3.5 and 10.20.3.6 are both the same
machines. Just that the former is on lo0, and the later on lo1. Changing
the line in /etc/services would affect 10.20.3.5 also, which I don't want
> > PS: Quite often I have seen notations like this: 10.0.0.0/24 or
> > 220.127.116.11/32 etc. What do they mean (the / part) ?
> /32 refers to a netmask of 255.255.255.255 (0xffffffff), i.e. all 32
> bits are `1'. /24 refers to 255.255.255.0, etc.
Thanks a lot for that.
Rakhesh Sasidharan rakhesh at cse.iitd.ac.in