From owner-freebsd-questions Thu Aug 29 6:51:43 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 08FDE37B400 for ; Thu, 29 Aug 2002 06:51:39 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-91-62.in-addr.btopenworld.com [217.39.91.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FCB143E72 for ; Thu, 29 Aug 2002 06:51:38 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17kPhr-000508-00 for freebsd-questions@freebsd.org; Thu, 29 Aug 2002 14:51:31 +0100 Date: Thu, 29 Aug 2002 14:51:30 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: Passive FTP not working on FreeBSD 4.6.2 (Ports) Message-ID: <20020829135130.GF17153@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <200208290845.AA87425230@mail.aplusdata.com> <006201c24f5e$823a63a0$b50d030a@PATRICK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006201c24f5e$823a63a0$b50d030a@PATRICK> User-Agent: Mutt/1.4i X-Scanner: exiscan *17kPhr-000508-00*zuHU2U3RB7g* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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, Aug 29, 2002 at 03:18:01PM +0200, Patrick O'Reilly wrote: > From: "Anthony Abby" > > > Okay, I have played with this over the past several days and I'm all > played out. I can not determine why this is happening because I'm just > too new to FreeBSD. > > Anthony, please set your MUA to wrap lines at about 76 chars... > > > > So, can anyone explain to me why I do not have complete ftp > functionallity on this system here at work? Any idea of where I might > begin to even look to troubleshoot it? > > 2 thoughts occur to me: > 1) Are you sure you are in PASSIVE mode? AFAIK, ftp defaults to ACTIVE, > so you must specify PASSIVE. 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 # cap_mkdb /etc/login.conf to rebuild the capabilities database. Now, each time any user logs in, they should automatically have ${FTP_PASSIVE_MODE} defined, and passive ftp will work. The ftp client program in the base system (the one used by the ports system) looks for ${FTP_PASSIVE_MODE}, and will start up in passive mode if the variable is set to anything but "NO". Ncftp uses a different variable, and I believe uses passive connections by default. > 2) Are you perhaps running IPFW or IPF on your FreeBSD box? Perhaps > that is where the FTP is being blocked - on your FreeBSD box, not your > company firewall. HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message