Subject: Re: ipnat ftp proxy: any news?
To: None <current-users@netbsd.org>
From: Sean Davis <dive-nb@endersgame.net>
List: current-users
Date: 09/01/2004 18:05:47
On Wed, Sep 01, 2004 at 07:40:46PM +0000, Matthias Scheler wrote:
> In article <d4b0fe9b04090111557c915dfb@mail.gmail.com>,
> 	Sean Davis <erplefoo@gmail.com> writes:
> > Is anyone currently working on fixing the ftp proxy functionality in
> > ipnat on sparc/sparc64?
> [...]
> > ... and noticed that it's still broken... outgoing ftp sessions (passive)
> > hang, ...
> 
> The ftp proxy only handles active and not passive connections. So you
> are apparently experiencing a differnt problem.

The same thing happens with active FTP. Only since switching to a sparc64
NAT machine, mind you.

dive@eros:/tmp % ftp -A ftp.netbsd.org
Trying 2001:4f8:4:7:2e0:81ff:fe21:6563...
Trying 204.152.190.13...
Connected to ftp.netbsd.org.
220 ftp.NetBSD.org FTP server (tnftpd 20040810) ready.
Name (ftp.netbsd.org:dive): ftp
331 Guest login ok, type your name as password.
Password:
230-
    The NetBSD Project FTP Server located in Redwood City, CA, USA
<snip>
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub
250 CWD command successful.
ftp> ls
500 Illegal EPRT command rejected
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 1
drwxrwxr-x  21 234  netbsd  1024 Apr 16 17:18 NetBSD
drwxr-xr-x   3 0    wheel    512 Apr 16 17:01 NetBSD-cvs
drwxr-xr-x   6 234  netbsd   512 Jul  1 15:11 pkgsrc
drwxrwxr-x   9 234  netbsd   512 Apr  3 05:57 sup
226 Transfer complete.
ftp> quit
221-

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

It hangs at the quit command, whether I use active or passive. Different ftp
servers around the world hang in different places, but the only connection
problems I'm having all involve ftp. I am therefore inclined to suspect the
ftp proxy code in ipnat. If you have a more likely suggestion as to where
the problem is, I'm all ears.

-Sean

--
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!