FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 2nd, 2004, 11:04 PM
rramsey rramsey is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 rramsey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to rramsey
vsFTPd and Fedora & AS3

Ill attest to the fact that I am not a newb at UNIX
but have not set up a production unix server from scratch.

With that said, I am installing vsftpd on the Fedora
build and am having some entry level issues.

The server works great, to everyone behind my firewall
(which in this case is a Linksys router with port
forwarding).

If from a local machine I ftp to 192.168.1.111,
everythign works find and I can get a directory.

If I go to mydomainname.com I can log in and get to a
prompt, but as soon as I "dir" I get a long pause
followed by a disconnection. There are also no entries
in my vsftpd.log file either.

Following is the output and my conf files... Any input
you can suggest would be valued.

SSH appears to work fine and I have followed the
instructions step by step from both your site and a
reputable book. Im pretty sure im doing something
stupid.

Thanks for your time,

Ryan


--- FROM a local windows machine ---

C:\Documents and Settings\Ryan Ramsey>ftp
192.168.1.111
Connected to 192.168.1.111.
220 Welcome to the Test(blahblah.com)
User (192.168.1.111none)): ryan
331 Please specify the password.
Password:
230 Login successful.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxr-x 2 500 500 4096 Jan 01
00:17 http
226 Directory send OK.
ftp: 62 bytes received in 0.00Seconds
62000.00Kbytes/sec.
ftp> quit
221 Goodbye.

--- From a local windows machine through the internet

C:\Documents and Settings\Ryan Ramsey>ftp
blahblah.com
Connected to blahblah.com.
220 Welcome to the Test(blahblah.com)
User (blahblah.comnone)): ryan
331 Please specify the password.
Password:
230 Login successful.
ftp> dir
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
ftp>

--- vsftpd.conf ---

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly
paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more
usable.
# Please see vsftpd.conf.5 for all compiled in
defaults.
#
# READ THIS: This example file is NOT an exhaustive
list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a
full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if
you comment this out).
#anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write
command.
write_enable=YES
#
# Default umask for local users is 077. You may wish
to change this to 022,
# if your users expect that (022 is used by most other
ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to
upload files. This only
# has an effect if the above global write enable is
activated. Also, you will
# obviously need to create a directory writable by the
FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to
be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to
remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from
port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous
files to be owned by
# a different user. Note! Using "root" for uploaded
files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you
like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard
ftpd xferlog format

Last edited by rramsey : January 4th, 2004 at 08:51 AM.

Reply With Quote
  #2  
Old June 3rd, 2004, 02:00 PM
rootservices rootservices is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 5 rootservices User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Ryan,

did you configure port forwarding for both ftp (21) and ftp-data(20) ?

Port 21 is used for sending commands to the ftp server. Actual data transfer (including the transmission of directory listings) is done in a seperate connection via port 20. If you only forward port 21 and not port 20, this is typically the problem that you get.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > vsFTPd and Fedora


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway