Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-19-2009, 12:49 PM   #1
LQ Newbie
Registered: Apr 2009
Location: Japan & South Korea
Distribution: Fedora
Posts: 19

Rep: Reputation: 0
FTP Server Timeout with vsFTPd

When attempting to access my FTP server over the internet, the connection times out when the client sends the LIST command:

Status:	Connection established, waiting for welcome message...
Response:	220 (vsFTPd 2.1.2)
Command:	USER anonymous
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 "/"
Command:	TYPE I
Response:	200 Switching to Binary mode.
Command:	PASV
Response:	227 Entering Passive Mode (xxx,xx,xx,xxx,255,147).
Command:	LIST
Error:	Connection timed out
Error:	Failed to retrieve directory listing
Note: the x's replace my WAN address

However, when being accessed from a LAN the server simply sends the list, and the client is able to browse the server directories just fine.

Thanks in advance,
Old 07-19-2009, 03:21 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
read through this... Doing passive like you are, unless you are 1) doing connection tracking on your firewall / nat devices 2) specifically limiting FTP data connections to a narrow range of ports explicitly configured to permit access, you're stuck. Option 1 is good. option 2 sucks. option 3 is to use active mode, which may well fail depending on the clients configurations.

You *may* wish to ditch FTP altogether and use SFTP instead, which *only* uses port 22, so is very simple to handle within a network.


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
FTP server with vsftpd rushenas Linux - Server 1 12-20-2007 04:36 AM
vsftpd FTP server problems. paquete Slackware 2 10-20-2005 12:38 PM
FTP server help -Vsftpd BinkyFiz Linux - Software 0 02-28-2005 07:56 PM
FTP SERVER: Vsftpd Problems. swatward Linux - Software 2 01-23-2005 10:40 PM
FTP server statistics - vsftpd lazo Linux - Software 0 12-22-2004 10:33 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:58 AM.

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