Here is the log for SmartFTP:
SmartFTP v1.5.988.24
Resolving host name "xxxxxxx.com"
Connecting to 66.98.xxx.xxx Port: 21
Connected to xxxxxxx.com.
220-This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.
220 ProFTPD 1.2.10 Server (ProFTPD) [66.98.xxx.xxx]
USER xxxxxxx
331 Password required for xxxxxxx.
PASS (hidden)
230 User xxxxxxx logged in.
SYST
215 UNIX Type: L8
FEAT
211-Features:
MDTM
REST STREAM
SIZE
AUTH TLS
PBSZ
PROT
211 End
PWD
257 "/" is current directory.
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (66,98,xxx,xxx,158,155).
Opening data connection to 66.98.xxx.xxx Port: 40603
LIST -aL
150 Opening ASCII mode data connection for file list
693 bytes transferred. (5.63 KB/s) (120 ms)
226 Transfer complete.
PASV
227 Entering Passive Mode (66,98,xxx,xxx,158,174).
Opening data connection to 66.98.xxx.xxx Port: 40622
LIST -aL
150 Opening ASCII mode data connection for file list
693 bytes transferred. (11.2 KB/s) (60 ms)
226 Transfer complete.
And for Core FTP in passive mode:
Welcome to Core FTP, release ver 1.3c, build 1427 (U) -- © 2003-2005
WinSock 2.0
Mem -- 228,848 KB, Virt -- 2,097,024 KB
Started on Thursday September 08, 2005 at 11:36:AM
Resolving xxxxxxx.com...
Connect socket #444 to 66.98.xxx.xxx, port 21...
220-This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.
220-This computer system is for authorized users only. Individuals using this
USER xxxxxxx
331 Password required for xxxxxxx.
PASS **********
230 User xxxxxxx logged in.
SYST
215 UNIX Type: L8
PWD
257 "/" is current directory.
Keep alive on...
PASV
227 Entering Passive Mode (66,98,xxx,xxx,159,177).
LIST
Connect socket #488 to 66.98.xxx.xxx, port 40881...
150 Opening ASCII mode data connection for file list
226 Transfer complete.
CWD /www
250 CWD command successful
CWD /
250 CWD command successful
Transferred 391 bytes in 0.008 seconds
LIST
425 Unable to build data connection: Invalid argument
And for Core FTP in active mode:
Welcome to Core FTP, release ver 1.3c, build 1427 (U) -- © 2003-2005
WinSock 2.0
Mem -- 228,848 KB, Virt -- 2,097,024 KB
Started on Thursday September 08, 2005 at 11:33:AM
Resolving xxxxxxx.com...
Connect socket #460 to 66.98.xxx.xxx, port 21...
220-This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.
220-This computer system is for authorized users only. Individuals using this
USER xxxxxxx
331 Password required for xxxxxxx.
PASS **********
230 User xxxxxxx logged in.
SYST
215 UNIX Type: L8
PWD
257 "/" is current directory.
Keep alive on...
PORT 172,16,xxx,xxx,43,149
200 PORT command successful
LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
CWD /www
250 CWD command successful
CWD /
250 CWD command successful
Transferred 391 bytes in 0.008 seconds
LIST
425 Unable to build data connection: Connection refused
I can see what's wrong in passive mode: the PASV command is not being issued before LIST. Is there a way to tell Core FTP to issue two commands, one after the other, in a custom keep-alive command? And I have no idea what's wrong with LIST in active mode, since transfers work fine in both modes. I really prefer Core FTP over SmartFTP, but I need to get keep-alive working somehow.