LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ProFTPd Connecting Timing Out - CentOS 4.6 (https://www.linuxquestions.org/questions/linux-server-73/proftpd-connecting-timing-out-centos-4-6-a-622156/)

pbeane 02-19-2008 01:06 AM

ProFTPd Connecting Timing Out - CentOS 4.6
 
After solving the mailman problem, the connection keeps timing out with ProFTPd before listing the files.

Code:

Status:        Resolving IP-Address for xxxx.com
Status:        Connecting to xxxxx...
Status:        Connection established, waiting for welcome message...
Response:        220 FTP Server ready.
Command:        USER myUser
Response:        331 Password required for myUser.
Command:        PASS *******
Response:        230 User plbeane94 logged in.
Command:        SYST
Response:        215 UNIX Type: L8
Command:        FEAT
Response:        211-Features:
Response:        MDTM
Response:        REST STREAM
Response:        SIZE
Response:        211 End
Status:        Connected
Status:        Retrieving directory listing...
Command:        PWD
Response:        257 "/" is current directory.
Command:        TYPE I
Response:        200 Type set to I
Command:        PASV
Response:        227 Entering Passive Mode (xxxxx).
Command:        LIST
Error:        Connection timed out
Error:        Failed to retrieve directory listing

Any ideas? :(

Disillusionist 02-19-2008 01:30 AM

I have experienced something very similar to this before.

I could connect to the FTP site, however if I tried to send or receive data it timed out. The LIST command after all requests data to be sent about what files are on the site.

I know that you are specifying PASV and that in passive mode you should only need to allow port 21 from the "well known ports" through.

It might be worth opening port 20 and running Active mode to test, incase the server side firewall is blocking the random higher port number used by FTP in passive mode

Disillusionist 02-19-2008 01:31 AM

I have experienced something very similar to this before.

I could connect to the FTP site, however if I tried to send or receive data it timed out. The LIST command after all requests data to be sent about what files are on the site.

I know that you are specifying PASV and that in passive mode you should only need to allow port 21 from the "well known ports" through.

It might be worth opening port 20 and running Active mode to test, incase the server side firewall is blocking the random higher port number used by FTP in passive mode

EDIT:

Check the following link for more info: http://www.slacksite.com/other/ftp.html

pbeane 02-19-2008 09:40 AM

Ah, yes, it must be iptables blocking it. I just ran 'service iptables stop' and now all goes well listing everything.

Thanks! :)


All times are GMT -5. The time now is 08:42 AM.