From owner-freebsd-questions Thu Jan 28 02:40:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24353 for freebsd-questions-outgoing; Thu, 28 Jan 1999 02:40:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mta2-rme.xtra.co.nz (mta.xtra.co.nz [203.96.92.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24347 for ; Thu, 28 Jan 1999 02:40:25 -0800 (PST) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([210.55.210.87]) by mta2-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990128104117.WGEO678125.mta2-rme@wocker>; Thu, 28 Jan 1999 23:41:17 +1300 From: "Dan Langille" Organization: The FreeBSD Diary To: Anthony Kim Date: Thu, 28 Jan 1999 23:40:23 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Passive FTP Reply-to: junkmale@xtra.co.nz CC: freebsd-questions@FreeBSD.ORG In-reply-to: <36B02878.F90BFB6F@enteract.com> X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990128104117.WGEO678125.mta2-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message