| FTP Server |
|
|
|
| Written by macsat | |
| Thursday, 26 January 2006 | |
|
This Tutorial will guide you through installing two different FTP servers on your OpenWRT box. The first one is a sftp server (secure ftp) - which uses an encrypted ssh connection to transfer your files. The second is a "normal" FTP server, in this case VSFTPD is chosen. Which server to install is upto the user. My experience tells me that the non-secure (vsftpd) server performs a bit faster than the stfpd one on my OpenWrt box. A good choice would probably be to allow normal FTP connections from the LAN, and only allow sftp connections from WAN - meaning that you will then have to install both servers. The tutorial is based upon using OpenWrt WhiteRussian RC4 or later! Index
Installing sftpdThe sftpd server we are using is a part of the "standard" repository for WhiteRussian and hence installing is easy: ipkg install openssh-sftp-server That's it. You should now be able to login to your router using any sftp client using the same user/pass combination that you are using for ssh. Since sftpd can be seen as a "wrapper" around the ssh protocol, there is no need to open further ports in the firewall (taking for granted that your ssh port - port 22/tcp - is open). Popular sftp clients include: Installing vsftpdDespite the name vsftp (Very Secure FTP Server) this ftp server is a "normal" ftp server and NOT a sftp server. This means that it uses the normal ftp protocol, and per default listens to connections on port 21. Installing is simply done by: ipkg install vsftpd This will install the files /etc/vsftpd.conf which is the configuration file, and /etc/init.d/vsftpd which is the startup file (it also installs the binary in /usr/sbin/).
The standard config file will make vsftp work fine, and the "root" user logs into /tmp as default. To change settings take a look in the file, or check out the vsftpd.conf man page. This should be it! Comments and questions are welcom at the forums. |
|
| Last Updated ( Thursday, 26 January 2006 ) |
| < Prev | Next > |
|---|







