Chimpen n00b
Joined: 26 Apr 2004 Posts: 14 Location: Sweden
|
Posted: Tue Jun 08, 2004 10:14 pm Post subject: Problems with PASV on vsftpd |
|
|
The main server on port 21 (passive range 30000 - 30099) works as it should. It's started with xinet.d
The other server on port 1021 (passive range 30100 - 30200) I can get in using PORT but PASV fails. It's started stand alone.
I get the following using CuteFTP 5.0 XP from outside the firewall.
Code: | STATUS:> Connecting to server.domain.com (ip = 222.22.22.222)
STATUS:> Connected. Authenticating...
COMMAND:> USER XXX
331 Please specify the password.
COMMAND:> PASS ********
230 Login successful.
STATUS:> Login successful
COMMAND:> TYPE I
200 Switching to Binary mode.
COMMAND:> REST 100
350 Restart position accepted (100).
COMMAND:> REST 0
350 Restart position accepted (0).
STATUS:> This site can resume broken downloads
COMMAND:> PWD
257 "/"
COMMAND:> TYPE A
200 Switching to ASCII mode.
STATUS:> Retrieving directory listing...
COMMAND:> PASV
227 Entering Passive Mode (192,168,100,2,117,173)
COMMAND:> LIST
STATUS:> Connecting data socket...
425 Failed to establish connection.
ERROR:> Failed to establish data socket
ERROR:> File error |
I found an option called "Force RFC compliant PASV mode", and when I tried it, I got the following:
Code: | STATUS:> Connecting to server.domain.com (ip = 222.22.22.222)
STATUS:> Connected. Authenticating...
COMMAND:> USER XXX
331 Please specify the password.
COMMAND:> PASS ********
230 Login successful.
STATUS:> Login successful
COMMAND:> TYPE I
200 Switching to Binary mode.
STATUS:> This site can resume broken downloads
COMMAND:> PWD
257 "/"
COMMAND:> TYPE A
200 Switching to ASCII mode.
COMMAND:> REST 0
350 Restart position accepted (0).
STATUS:> Retrieving directory listing...
COMMAND:> PASV
227 Entering Passive Mode (192,168,100,2,117,231)
STATUS:> Connecting data socket...
ERROR:> Failed to establish data socket
COMMAND:> LIST
421 Timeout.
ERROR:> Can't initiate data transfer
STATUS:> Retrieving directory listing...
COMMAND:> PASV
STATUS:> Error opening data socket |
I've forwarded port 21, 1020, 1021 and 30000 - 30200 TCP to the server. Anyone have an idea what might be the problem? _________________ "Once the rockets are up, who cares where they come down? That's not my department." - Wernher von Braun |
|