LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-07-2007, 03:07 AM   #1
cantthinkofausername
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
VSFTPD Problems


Ok here is the story, i have set up a VSFTPD server which works perfectly... internally. as soon as i try access the FTP server from a site from outside our network (on the other side of the firewall) it logs in just great, well see for yourself.

Code:
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
500 Illegal PORT command.
425 Use PORT or PASV first.
ftp> quote pasv
227 Entering Passive Mode (192,168,128,7,7,234)
ftp> ls
425 Failed to establish connection.
when i try do a ls or dir, it just hangs up for a few minutes and then returns failed to establish connection.

me post my VSFTPD.conf

Code:
anonymous_enable=NO
local_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ftpd_banner= FTP Site
chroot_list_enable=YES
local_root=/FTPD
chroot_list_file=/etc/vsftpd/chroot_list
pam_service_name=vsftpd
userlist_enable=NO
listen=YES
tcp_wrappers=YES
pasv_enable=YES
pasv_min_port=2021
pasv_max_port=2071
I am not using ip tables at all and have an external forewall, which is forwarding ports 21/20 and a range between 2021 and 2071 to and from the FTP server.
 
Old 06-07-2007, 04:00 AM   #2
cantthinkofausername
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
alright, after turning on detailed logging, here is a section of the vsftpd.log file that details the attempt

Code:
Thu Jun  7 08:47:38 2007 [pid 16805] [xxxxxxx] FTP response: Client "*.*.*.*", "331 Please specify the password."
Thu Jun  7 08:47:39 2007 [pid 16805] [xxxxxxx] FTP command: Client "*.*.*.*", "PASS <password>"
Thu Jun  7 08:47:40 2007 [pid 16804] [xxxxxxx] OK LOGIN: Client "*.*.*.*"
Thu Jun  7 08:47:40 2007 [pid 16806] [xxxxxxx] FTP response: Client "*.*.*.*", "230 Login successful."
Thu Jun  7 08:47:41 2007 [pid 16806] [xxxxxxx] FTP command: Client "*.*.*.*", "PORT 192,168,128,5,19,137"
Thu Jun  7 08:47:41 2007 [pid 16806] [xxxxxxx] FTP response: Client "*.*.*.*", "500 Illegal PORT command."
Thu Jun  7 08:47:41 2007 [pid 16806] [xxxxxxx] FTP command: Client "*.*.*.*", "NLST"
Thu Jun  7 08:47:41 2007 [pid 16806] [xxxxxxx] FTP response: Client "*.*.*.*", "425 Use PORT or PASV first."
Thu Jun  7 08:47:44 2007 [pid 16806] [xxxxxxx] FTP command: Client "*.*.*.*", "LS"
Thu Jun  7 08:47:44 2007 [pid 16806] [xxxxxxx] FTP response: Client "*.*.*.*", "500 Unknown command."
Thu Jun  7 08:47:47 2007 [pid 16806] [xxxxxxx] FTP command: Client "*.*.*.*", "PASV"
Thu Jun  7 08:47:47 2007 [pid 16806] [xxxxxxx] FTP response: Client "*.*.*.*", "227 Entering Passive Mode (192,168,128,7,7,247)"
Thu Jun  7 08:47:48 2007 [pid 16806] [xxxxxxx] FTP command: Client "*.*.*.*", "NLST"
Note: i have replaced the ip address with *.*.*.*
 
Old 06-07-2007, 08:25 AM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
type pasv as soon as you have logged in to use passive ftp. Did you check your firewall logs?
 
  


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
vsFTPd problems. Ordinary12 Fedora 9 05-21-2007 02:04 PM
vsftpd problems Timme Linux - Newbie 4 11-18-2005 09:57 PM
VSFTPD problems cwolf78 Linux - Software 10 05-12-2005 10:28 PM
VSFTPD problems cwolf78 Linux - Software 4 04-24-2005 05:02 AM
VSFTPD problems RSKeisuke Linux - Networking 5 07-27-2004 08:28 PM

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

All times are GMT -5. The time now is 11:36 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