From owner-freebsd-current Sun May 28 17:54:47 2000 Delivered-To: freebsd-current@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 0EF8537BA29; Sun, 28 May 2000 17:54:38 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id RAA15469; Sun, 28 May 2000 17:54:32 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda15465; Sun May 28 17:54:14 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.9.3/8.9.1) id RAA08748; Sun, 28 May 2000 17:54:13 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdnD8746; Sun May 28 17:54:04 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.10.1/8.9.1) id e4T0s2446726; Sun, 28 May 2000 17:54:02 -0700 (PDT) Message-Id: <200005290054.e4T0s2446726@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdc46719; Sun May 28 17:53:41 2000 X-Mailer: exmh version 2.1.1 10/15/1999 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.0-STABLE X-Sender: cy To: Will Andrews Cc: FreeBSD Stable , FreeBSD Current Subject: Re: ftp(1) breakage w/ passive mode? In-reply-to: Your message of "Sun, 28 May 2000 19:03:27 EDT." <20000528190327.C10345@argon.gryphonsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 28 May 2000 17:53:38 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000528190327.C10345@argon.gryphonsoft.com>, Will Andrews writes: > [ i'm not on -stable, but am on -current ] > > Hi all, > > I'm having trouble with ftp(1) in passive mode on 4-STABLE and 5-CURRENT: > FreeBSD 4.0-STABLE #0: Sat May 27 10:26:43 EDT 2000 > FreeBSD 5.0-CURRENT #1: Fri May 26 04:52:03 EDT 2000 > > <2 5002-0> (18:46:17) [will@radon ~]% ftp ftp://ftp.FreeBSD.org/pub/ > Connected to ftp.freesoftware.com. > [..] > 230 Guest login ok, access restrictions apply. > Remote system type is UNIX. > Using binary mode to transfer files. > 200 Type set to I. > 250 CWD command successful. > 250 CWD command successful. > ftp> ls > 500 'EPSV': command not understood. > 500 'LPSV': command not understood. > Passive mode refused. > ftp> > > However, it works on some servers: > <2 5007-0> (18:49:16) [will@radon /usr/src/usr.bin/ftp]% ftp ftp://ftp.cs.ubc > .ca/ > Connected to ftp.cs.ubc.ca. > [..] > 200 Type set to I. > 250 CWD command successful. > ftp> ls > 227 Entering Passive Mode (142,103,6,49,233,148) > 150 Opening ASCII mode data connection for /bin/ls. > total 28 > drwxrwxr-x 10 root other 512 Jan 17 1996 . > drwxrwxr-x 10 root other 512 Jan 17 1996 .. > lrwxrwxrwx 1 root other 7 Dec 27 1995 bin -> usr/bin > lrwxrwxrwx 1 root other 1 Dec 27 1995 cs -> . > [..] > ftp> quit > > So it seems there's something quite broken in the code. My suspect is > rev 1.25 of ftp.c and associated commits. According to the ftp(1) man page: Please note that if you are connecting to IPv6 ftp server, the program will use EPSV/EPRT pair and LPSV/LPRT pair, in- stead of PASV and PORT. The meaning is the same.) I've removed all IPv6 options from my kernel at home (to circumvent a Kerberos V through pipsecd through NAT problem) and I have no problems with ftp(1). What would make ftp(1) think it has an IPv6 connection? If you have no requirement for IPv6 you may wish to create a custom kernel w/o IPv6 options. Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message