LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2008, 01:06 AM   #1
pbeane
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
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?
 
Old 02-19-2008, 01:30 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
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
 
Old 02-19-2008, 01:31 AM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
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

Last edited by Disillusionist; 02-19-2008 at 01:33 AM.
 
Old 02-19-2008, 09:40 AM   #4
pbeane
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Ah, yes, it must be iptables blocking it. I just ran 'service iptables stop' and now all goes well listing everything.

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Proftpd on CentOS zshadow Linux - Newbie 1 01-29-2008 07:47 PM
proftpd timing out with passive ToothlessRebel Linux - Server 1 03-18-2007 11:06 AM
how to start timing and print the timing result on portions of java codes ?? alred Programming 2 05-15-2006 10:00 AM
Connecting to Proftpd albino87 Linux - Networking 3 12-03-2004 12:19 PM
SSH timing out/not connecting NeccoWolf Linux - Networking 2 01-26-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration