[Centos] ftp ftom outside the local network
ssharma at revsharecorp.com
Mon Nov 22 17:50:22 UTC 2004
Filezilla does use PASV, probably by default. What you need to do is
enable the passive ports on the firewall, not just 20 and 21.
I've never used vsftpd but typically you can define a range of "higher"
ports that it can use for the passive connections. Then you open those
up on the firewall and port forward those back to the ftp server and
you're all set. I always have funky results when dealing with PORT,
setting up PASV is totally worth the trouble.
Andrew Cotter wrote:
> Your answer may lie within the response you are getting from FileZilla.
> "Response: 200 PORT command successful. Consider using PASV."
> Try using a passive connection. I am not sure if FileZilla has that option,
> CuteFTP should.
> Do you still get the same results?
> -----Original Message-----
> From: centos-admin at caosity.org [mailto:centos-admin at caosity.org]On Behalf Of
> Beth Curotto
> Sent: Monday, November 22, 2004 12:16 PM
> To: CentOS Mailing List
> Subject: [Centos] ftp ftom outside the local network
> I have Centos3.3 installed, vsftpd, apache2, ports 20&21 open on router,
> firewall disabled at this time :
> /etc/passwd looks like this --- ftpadmin:x:502:502::/var/www:sbin/noligin
> uncommented the lines in /etc/vsftpd/vsftpd.conf :
> I can access ftp from within network no problem, but using external ip it
> will validate login but cannot bring up folders
> Any suggestions......
> This is the response I get using FileZilla (similar response using CuteFTP)
> Status: Connecting to 188.8.131.52 ...
> Status: Connected with 184.108.40.206. Waiting for welcome message...
> Response: 220 (vsFTPd 1.2.1)
> Command: USER ftpadmin
> Response: 331 Please specify the password.
> Command: PASS ********
> Response: 230 Login successful.
> 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 "/"
> Command: PORT 172,17,2,12,16,230
> Response: 200 PORT command successful. Consider using PASV.
> Command: TYPE A
> Response: 200 Switching to ASCII mode.
> Command: LIST
> Error: Timeout detected!
> Error: Could not retrieve directory listing
> CentOS mailing list
> CentOS at caosity.org
More information about the CentOS