Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2000 13:05:14 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Donn Miller <dmmiller@cvzoom.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: ftp and /etc/services... 
Message-ID:  <16883.966423914@axl.ops.uunet.co.za>
In-Reply-To: Your message of "Wed, 16 Aug 2000 05:39:33 -0400." <Pine.BSF.4.21.0008160535340.9970-100000@acs-24-154-11-41.zoominternet.net> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 16 Aug 2000 05:39:33 -0400, Donn Miller wrote:

> This is on a recently-built -current box.  When I try to move ftp from
> port 21 to port 2121 in /etc/services, I get a "Connection
> refused" message when I try to login to anonymous ftp sites.

Sounds like ftp(1) is doing its job -- it defaults to using the ``ftp''
port, as resolved using the /etc/services file.  If you insist on
messing around withy /etc/services, then you can specify a port number
to ftp(1) on the command line.  See the -P option described in the
ftp(1) manual page.

If you're messing around with /etc/services just because you want to run
ftpd(8) on a non-standard port, then I think you're going about it the
wrong way.  You should rather add a new service to /etc/services, called
something like ``ftp-weird'', and then configure inetd(8) to launch
ftpd(8) to handle connections to ``ftp-weird''.

It's a little odd that ftpd(8) can be started and run as a listening
daemon, and yet provides no option for specifying the port on which it
should listen.

Ciao,
Sheldon.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16883.966423914>