|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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.111 none)): ryan331 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.com none)): ryan331 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. |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > vsFTPd and Fedora |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|