From owner-freebsd-questions Thu Aug 29 8:48:45 2002 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 021CA37B406 for ; Thu, 29 Aug 2002 08:48:42 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC04843E6A for ; Thu, 29 Aug 2002 08:48:11 -0700 (PDT) (envelope-from nkinkade@dsl-only.net) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.12.5/8.12.4) with SMTP id g7TFoBdG002764; Thu, 29 Aug 2002 08:50:11 -0700 (PDT) (envelope-from nkinkade@dsl-only.net) Date: Thu, 29 Aug 2002 08:50:06 -0700 From: Nathan Kinkade To: Cc: freebsd-questions@freebsd.org Subject: Re: Passive FTP not working on FreeBSD 4.6.2 (Ports) Message-Id: <20020829085006.66f5dddb.nkinkade@dsl-only.net> In-Reply-To: <200208291010.AA14877010@mail.aplusdata.com> References: <200208291010.AA14877010@mail.aplusdata.com> X-Mailer: Sylpheed version 0.7.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 29 Aug 2002 10:10:39 -0400 "Anthony Abby" wrote: > >You need to set ${FTP_PASSIVE_MODE} in your shell's environment. Set > >it to anything other than "NO". You can either do this from your > >shell dotfiles, or you can modify the setenv directive in > >/etc/login.conf, so the change is available to all users who log in. > >Add this to the setenv line: > > > > ,FTP_PASSIVE_MODE=YES > > > >Make sure the line ends in :\ or it will break. (The "\" must be the > >last character on the line). Save your changes, then do > > > > > I just checked and it's already set to YES, and the line ends in ":\" > too. I am not running ipfw, so this is getting more bewildering as I > go along. I instaleld BSD at home exactly how I installed it here at > work. Ports (and ftp) works from home, but does not here at work!! Try to launch ftp with the -d switch. This simply prints out the FTP clients requests and servers FTP responses. It can be useful in determining at which stage the problem is occuring. For example, `ftp -d ftp.freebsd.org`. Also, try launching a protocol ananlyzer like ethereal (its in the ports collection) to see what is going on. Launch ethereal and capture the Windows FTP session, then capture the FreeBSD FTP session. What is the difference? In PASSIVE mode, what port number does the Windows client request? What port number does the FreeBSD client request. Is it possible that your firewall is blocking the high port number range that FreeBSD uses by default in PASSIVE mode, but not the high port number range that the Windows is using? Nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message