From handy@lambic.physics.montana.edu  Sun Jun 25 23:39:07 2000
Return-Path: <handy@lambic.physics.montana.edu>
Received: from lambic.physics.montana.edu (lambic.physics.montana.edu [153.90.192.128])
	by hub.freebsd.org (Postfix) with ESMTP id ADB9237BA78
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jun 2000 23:39:03 -0700 (PDT)
	(envelope-from handy@lambic.physics.montana.edu)
Received: (from handy@localhost)
	by lambic.physics.montana.edu (8.9.3/8.9.3) id AAA13805;
	Mon, 26 Jun 2000 00:38:38 -0600 (MDT)
	(envelope-from handy)
Message-Id: <200006260638.AAA13805@lambic.physics.montana.edu>
Date: Mon, 26 Jun 2000 00:38:38 -0600 (MDT)
From: handy@physics.montana.edu
Sender: handy@lambic.physics.montana.edu
Reply-To: handy@physics.montana.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: ftp client doesn't fall back to PASV
X-Send-Pr-Version: 3.2

>Number:         19513
>Category:       bin
>Synopsis:       ftp client doesn't fall back to PASV
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 25 23:40:02 PDT 2000
>Closed-Date:    Wed Jul 19 05:30:20 PDT 2000
>Last-Modified:  Wed Jul 19 05:34:51 PDT 2000
>Originator:     Brian Handy
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
MSU - Bozeman
>Environment:
This is using FreeBSD 4.0-STABLE, from sources probably CVSupped on 
the following date:

FreeBSD lambic.physics.montana.edu 4.0-STABLE FreeBSD 4.0-STABLE #27: Fri Jun  9 14:06:49 MDT 2000     handy@lambic.physics.montana.edu:/usr/src/sys/compile/HANDY  i386

>Description:
From the keyboard of DG:  "Broken ftp client. It needs to fall back to PASV."


>How-To-Repeat:

	ftp ftp://ftp.freebsd.org/
	ls

You'll get:

	500 'EPSV': command not understood.
	500 'LPSV': command not understood.
	Passive mode refused.

>Fix:



>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@sunbay.com>
To: handy@physics.montana.edu
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/19513: ftp client doesn't fall back to PASV
Date: Mon, 26 Jun 2000 10:21:28 +0300

 On Mon, Jun 26, 2000 at 12:38:38AM -0600, handy@physics.montana.edu wrote:
 > 
 > >How-To-Repeat:
 > 
 > 	ftp ftp://ftp.freebsd.org/
 > 	ls
 > 
 > You'll get:
 > 
 > 	500 'EPSV': command not understood.
 > 	500 'LPSV': command not understood.
 > 	Passive mode refused.
 > 
 I am not sure that this is the case but there was a commit that might be
 relevant:
 
 : ume         2000/06/17 11:43:56 PDT
 :   Modified files:        (Branch: RELENG_4)
 :     usr.bin/ftp          extern.h fetch.c ftp.c
 :   Log:
 :   MFC: Make sure to use native IPv4 address, even if getaddrinfo()
 :   returns IPv4 mapped IPv6 address.
 :   Revision  Changes    Path
 :   1.10.2.2  +2 -1      src/usr.bin/ftp/extern.h
 :   1.12.2.1  +2 -1      src/usr.bin/ftp/fetch.c
 :   1.28.2.2  +37 -2     src/usr.bin/ftp/ftp.c
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 

From: Salvo Bartolotta <bartequi@inwind.it>
To: handy@physics.montana.edu, FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: bin/19513: ftp client doesn't fall back to PASV
Date: Mon, 26 Jun 2000 10:02:35 GMT

 >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
 
 On 6/26/00, 7:38:38 AM, handy@physics.montana.edu wrote regarding=20
 bin/19513: ftp client doesn't fall back to PASV:
 
 
 > >Number:         19513
 > >Category:       bin
 > >Synopsis:       ftp client doesn't fall back to PASV
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sun Jun 25 23:40:02 PDT 2000
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Brian Handy
 > >Release:        FreeBSD 4.0-STABLE i386
 > >Organization:
 > MSU - Bozeman
 > >Environment:
 > This is using FreeBSD 4.0-STABLE, from sources probably CVSupped on
 > the following date:
 
 > FreeBSD lambic.physics.montana.edu 4.0-STABLE FreeBSD 4.0-STABLE #27: =
 
 Fri Jun  9 14:06:49 MDT 2000    =20
 handy@lambic.physics.montana.edu:/usr/src/sys/compile/HANDY  i386
 
 > >Description:
 > From the keyboard of DG:  "Broken ftp client. It needs to fall back to=
 =20
 PASV."
 
 
 > >How-To-Repeat:
 
 >       ftp ftp://ftp.freebsd.org/
 >       ls
 
 > You'll get:
 
 >       500 'EPSV': command not understood.
 >       500 'LPSV': command not understood.
 >       Passive mode refused.
 
 > >Fix:
 
 
 
 Dear Sir or Madam,
 
 I run FreeBSD 3.4-S, 4.0-S and 5-CURRENT; they were built from sources=20
 as of  June 11, 2000.
 
 I configured (stateful) closed firewalls for all of them; the=20
 firewalls in question are *paranoidly* restrictive.
 
 I fixed that "problem" by simply specifying the FTP_PASSIVE_MODE=20
 environment variable under 3.4-S; by specifying FTP_PASSIVE_MODE=3DNO in=
 =20
 /etc/login.conf under -CURRENT as well as under 4.0-STABLE.
 
 Needless to say, I can cvsup as well as installing ports ("make fetch"=20
 works) and ftping from all over the world.
 
 Yours faithfully,
 Salvo Bartolotta
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Wed Jul 19 05:30:20 PDT 2000 
State-Changed-Why:  
This was already fixed. 

src/usr.bin/ftp/extern.h rev 1.10.2.2 
src/usr.bin/ftp/fetch.c  rev 1.12.2.1 
src/usr.bin/ftp/ftp.c    rev 1.28.2.2 

Thank you for your report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19513 
>Unformatted:
