Can't get into an FTP deployed with serv-u 6.4

Starriol

Limp Gawd
Joined
Jan 3, 2006
Messages
191
I need to configure an FTP server so a client can access some files on a server.

Whenever I try to connect, I get an error similar to this:

*** CuteFTP 8.0 - build Feb 6 2007 ***

STATUS:> [11/03/2007 16:04:09] Getting listing ""...
STATUS:> [11/03/2007 16:04:09] Resolving host name ***...
STATUS:> [11/03/2007 16:04:09] Host name ***resolved: ip = ***.
STATUS:> [11/03/2007 16:04:09] Connecting to FTP server... ***:121 (ip = ***)...
STATUS:> [11/03/2007 16:04:09] Socket connected. Waiting for welcome message...
[11/03/2007 16:04:09] 220 Serv-U FTP Server v6.4 for WinSock ready...
STATUS:> [11/03/2007 16:04:09] Connected. Authenticating...
COMMAND:> [11/03/2007 16:04:09] USER ***
[11/03/2007 16:04:09] 331 User name okay, need password.
COMMAND:> [11/03/2007 16:04:09] PASS *****
[11/03/2007 16:04:09] 230 User logged in, proceed.
STATUS:> [11/03/2007 16:04:09] Login successful.
COMMAND:> [11/03/2007 16:04:09] PWD
[11/03/2007 16:04:09] 257 "//ntsrv3/cerettic" is current directory.
STATUS:> [11/03/2007 16:04:09] Home directory: //ntsrv3/cerettic
COMMAND:> [11/03/2007 16:04:09] FEAT
[11/03/2007 16:04:10] Informational Message Only:
211-Extension supported
CLNT
MDTM
MDTM YYYYMMDDHHMMSS[+-TZ];filename
SIZE
SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
REST STREAM
XCRC filename;start;end
MODE Z
MLST Type*;Size*;Create;Modify*;Win32.ea*;
211 End
STATUS:> [11/03/2007 16:04:10] This site supports features.
STATUS:> [11/03/2007 16:04:10] This site supports XCRC.
STATUS:> [11/03/2007 16:04:10] This site supports SIZE.
STATUS:> [11/03/2007 16:04:10] This site can resume broken downloads.
COMMAND:> [11/03/2007 16:04:10] MODE Z
[11/03/2007 16:04:10] 200 MODE Z ok.
COMMAND:> [11/03/2007 16:04:10] REST 0
[11/03/2007 16:04:10] 350 Restarting at 0. Send STORE or RETRIEVE.
COMMAND:> [11/03/2007 16:04:10] PASV
[11/03/2007 16:04:10] 227 Entering Passive Mode (192,168,0,2,12,8)
STATUS:> [11/03/2007 16:04:10] Substituting received PASV address 192.168.0.2 to server address ***.
COMMAND:> [11/03/2007 16:04:10] LIST
STATUS:> [11/03/2007 16:04:10] Connecting FTP data socket... ***:3080...
ERROR:> [11/03/2007 16:04:31] The connection failed due to an error or timeout.
1) Verify that the destination IP address is correct.
2) Increase the connection timeout threshold under Global Settings | Connection.
3) Switch to the opposite data connection type (PASV or PORT) under Site Settings | Type tab.
4) Verify that the problem is not local by trying to connect to an alternate server.
5) If a server name was used, verify it resolves to the correct address.
6) If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address.
7) Try pinging the address.
8) If you are using a router, verify the router is up and running (check by pinging it and then ping an address outside of the router).
9) Do a traceroute to the destination to verify all routers along the connection path are operational.
10) Verify that your subnet mask is setup properly.
11) Verify that your local software or hardware firewall is not blocking outbound connections originating from CuteFTP.
12) Verify that your anti-virus software is not at fault (try disabling it).
ERROR:> [11/03/2007 16:04:31] PASV failed, trying PORT.
STATUS:> [11/03/2007 16:04:31] Waiting 0 seconds...
STATUS:> [11/03/2007 16:04:31] Getting listing "//ntsrv3/cerettic"...
STATUS:> [11/03/2007 16:04:31] Resolving host name ***...
STATUS:> [11/03/2007 16:04:31] Host name *** resolved: ip = ***.
STATUS:> [11/03/2007 16:04:31] Connecting to FTP server... ***:121 (ip = ***)...
STATUS:> [11/03/2007 16:04:31] Socket connected. Waiting for welcome message...
[11/03/2007 16:04:31] 220 Serv-U FTP Server v6.4 for WinSock ready...
STATUS:> [11/03/2007 16:04:31] Connected. Authenticating...
COMMAND:> [11/03/2007 16:04:31] USER cerettic
[11/03/2007 16:04:31] 331 User name okay, need password.
COMMAND:> [11/03/2007 16:04:31] PASS *****
[11/03/2007 16:04:31] 230 User logged in, proceed.
STATUS:> [11/03/2007 16:04:31] Login successful.
COMMAND:> [11/03/2007 16:04:31] PWD
[11/03/2007 16:04:32] 257 "//ntsrv3/cerettic" is current directory.
STATUS:> [11/03/2007 16:04:32] Home directory: //ntsrv3/cerettic
STATUS:> [11/03/2007 16:04:32] This site supports features.
STATUS:> [11/03/2007 16:04:32] This site supports XCRC.
STATUS:> [11/03/2007 16:04:32] This site supports SIZE.
STATUS:> [11/03/2007 16:04:32] This site can resume broken downloads.
COMMAND:> [11/03/2007 16:04:32] MODE Z
[11/03/2007 16:04:32] 200 MODE Z ok.
COMMAND:> [11/03/2007 16:04:32] REST 0
[11/03/2007 16:04:32] 350 Restarting at 0. Send STORE or RETRIEVE.
COMMAND:> [11/03/2007 16:04:32] PORT 192,168,0,2,12,151
[11/03/2007 16:04:32] 200 PORT Command successful.
COMMAND:> [11/03/2007 16:04:32] LIST
[11/03/2007 16:04:32] 150 Opening ASCII mode data connection for /bin/ls.
ERROR:> [11/03/2007 16:05:03] Timeout (30000 ms) occurred on accepting data connection from server.
[11/03/2007 16:05:03] 426 Data connection closed, transfer aborted.
ERROR:> [11/03/2007 16:05:03] Trashed response received.


I've read that a problem with PASV servers is that they open several ports randomly in order to establish a connection, so that's why I can get to log in, but don't progress from there.

When connecting from the LAN, everything works perfectly

Any ideas on how to solve this? Which ports should I open? I have a Linksys BEFSR41 V3 router by the way.

If you think it'll be simpler with another FTP server, I'll change it, no problem.

Also, I tried several FTP clients and nothing. I even took the timeout to 2 minutes and nothing.

Thanks guys,
 
In Serv-U, you can specify which ports to use for PASV and what IP to use. Usually, you will want it to detect the public IP you are using. You also have to forward the PASV ports on your router. There is a section in the help of Serv-U that explains this.
 
Done it, redirected port 20 to the server's ip, configured the server to use UPNP on the router, the router to accept that. I configured the PASV ports to be in a strange range so it's safer and worked as a charm!

Thanks guys
 
Back
Top