Subject: Re: How to force pkgsrc FTP to use active?
To: Xavier HUMBERT <>
From: Frederick Bruckman <>
List: tech-pkg
Date: 06/04/2002 21:56:11
On Wed, 5 Jun 2002, Xavier HUMBERT wrote:

> In message <20020604214724.GC7307@darkstar.local>,
> Julio Merino wrote:
> |Quoting /usr/pkgsrc/mk/
> |
> |# Use ftp(1) in passive mode, for use behind filtering firewalls.
> |# (Set by default in ftp(1) in NetBSD-current)
> |# Possible: defined, not defined
> |# Default: not defined
> |
> |It's beeing defined in current by default... so you may need to
> |*undefine* (not set it to null) the variable in mk.conf, although I do
> |not remember how to do it in Makefiles (well, I also don't remember if
> |it's possible).

No, it says the default is *not defined*, which is true. All it would
do, in any case, is add "-p" to the "ftp" command line; but "-p" is a
no-op, as passive-mode-first has been the default for some time now.

> I second David & Frederick, it never worked for me
> - in mk.confg
> - in the environment
> - in ~/.netrc
> I just had to allow active ftp thru my firewall...

David was asking how to use active mode (no reason given)...

> Or wait X seconds for falling back in active mode.

Obviously, the problem is with your firewall. "ftp" is working as
documented. Are you logging blocked packets?