NetBSD Problem Report #24004

Received: (qmail 22834 invoked by uid 605); 6 Jan 2004 15:57:20 -0000
Message-Id: <20040106155719.8CA0C11153@narn.netbsd.org>
Date: Tue,  6 Jan 2004 15:57:19 +0000 (UTC)
From: mzawadzk@cs.stevens-tech.edu
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: mzawadzk@cs.stevens-tech.edu
To: gnats-bugs@gnats.NetBSD.org
Subject: epsv4 default option prevents ftp from downloading files during the installation
X-Send-Pr-Version: www-1.0

>Number:         24004
>Category:       install
>Synopsis:       epsv4 default option prevents ftp from downloading files during the installation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 06 15:58:03 +0000 2004
>Closed-Date:    
>Last-Modified:  Sun Jan 25 14:59:00 +0000 2004
>Originator:     Marek Zawadzki
>Release:        1.6.1
>Organization:
>Environment:
not relevant(?)
It was a default environment set for floppy/ftp based installation
>Description:
I installed NetBSD from 2 flopies and via FTP and I had to exit the installer and create '.netrc' file with 'epsv4 off' init macro - otherwise it wouldn't download any file from any mirror.  It might be the (local) firewall thing, I guess (but other ftp transfers work ok).
I think this is the EPSV and EPRT command which some firewalls don't deal with properly and which is used by default by sysinst. It has an impact on creating data connection.
The epsv4 issue is described in NetBSD's ftp(1). Even the macro example in this manual is about epsv4. Plus 'EXTENDED PASSIVE MODE AND FIREWALLS' section describes the situation I encountered as well.
>How-To-Repeat:
By doing a basic install via FTP.
>Fix:
The sysinst should somehow check if ftp is able to download any file with epsv4 turned on. If not, epsv4 should be turned off.
>Release-Note:
>Audit-Trail:

From: Bernd Ernesti <veego@netbsd.org>
To: mzawadzk@cs.stevens-tech.edu, lukem@netbsd.org
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: install/24004: epsv4 default option prevents ftp from downloading files during the installation
Date: Sun, 25 Jan 2004 15:57:56 +0100

 On Tue, Jan 06, 2004 at 03:57:19PM +0000, mzawadzk@cs.stevens-tech.edu wrote:
 > >Description:
 > I installed NetBSD from 2 flopies and via FTP and I had to exit the installer and create '.netrc' file with 'epsv4 off' init macro - otherwise it wouldn't download any file from any mirror.  It might be the (local) firewall thing, I guess (but other ftp transfers work ok).
 > I think this is the EPSV and EPRT command which some firewalls don't deal with properly and which is used by default by sysinst. It has an impact on creating data connection.
 > The epsv4 issue is described in NetBSD's ftp(1). Even the macro example in this manual is about epsv4. Plus 'EXTENDED PASSIVE MODE AND FIREWALLS' section describes the situation I encountered as well.

 That maybe be a problem with your firewall, but there is at least one package where
 you can't fetch it from the master side, even without your own firewall:

 pkgsrc/textproc/icu

 > ftp ftp://www-126.ibm.com/pub/icu/
 Connected to www-126.southbury.usf.ibm.com.
 220 swg3ws026 FTP server (Version wu-2.6.2-11.73.1) ready.
 331 Guest login ok, send your complete e-mail address as password.
 230-The response 'bernd@' is not valid
 230-Next time please use your e-mail address as your password
 230-   for example: joe@port-212-202-53-214.reverse.qsc.de
 230-It is currently Sun Jan 25 09:48:53 2004.
 230-
 230-You are user 3 of unlimited maximum in this class.
 230-
 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> dir
 229 Entering Extended Passive Mode (|||7293|)
 200 EPRT command successful.

 421 Service not available, remote server timed out. Connection closed
 ftp> 

 Using active ftp also didn't work.

 It works fine if I first use epsv4 to turn it off:

 ftp> epsv4
 EPSV/EPRT on IPv4 off.
 ftp> dir
 227 Entering Passive Mode (129,33,28,113,168,106)
 150 Opening ASCII mode data connection for directory listing.
 total 184
 drwxrwxr-x   2 1230     1154         4096 Mar 19  2003 1.3
 drwxrwxr-x   2 1230     1154         4096 Mar 19  2003 1.3.1
 drwxrwxr-x   2 1230     1154         4096 Mar 19  2003 1.4
 [..]

 Bernd

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.