From owner-freebsd-questions Fri Jan 8 21:08:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA13163 for freebsd-questions-outgoing; Fri, 8 Jan 1999 21:08:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mta1-rme.xtra.co.nz (203-96-92-1.ipnets.xtra.co.nz [203.96.92.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA13158 for ; Fri, 8 Jan 1999 21:08:23 -0800 (PST) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([210.55.210.87]) by mta1-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990109050717.KQXM682101.mta1-rme@wocker> for ; Sat, 9 Jan 1999 18:07:17 +1300 From: "Dan Langille" Organization: The FreeBSD Diary To: freebsd-questions@FreeBSD.ORG Date: Sat, 9 Jan 1999 18:08:29 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: fetch in passive mode Reply-to: junkmale@xtra.co.nz X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990109050717.KQXM682101.mta1-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was installing tcp_wrapper. So I did this: [root@ns:/usr/ports/security/donkey] # make >> donkey-0.5.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://ftp.aist- nara.ac.jp/pub/Security/tool/donkey/. fetch: ftp://ftp.aist-nara.ac.jp/pub/Security/tool/donkey/donkey- 0.5.tar.gz: FTP error: fetch: Can't open data connection >> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//. 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 OK. That tells me it's in passive mode. Now I could just drop the firewall rules and do it again, but that's not good enough. A read of man fetch tells about an environment variable: "FTP_PASSIVE_MODE force the use of passive mode FTP". So I did this: "set FTP_PASSIVE_MODE=Y" and tried again. same errors. A check of the mailing list archives found a message (http://www.freebsd.org/cgi/getmsg.cgi?fetch=528093+530443+/usr/local/www/d b/text/1996/freebsd-questions/19960901.freebsd-questions) which indicates that fetch.c doesn't check that environment variable. Any suggestions on how to force fetch to do ftp in passive mode that I can get my stuff through the firewall? -- 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