From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 05:53:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FB1C16A4CE for ; Wed, 28 Apr 2004 05:53:01 -0700 (PDT) Received: from sys15.mail.msu.edu (sys15.mail.msu.edu [35.9.75.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31AE543D68 for ; Wed, 28 Apr 2004 05:53:01 -0700 (PDT) (envelope-from bushous2@msu.edu) Received: from [198.70.64.112] (helo=msu.edu) by sys15.mail.msu.edu with asmtp (Exim 4.24 #37) (TLSv1:AES256-SHA:256) id 1BIoYe-0000xS-Fy; Wed, 28 Apr 2004 08:53:00 -0400 Message-ID: <408FA91B.9000908@msu.edu> Date: Wed, 28 Apr 2004 08:52:43 -0400 From: Micah Bushouse User-Agent: Mozilla Thunderbird 0.5 (X11/20040411) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason Suplizio References: <00c701c42cf0$03920190$66847cce@homepc> In-Reply-To: <00c701c42cf0$03920190$66847cce@homepc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus: None found by Clam AV cc: freebsd-questions@freebsd.org Subject: Re: ProFTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 12:53:01 -0000 Jason Suplizio wrote: > Greetings, > Please help: I've spent a good 4-5 hours trying to get ProFTP up and running on my fresh FreeBSD 5.1 install - during which I have read everything that I could get my hands/eyes on and tried every trick I could find. Essentially, I am trying to set up ftp accounts for 3 users, each with there own unique username/password login - which are working as verified by ssh - to use as a java servlet dev box. > > The problem: I can not establish an FTP connection to port 21. When it appears that I have an ftp connection, there is no directory listing nor a list of the remote files. I have a small firewall (built-in to my router), and have opened up ports 20 & 21. At one point I got a "PAM(username) authentication error" - but everything looked good (to my eyes) in the /etc/pam.d/ftp & ftpd files. > > I have the server running in standalone mode and is not enabled as inetd service: > > [suplizio@dakota:~] $ ps -auxf | grep ftpd > nobody 662 0.0 0.7 2144 1672 ?? Ss 11:22PM 0:00.01 proftpd: (accepting connections) (proftpd) > > [suplizio@dakota:~] $ head /etc/inetd.conf > # $FreeBSD: src/etc/inetd.conf,v 1.61 2002/11/12 17:31:11 obrien Exp $ > # > # Internet server configuration database > # > # Define *both* IPv4 and IPv6 entries for dual-stack support. > # To disable a service, comment it out by prefixing the line with '#'. > # To enable a service, remove the '#' at the beginning of the line. > # > #ftp stream tcp nowait root /usr/local/libexec/proftpd proftpd > > [suplizio@dakota:~] $ tail /var/log/messages > Apr 27 23:22:05 dakota sudo: suplizio : TTY=ttyp0 ; PWD=/usr/local/libexec ; USER=root ; COMMAND=./proftpd start > Apr 27 23:22:05 dakota proftpd[662]: dakota.suplizio.net - ProFTPD 1.2.8 (stable) (built Tue Apr 27 12:30:22 PDT 2004) standalone mode STARTUP > Apr 27 23:27:48 dakota proftpd[665]: dakota.******.*** (************) - FTP no transfer timeout, disconnected > Apr 27 23:33:51 dakota proftpd[680]: dakota.******.*** (************) - FTP no transfer timeout, disconnected > I am running the default /usr/local/etc proftpd.conf file - which looks something like this: > > ServerName "ProFTPD Default Installation" > ServerType standalone > DefaultServer on > > Port 21 > > Umask 022 > > MaxInstances 30 > > User nobody > Group nogroup > > > AllowOverwrite on > > > > Thanks in advance for reading thru this! > Jason > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > If neither of the previous replies to your post work, let me tell you about how I've had the limbo connection problem before... If you disregard the PAM error you got for the moment, if you're trying to connect to the FTP server from outside your router/firewall and it's giving you these halfway limbo connections, it's the firewall. http://www.obfuscation.org/ipf/ipf-howto.txt search for "coping with ftp" Although it's written for IPFILTER, you can get the general idea. ~Micah