Subject: Re: fussy passive ftp?
To: David Maxwell <david@vex.net>
From: None <itojun@iijlab.net>
List: current-users
Date: 10/11/2000 14:28:26
>>But 1.4.2 and 1.5ALPHA give:
>>Connected to ftp.mysql.com.
>>220 ProFTPD 1.2.0pre10 Server (MySQL at the Matrix) [cpu33]
>>331 Anonymous login ok, send your complete e-mail address as password.
>>230 Anonymous access granted, restrictions apply.
>>Remote system type is UNIX.
>>Using binary mode to transfer files.
>>200 Type set to I.
>>250 CWD command successful.
>>local: mysql-3.22.32.tar.gz remote: mysql-3.22.32.tar.gz
>>227 Entering Passive Mode (64,28,67,70,0,0)
>>500 Illegal PORT command.
>>
>>Active ftp works fine from both machines. Am I missing something obvious?
>
> please turn on both "debug" and "verbose". they are necessary to
> diagnose.
the other end (ftp.mysql.com) has strange behavior. on passive mode,
it asks us to connect to 64.28.67.70, tcp port 0.
we cannot make tcp connection to "port 0" (outside of TCP spec)
so we need to fall back to PORT.
itojun
ftp> dir
---> EPSV
500 EPSV not understood.
disabling epsv4 for this connection
---> PASV
227 Entering Passive Mode (64,28,67,70,0,0)
---> PORT 202,232,15,108,254,12
200 PORT command successful.
---> LIST
150 Opening ASCII mode data connection for file list.
drwxrwxr-x 6 ftp ftp 8192 Oct 4 12:43 Contrib
drwxrwxr-x 2 ftp ftp 4096 Mar 15 2000 Examples
drwxrwxr-x 2 ftp ftp 4096 Mar 15 2000 FreeBSD