[CentOS] Vsftpd configuration problem

Mon Apr 1 23:26:53 UTC 2013
Max Pyziur <pyz at brama.com>

On Mon, 1 Apr 2013, lists-centos wrote:

>
>
> ------------ Original Message ------------
>> Date: Monday, April 01, 2013 07:12:53 PM -0400
>> From: Max Pyziur <pyz at brama.com>
>> To: centos at centos.org
>> Cc:
>> Subject: [CentOS] Vsftpd configuration problem
>>
>>
>> Greetings,
>>
>> Beginning today, I started to receive the following when ftp'ing
>> to my  CentOS 6 machine:
>> ncftp /home/pyz2 > dir
>> connect failed: No route to host.
>> connect failed: No route to host.
>> connect failed: No route to host.
>> Falling back to PORT instead of PASV mode.
>>
>> I can make a connection, but I can't get a directory listing or
>> transfer  data/files.
>>
>> I'm flummoxed.
>>
>> What I had been doing is adding more directives to my
>> /etc/hosts.deny  file, today to include certain categories of ip
>> addresses for the vsftpd  service.
>>
>> I unwound that after I saw the problem starting to occur, and have
>> restarted vsftpd several times.
>>
>> That hasn't changed the above issue.
>>
>> And yes, I've googled.
>>
>> My firewall setting has port 21 open.
>>
>> I can remotely telnet to hostname 21
>>
>> and I get a response indicating that the port is open.
>>
>> Any advice would be appreciated.
>>
>> Much thanks.
>>
>> Max Pyziur
>> pyz at brama.com
>
> ftp uses port 21 for the "connection" and port 20 for the "data",
> which includes directory listings as well as the file transfer
> proper - see /etc/services. so if you have port 20 blocked that
> would explain your problem.

Does port 20 have to be open in the firewall? If so, this would be the 
first machine where I have explicitly set this.


>   - Richard
>
>
>


Max