From owner-freebsd-current Wed Aug 16 10: 9:32 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.enteract.com (mail.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id DE5C537C2B2 for ; Wed, 16 Aug 2000 10:09:16 -0700 (PDT) (envelope-from dscheidt@enteract.com) Received: from shell-1.enteract.com (dscheidt@shell-1.enteract.com [207.229.143.40]) by mail.enteract.com (8.9.3/8.9.3) with SMTP id MAA54058; Wed, 16 Aug 2000 12:09:06 -0500 (CDT) (envelope-from dscheidt@enteract.com) Date: Wed, 16 Aug 2000 12:09:06 -0500 (CDT) From: David Scheidt 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. Yes. One would expect this. ftp(1) uses getservbyname(3), which looks at /etc/services to figure out what port to use. Since you've changed what getservbyname(3) returns to 2121, ftp(1) is trying to connect to the remote machine on port 2121. It's really quite unlikely they are running an ftp daemon there, so your connection is refused. This has absolutely nothing to do with what services your box runs, if inetd or portmap is running, or the phase of the moon. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message