Subject: Re: Mapping ports ?
To: Rakhesh Sasidharan <>
From: Manuel Bouyer <>
List: netbsd-users
Date: 03/11/2001 00:05:28
On Sat, Mar 10, 2001 at 11:44:02PM +0530, Rakhesh Sasidharan wrote:
> Hi,
> 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
>, and lo1 as  The machine itself has the IP of
> As of now, ftp-ing to or invokes the ftpd of port 21.
> What I am trying to do is that when I type "ftp", it
> automatically connects to port 821 (wu-ftpd) instead of port 21.  I could
> do this explicitly with "ftp", but is it possible to
> do it automatically ?  Is that possible ? Do things like NAT etc do
> something along these lines ?

You can do it another way; just bind ftpd to port21, and
wu-ftp to port 21.

in /etc/inetd.conf something liek this should do it: stream  tcp     nowait  root    /path/to/wu-ftpd     wu-ftpd

For the "standalone ftpd", it seems you're not using the stock NetBSD ftpd
(as this one has to be started from inetd) so I can't tell you how to bind it

> Regards.
> Rakhesh
> PS: Quite often I have seen notations like this: or
> etc.  What do they mean (the / part) ?

It's the netmask. /24 means 24 bits (i.e. 

Manuel Bouyer <>