Subject: Re: Mapping ports ?
To: Rakhesh Sasidharan <firstname.lastname@example.org>
From: Alexander Frolkin <email@example.com>
Date: 03/10/2001 20:18:45
> 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.
> 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.
So, 18.104.22.168/32 refers to a host with address 22.214.171.124 and
10.0.0.0/24 refers to a C-class subnet with address 10.0.0.