PDA

View Full Version : ProFTP W/ TLS Timing Out


jonwatson
30th March 2009, 21:53
Hi All,

I've been fighting with TLS and ProFTP for a while now. It seems to work for a while and then go into a tizzy where it stops allowing people to log in and just times out while attempting to get a directory listing. I'm the only person in the machine so whatever changes causes this to happen aren't done by a person as far as I can tell.

Here's an output of Filezilla attempting to connect:

Status: Connecting to xx.xx.xx.xx:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.0a Server (ProFTPD Default Installation) [xx.xx.xx.xx]
Command: AUTH TLS
Response: 234 AUTH TLS successful
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER xxxx_xxxxxx
Status: TLS/SSL connection established.
Response: 331 Password required for xxxx_xxxxxx.
Command: PASS **********
Response: 230 User xxxx_xxxxxx logged in.
Command: PBSZ 0
Response: 200 PBSZ 0 successful
Command: PROT P
Response: 200 Protection set to Private
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/www/web20" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xx,xx,xx,xx,218,178).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

I am using the FTPES (Explicit) setting in Filezilla on port 21 but the FTPS (Implicit) does not work either.

I have tried both active and passive mode with the same results.

I have tried connecting directly to the IP rather than the hostname to eliminate DNS time outs with the same results.

I have tried connecting with the firewall running and with it off. When off, I can usually get a little farther in that I sometimes get a directory listing before it times out, but it still times out.

I have added a range of passive ports to the firewall and it hasn't helped.

I cannot find any useful information in the /var/log/messages file (or any other log file that I know of).

So, I am at a loss on how to figure this out now. Any ideas how to troubleshoot this?

Thanks

Jon

till
31st March 2009, 09:59
Did you try also to deactivate the complete firewall?

jonwatson
31st March 2009, 15:27
Hi Till,

Yes, I tried it with both the firewall running and completely turned off. When turned off, I seem to be able to get farther, but it still times out on the directory listings.

Thanks

Jon

falko
31st March 2009, 18:15
Is the server behind a router? If so, does the router forward all necessary ports?

jonwatson
31st March 2009, 18:20
Things are working now. Turns out that I forgot about a bug with TLS in Filezilla 3.1 in that it has problems connecting using TLS.

So....use another FTP client and all works...

Jon