ProFTPd
From DD-WRT Wiki
Revision as of 23:20, 9 October 2007 (edit) MeisterEder (Talk | contribs) m (New and now usable) ← Previous diff |
Revision as of 11:02, 22 December 2007 (edit) (undo) Mcpat (Talk | contribs) m Next diff → |
||
Line 1: | Line 1: | ||
+ | by [[User:mcpat | mcpat]], adapted by [[User:MeisterEder | MeisterEder]] | ||
====Preface==== | ====Preface==== | ||
To run a ftp-server you need appropriate free space on your device. So its best you have sd-card-modded your device (or you can connect an HD). | To run a ftp-server you need appropriate free space on your device. So its best you have sd-card-modded your device (or you can connect an HD). |
Revision as of 11:02, 22 December 2007
by mcpat, adapted by MeisterEder
Contents |
Preface
To run a ftp-server you need appropriate free space on your device. So its best you have sd-card-modded your device (or you can connect an HD). This tutorial points on an installed sd-card mounted to "/mmc". It is also possible to replace every occurances of (/mmc) with (/jffs) if you have it enabled.
First: install optware
If you dont have installed this wonderful system, so do it now! It easy and descriped in Optware (up to 2.2).
Install xinetd
Xinetd is a so called super-server. It receives requests on configurable ports and then starts an appropriate serverprocess. In our case xinetd should manage the ftp-requests and start proftpd. So install xinetd:
/opt/bin/ipkg update xinetd /opt/bin/ipkg install xinetd
Install proftpd
Also install the proftpd-server:
/opt/bin/ipkg install proftpd
Because of the good work of the optware-people there is only a little bit configuration to do:
Configure xinetd
In default-configuration xinet only listens to requests from network 192.168.1.0/24 If your network does not meet this netmask you have to change the value:
Open the file /opt/etc/xinetd.conf with you favorite editor (maybe "nano")
nano opt/etc/xinetd.conf
Change the value for "only_from" to your netmask (something like 192.168.4.0/24?) To allow request from everywhere you can comment this line out (note "#" at beginning of the line)
Configure proftpd
Open the file /opt/etc/proftpd.conf with you favorite editor (maybe "nano")
nano opt/etc/proftpd.conf
We have to change some values for meeting the standards of dd-wrt: Replace the lines:
User nobody Group nobody
with
User root Group root
Also you can change the "DefaultRoot" to "/mmc" if you want.
If you dont want to allow anonymous access delete the entire "<Anonymous>" section!
Start the xinet-superserver
/opt/etc/init.d/S10xinetd start
Test the service
Connect with your favorite ftp-client to the new server. Login with your wrt-"root"-Login (or another existing user) Maybe the login takes a while - the proftpd-server have to start for every connect!