Vsftpd
From DD-WRT Wiki
Revision as of 09:19, 21 May 2006 (edit) Helmutoh (Talk | contribs) (→vsftpd) ← Previous diff |
Revision as of 09:21, 21 May 2006 (edit) (undo) Helmutoh (Talk | contribs) (→vsftpd) Next diff → |
||
Line 1: | Line 1: | ||
- | = | + | =Requirements= |
First be sure that you have enough memory free. Because of this I describe the installation on SD-cards (/mmc). For sure you can use also your SMBshare-dir. | First be sure that you have enough memory free. Because of this I describe the installation on SD-cards (/mmc). For sure you can use also your SMBshare-dir. | ||
Additionally this procedure will show how to install even the needed ipkg packages on the SD-card. | Additionally this procedure will show how to install even the needed ipkg packages on the SD-card. | ||
- | + | =Preparation= | |
For ipkg we will need the following directories on the SD-Card: | For ipkg we will need the following directories on the SD-Card: | ||
Line 12: | Line 12: | ||
mkdir /mmc/jffs/tmp/ipkg | mkdir /mmc/jffs/tmp/ipkg | ||
- | + | =Installing vsftpd= | |
Installation of vsftpd-Server from [http://downloads.openwrt.org/whiterussian/packages/ downloads.openwrt.org] | Installation of vsftpd-Server from [http://downloads.openwrt.org/whiterussian/packages/ downloads.openwrt.org] | ||
Line 21: | Line 21: | ||
Ignore the warnings during ipkg-installation. | Ignore the warnings during ipkg-installation. | ||
- | + | =Installing uclibc= | |
- | + | ||
- | + | ||
Because of not running with the standard-libs of DD-WRT we will install uclibc for use with vsftpd: | Because of not running with the standard-libs of DD-WRT we will install uclibc for use with vsftpd: | ||
Line 31: | Line 29: | ||
Unsure the correct URL to uclibc again! | Unsure the correct URL to uclibc again! | ||
- | + | =start script for vsftpd= | |
- | + | ||
- | + | ||
The following script starts vsftpd using the libuclibc: | The following script starts vsftpd using the libuclibc: |
Revision as of 09:21, 21 May 2006
Contents |
Requirements
First be sure that you have enough memory free. Because of this I describe the installation on SD-cards (/mmc). For sure you can use also your SMBshare-dir. Additionally this procedure will show how to install even the needed ipkg packages on the SD-card.
Preparation
For ipkg we will need the following directories on the SD-Card:
mkdir /mmc/jffs mkdir /mmc/jffs/tmp mkdir /mmc/jffs/tmp/ipkg
Installing vsftpd
Installation of vsftpd-Server from downloads.openwrt.org
ipkg -d /mmc/jffs install http://URL_2_vsftpd
Please ensure using the correct URL to the vsftpd-package. Ignore the warnings during ipkg-installation.
Installing uclibc
Because of not running with the standard-libs of DD-WRT we will install uclibc for use with vsftpd:
ipkg -d /mmc/jffs install http://URL_2_uclibc
Unsure the correct URL to uclibc again!
start script for vsftpd
The following script starts vsftpd using the libuclibc:
export LD_PRELOAD='/mmc/jffs/lib/libuClibc-0.9.27.so' /mmc/jffs/usr/sbin/vsftpd /mmc/jffs/etc/vsftpd.conf unset LD_PRELOAD env > /dev/null
In second line the server ist startet using it's config file. Please refer to the vsftpd manpage learning more about this.
Save the script in your router (here: /mmc/progs/ftpserver/start).
Step 4:
Please be sure the ftp-server is working properly before changing the startup for the router.
Go to Administration - Diagnostics in the routers config and add the following lines to the startup section
cd /mmc/progs/ftpserver ./start
Step 5:
To get the FTP-Server enabled from WAN side add the following line to the firewall section:
/usr/sbin/iptables -I INPUT 1 -p tcp --dport 21 -j logaccept