From owner-freebsd-current Wed Aug 16 10:47:17 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.internet.dk (ns.internet.dk [194.19.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 9777C37C542 for ; Wed, 16 Aug 2000 10:47:10 -0700 (PDT) (envelope-from leifn@neland.dk) Received: (from uucp@localhost) by ns.internet.dk (8.9.3/8.9.3) with UUCP id TAA70940; Wed, 16 Aug 2000 19:47:04 +0200 (CEST) (envelope-from leifn@neland.dk) Received: from localhost (localhost [127.0.0.1]) by arnold.neland.dk (8.11.0/8.9.3) with ESMTP id e7GHkj560797; Wed, 16 Aug 2000 19:46:51 +0200 (CEST) (envelope-from leifn@neland.dk) Date: Wed, 16 Aug 2000 19:46:40 +0200 (CEST) From: Leif Neland To: Donn Miller Cc: current@FreeBSD.ORG Subject: Re: ftp and /etc/services... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 16 Aug 2000, 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. Should ftp > be this dependent on /etc/services? What if you _have_ no services > running, e.g. inetd & portmap? Returning ftp to port 21 in services fixes > this problem. I posted earlier about my problems with ftp recently. > When you change ftp in /etc/services to 2121, you tell your machine, that ftp by default is running on port 2121 all over the world. What you want to do is _add_ a new service, eg spcl_ftp on port 2121 in /etc/services, and then in /etc/inetd.conf replace the keyword ftp with spcl_ftp: spcl_ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l If you have a standalone ftp-daemon (not invoked by inetd), you probably have a command-line option for specifying the port you want it to listen on. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message