Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2002 14:51:30 +0100
From:      Daniel Bye <dan@slightlystrange.org>
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>
In-Reply-To: <006201c24f5e$823a63a0$b50d030a@PATRICK>
References:  <200208290845.AA87425230@mail.aplusdata.com> <006201c24f5e$823a63a0$b50d030a@PATRICK>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 29, 2002 at 03:18:01PM +0200, Patrick O'Reilly wrote:
> From: "Anthony Abby" <anthonyabby@mail.aplusdata.com>
> 
> > 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...
> 
> <snip>
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020829135130.GF17153>