LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-19-2009, 11:49 AM   #1
KenjiKinya
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:

Code:
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,
Kenji
 
Old 07-19-2009, 02:21 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
read through this... http://slacksite.com/other/ftp.html 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.
 
  


Reply



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 03:36 AM
vsftpd FTP server problems. paquete Slackware 2 10-20-2005 11:38 AM
FTP server help -Vsftpd BinkyFiz Linux - Software 0 02-28-2005 06:56 PM
FTP SERVER: Vsftpd Problems. swatward Linux - Software 2 01-23-2005 09:40 PM
FTP server statistics - vsftpd lazo Linux - Software 0 12-22-2004 09:33 AM

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

All times are GMT -5. The time now is 03:05 PM.

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