From owner-freebsd-questions Fri Jan 29 16:26:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA10144 for freebsd-questions-outgoing; Fri, 29 Jan 1999 16:23:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from elmls02.ce.mediaone.net (elmls02.ce.mediaone.net [24.131.128.27]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA10139 for ; Fri, 29 Jan 1999 16:23:01 -0800 (PST) (envelope-from anthony@enteract.com) Received: from enteract.com (d152-173.ce.mediaone.net [24.131.152.173]) by elmls02.ce.mediaone.net (8.8.7/8.8.7) with ESMTP id SAA15996; Fri, 29 Jan 1999 18:22:51 -0600 (CST) Message-ID: <36B24F9A.AC6AC939@enteract.com> Date: Fri, 29 Jan 1999 18:17:30 -0600 From: Anthony Kim Organization: deus ex machina X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: junkmale@xtra.co.nz CC: freebsd-questions@FreeBSD.org Subject: Re: Passive FTP References: <19990128104117.WGEO678125.mta2-rme@wocker> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG Thanks Dan. This was exactly the problem. Adding the FETCH_BEFORE_ARGS line to /etc/make.conf is a nice touch. BTW, good work on your diary site. Dan Langille wrote: > > On 28 Jan 99, at 3:06, Anthony Kim wrote: > > > I have a 2.2.8-STABLE box running IPFW & NATD. > > > > I have FTP_PASSIVE_MODE= YES in /etc/make.conf on my workstation > > (4.0-CURRENT) and am successfully using passive mode ftp with ncftp and > > cvsup. However, when I do a make install in /usr/ports/dir/port-name I do > > not get a successful transfer and get a logged src TCP port 20 attempt in > > syslog. > > > > I thought uncommenting the above in make.conf would do it but it has > > not. Fetch has a -p option to use passive mode. How do I get the > > convenient use of "make install && make clean" in ports to work through > > ipfw without adding "allow tcp from any 20..."? Please save me from > > downloading all the src by hand! > > If I recall correctly, you need to do more than just that. The following > is taken from http://www.freebsddiary.com/freebsd/make.htm. You need to > do more than just the above. I believe a PR has been lodged for this > issue. > > If you get the following message when you use fetch, then I suspect you > are behind a > firewall: > > fetch: ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//donkey- > 0.5.tar.gz: > FTP error: fetch: Can't open data connection >> Couldn't fetch > it - please > try to retrieve this >> port manually into /usr/ports/distfiles/ > and try > again. > > *** Error code 1 > > If you are encountering an error message which is similar to the > above, then try this simple > test: > > fetch -p > > If this succeeds, then the following lines added to /etc/make.conf > should solve the > problem: > > FTP_PASSIVE_MODE=YES > FETCH_BEFORE_ARGS=-p > > -- > Dan Langille > The FreeBSD Diary > http://www.FreeBSDDiary.com/freebsd -- SYSADMIN(1) sysadmin takes care of everything, is generally harangued, must be supplied with coffee, chocolate, and alcohol in order to function properly, cannot be exposed to direct sunlight, and must not be allowed to have a life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message