Subject: kern/25810: ipf4 ftp proxy has problems with long 221- lines
To: None <gnats-bugs@gnats.NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 06/03/2004 23:01:47
>Number:         25810
>Category:       kern
>Synopsis:       ipf4 ftp proxy has problems with long 221- lines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 03 21:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Manuel Bouyer
>Release:        NetBSD 2.0_BETA, includes the last ipf-related pullups
>Organization:
>Environment:
System: NetBSD chassiron.antioche.eu.org 2.0_BETA NetBSD 2.0_BETA (CHASSIRON) #2: Mon May 31 17:22:50 CEST 2004 bouyer@pop.lip6.fr:/local/pop1/bouyer/tmp/sparc/obj/local/pop1/bouyer/netbsd-2-0/src/sys/arch/sparc/compile/CHASSIRON sparc
Architecture: sparc
Machine: sparc
>Description:
	This sparc box is running as ipf/ipnat gateway.
	There is a minor problem since I upgraded to 2.0_BETA with the ipnat
	ftp proxy:
rochebonne:~> ftp -a asim.lip6.fr
Connected to asim.lip6.fr.
220-
    
            Bienvenue au departement [A]rchitecture des
                                     [S]ystemes
                                     [I]ntegres et
                                     [M]icro-electronique
    
                                  du [L]aboratoire
                                  d' [I]nformatique
                                  de [P]aris
                                     [6]
    
220 asim.lip6.fr FTP server (NetBSD-ftpd 20020615) ready.
331 Guest login ok, type your name as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221-
[hang here, and after some time]
421 Service not available, remote server timed out. Connection closed
After the quit I should get:
221-
    Data traffic for this session was 0 bytes in 0 files.
    Total traffic for this session was 902 bytes in 0 transfers.
221 Thank you for using the FTP service on asim.lip6.fr.

With another ftp server:
rochebonne:~> ftp -a ftp.lip6.fr
Connected to nephtys.lip6.fr.
220-
220-        -- BIENVENUE SUR LE NOUVEAU SERVEUR FTP LIP6/JUSSIEU --
220-Utilisez le compte `anonymous' avec votre adresse e-mail comme mot de passe
220-    Merci de signaler les problèmes éventuels à ftpmaint@lip6.fr.
220-
220-    -- WELCOME ON THE NEW LIP6/JUSSIEU FTP SERVER --
220-    Please login as `anonymous' with your e-mail address as password
220-            Please report problems to ftpmaint@lip6.fr.
220-
220-
220 ftp.lip6.fr FTP server ready.
331 Guest login ok, send your complete e-mail address as password.
[...]
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 1842 bytes in 0 transfers.
221-Thank you for using the FTP service on ftp.lip6.fr.
221 Goodbye.

I don't know what is the root cause - the \n in the 221- anserw, or the
lenght of the anserw.

>How-To-Repeat:
	ftp to asim.lip6.fr, or ftp.fr.netbsd.org, from a box behind a
	2.0_BETA NAT box.
>Fix:
	Unkown
>Release-Note:
>Audit-Trail:
>Unformatted: