From owner-freebsd-questions@FreeBSD.ORG Mon Nov 20 23:23:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6278F16A47E for ; Mon, 20 Nov 2006 23:23:43 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4C543D81 for ; Mon, 20 Nov 2006 23:22:42 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id C64FE1A3C19; Mon, 20 Nov 2006 15:22:41 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EF9A45424D; Mon, 20 Nov 2006 18:22:27 -0500 (EST) Date: Mon, 20 Nov 2006 18:22:27 -0500 From: Kris Kennaway To: Paul Lathrop Message-ID: <20061120232227.GA50543@xor.obsecurity.org> References: <45623692.7040308@squaretrade.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <45623692.7040308@squaretrade.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: FTP_PASSIVE_MODE stumper X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2006 23:23:43 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 20, 2006 at 03:13:22PM -0800, Paul Lathrop wrote: > I've been banging my head against this for 2 hours. >=20 > My network lives behind an OpenBSD firewall which uses ftp-proxy to=20 > allow active mode FTP connections out to the world. Unfortunately,=20 > passive mode FTP just does not work in our current firewall configuration. >=20 > I'm trying to install some ports on my shiny new FreeBSD 6.1 server.=20 > Unfortunately, the fetch operations time out because they are attempting= =20 > to use passive mode FTP. So, I consult the man pages and discover that=20 > fetch obeys the FTP_PASSIVE_MODE environment variable. I check the=20 > environment and see that FTP_PASSIVE_MODE=3DYES! Excellent! The fetch(3)= =20 > man page says I need to set this to 'no', so I do so and procedd to=20 > install... >=20 > Still times out. >=20 > Hrm. Okay, try 'NO'. No dice. Try removing it from login.conf, running=20 > cap_mkdb, and logging out then back in. Nope, that still doesn't do it.= =20 > Try *changing* it to NO in login.conf, running cap_mkdb, logging out and= =20 > back in. Nope. >=20 > Set it by hand in the shell. Nope. >=20 > Set it in /etc/make.conf. Still not working. >=20 > The only conclusion I can come to is that fetch does not, in fact, obey= =20 > this environment variable. No, it's being requested explicitly by bsd.port.mk in the fetch command line to deal with certain configurations that do not set the env variable. > So, how does one install software from ports in this environment? Override the FETCH_CMD variable in /etc/make.conf, see bsd.port.mk. Kris --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFYjizWry0BWjoQKURAkO0AKDzrPcFnJHrp0FLM/I2NyrVej2B3wCeO/eP STsvBdwML03e1+eItK9eVKY= =RAAq -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--