LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-04-2011, 03:09 PM   #1
jensge994
LQ Newbie
 
Registered: May 2011
Posts: 6

Rep: Reputation: 0
vsftpd Error: Failed to retrieve directory listing


hey, im trying to setup an ftp server with vsftpd, it worked find untill suddenly it said "Error: Failed to retrieve directory listing". Im using port 442 atm, but it doesnt work on 21 either.

heres the connection log:

Code:
Status:	Connecting to xx.xxx.xxx.xx...
Status:	Connection established, waiting for welcome message...
Response:	220 Welcome
Command:	USER xxxxxxxxxxxxx
Response:	331 Please specify the password.
Command:	PASS **********
Response:	230 Login successful.
Command:	OPTS UTF8 ON
Response:	200 Always in UTF8 mode.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/srv/FileServer"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,1,x,253,xxx).
Status:	Server sent passive reply with unroutable address. Using server address instead.
Command:	LIST
Error:	Connection timed out
Error:	Failed to retrieve directory listing
 
Old 05-04-2011, 04:18 PM   #2
jensge994
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
btw, it works on the local ip, but it doesnt work on the external ip. The ports are open
 
Old 05-04-2011, 04:26 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,780
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
[QUOTEjensge994]btw, it works on the local ip, but it doesnt work on the external ip. The ports are open[/QUOTE]

I'd be willing to be the router isn't handling all the ports correctly. If you haven't seen it already, this article give an excellent explanation of both passive and active FTP and what ports need to be open to do it. I know on my FTP server not only do ports 20 and 21 have to be forwarded, but I need to lock vsftpd passv ports down to a set range and then forward those from the router as well.
 
Old 05-08-2011, 05:46 AM   #4
jensge994
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
passive throttling and passiv ports work! thanks
 
Old 07-06-2013, 05:50 AM   #5
Ram babu
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Smile Issue Resolved

Check for solution.

Make sure port 20, 21 and few more ports, for example 4242-4243, are being forwarded to the server. We will need these extra ports for passive mode - set pasv_min_port and pasv_max_port accordingly in the configuration file. Add following to /etc/vsftpd.conf .
connect_from_port_20=YES
pasv_enable=YES
pasv_addr_resolve=YES
pasv_address=myaddress.dyndns.com
pasv_min_port=4242
pasv_max_port=4243




Thanks
Ram
 
  


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
vsftpd directory listing issue BYoungTGS Linux - Server 3 06-13-2010 07:30 AM
Vsftpd listing directory with time - Windows Explorer client neo571 Linux - Server 0 10-26-2009 08:23 AM
vsftpd: no directory listing with remote connection Sjonnie48 Linux - Software 1 11-16-2008 02:09 PM
vsftpd and directory listing disable for user eugene2008 Linux - Software 0 07-06-2006 08:18 PM
ProFTP problem: can login but not retrieve directory listing Singing Banzo Linux - Networking 4 03-23-2005 12:11 PM


All times are GMT -5. The time now is 02:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration