From owner-freebsd-current Wed Aug 16 12:32:27 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.targetnet.com (mail.targetnet.com [207.245.246.3]) by hub.freebsd.org (Postfix) with ESMTP id 01D0E37C210 for ; Wed, 16 Aug 2000 12:26:11 -0700 (PDT) (envelope-from james@targetnet.com) Received: from james by mail.targetnet.com with local (Exim 3.02 #1) id 13P8Pg-000Ix1-00; Wed, 16 Aug 2000 14:59:44 -0400 Date: Wed, 16 Aug 2000 14:59:44 -0400 From: James FitzGibbon To: Donn Miller Cc: current@freebsd.org Subject: Re: ftp and /etc/services... Message-ID: <20000816145943.B69261@targetnet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i In-Reply-To: Organization: Targetnet.com Inc. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Donn Miller (dmmiller@cvzoom.net) [000816 14:43]: > 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. The name to port mapping for a service is used by two processes on your system: the ftpd daemon and the ftp client. Modifying the port in /etc/services did move the daemon, but it also makes the client look up the new port when it wants to establish an outbound connection. Possible solutions: 1. If your FTP daemon can run in standalone mode, it may offer an option to change the port it listens on. 2. You can create an alternate service name with the new port in /etc/services ("myftp" for example), then change the entry in inetd.conf to make the daemon run on the alternate port. -- j. James FitzGibbon james@targetnet.com Targetnet.com Inc. Voice/Fax +1 416 306-0466/0452 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message