From owner-freebsd-questions Sat Sep 29 21:37:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 87EC037B406 for ; Sat, 29 Sep 2001 21:37:44 -0700 (PDT) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id WAA84277; Sat, 29 Sep 2001 22:37:34 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sat, 29 Sep 2001 22:37:34 -0600 (CST) From: Ryan Thompson To: Jim Freeze Cc: questions@FreeBSD.ORG Subject: Re: How to get FTP working for 4.4R In-Reply-To: <20010930001726.A523@rabbit.lxintn1.ky.home.com> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jim Freeze wrote to questions@FreeBSD.ORG: > Hi: > > I recently installed 4.4R and setup the box as a gateway. I have a > firewall, but have left it open to debug ftp. I have enabled ftp in > /etc/inetd.conf and ftp exists in /etc/services. I also restarted > inetd, but still no ftp. Have I missed something? Does the ftpd binary exist? Is it executable? If what you're saying is true, and you have restarted (SIGHUP) inetd, and TCP/IP is working correctly on your machine, then a useful thing to do would be to look in logs and determine if there are any fatal errors when attempting to start ftpd instances. Is there anything else bound to port 21 for any reason? When you ftp from localhost, does it work? If so, ftpd itself is not the problem. Otherwise, what does "no ftp" mean? Does the socket connect, timeout, or refuse the connection? Or do you actually connect and exchange data, but the ftpd application isn't working correctly? If all else fails, some relevant tcpdump output, and sockstat | grep '\.21' might be helpful. Just some thoughts... > Below are the detials: > > cat /etc/services > ... > ftp-data 20/tcp #File Transfer [Default Data] > ftp-data 20/udp #File Transfer [Default Data] > ftp 21/tcp #File Transfer [Control] > ftp 21/udp #File Transfer [Control] > ... > > cat /etc/inetd.conf > ... > ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l > ... > > Thanks > > Jim > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message