Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem in my server, when I try to connect via FTP to a domain, the connexion is VERY slow, and I get timeouts just listing files in a directory.

When I try to connect to the domain folder using the root user account via SSH, it works fine, and I can download the files without problem.

What can be wrong? I tried to reboot the server, also the office router, and nothing...

It is a fedora core 7 server with proftpd. Can it be a filesystem problem? Thanks.

Cmd: MLST about.php
250:  Start of list for about.php
      modify=20120910092528;perm=adfrw;size=2197;type=file;;UNIX.mode=0644;UNIX.owner=10089; about.php

     End of list
227: Entering Passive Mode (***hidden***).
Data connection timed out.
Falling back to PORT instead of PASV mode.
Connection falling back to port (PORT) mode.
Cmd: PORT ***hidden***
200: PORT command successful
Cmd: RETR about.php
Could not accept a data connection: Operation timed out.
share|improve this question

closed as too localized by Iain Oct 10 '12 at 10:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What mode are you using when connecting via FTP ? Is it really slow to connect via FTP (command-line) or do you just get a timeout when asking for a directory listing ? – Stephane Sep 10 '12 at 15:04
I use paseive mode I'll add a connection log. – nmarti Sep 10 '12 at 15:08
*pasive, sorry. – nmarti Sep 10 '12 at 15:19
Finally, after a lot of tests, I called to the datacenter, and it seems to be a connectivity issue in the datacenter. Thanks to all for your help. – nmarti Sep 10 '12 at 15:59

Try use passive mode in ftp client.

share|improve this answer
I'm already using pasive mode, and I have a lot of domains configured in my ftp client and everything was going ok since some hours ago. – nmarti Sep 10 '12 at 15:05
Check once more. And show iptables -L from fedora. Its totaly looks like proftpd cant open data connection. – Korjavin Ivan Sep 11 '12 at 3:59

It is caused due a missconfiguration at your reverse DNS.

Try going to /etc/proftpd.conf

Look for

UseReverseDNS on
IdentLookups on

and change them for

UseReverseDNS off
IdentLookups off

Will let u connect faster, I bet the error message you get its conection timeout or refused by the server.

share|improve this answer
It is already off... – nmarti Sep 10 '12 at 15:13
did you change the timeout in the proftpd configuration? – jpganz18 Sep 10 '12 at 15:35
not changed, but my ftp client waits about 30 secs before getting a timeout, for download a 2KB php file... – nmarti Sep 10 '12 at 15:41
up vote 0 down vote accepted

Finally it was a internal problem of our service provider, so I close the question.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.