From owner-freebsd-current Wed Aug 16 4: 5:29 2000 Delivered-To: freebsd-current@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.2.163]) by hub.freebsd.org (Postfix) with ESMTP id A43A237BBF5 for ; Wed, 16 Aug 2000 04:05:23 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.16 #1) id 13P10U-0004OK-00; Wed, 16 Aug 2000 13:05:14 +0200 From: Sheldon Hearn To: Donn Miller Cc: current@FreeBSD.ORG Subject: Re: ftp and /etc/services... In-reply-to: Your message of "Wed, 16 Aug 2000 05:39:33 -0400." Date: Wed, 16 Aug 2000 13:05:14 +0200 Message-ID: <16883.966423914@axl.ops.uunet.co.za> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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