www.mamboteam.com
macsat.com - OpenWrt | Olegs Firmware  
Home arrow Tutorials - OpenWrt (White Russian) arrow vsftpd Installation and Setup
Friday, 21 November 2008
 
 
Main Menu
Home
About
News
Tutorials - OpenWrt (WR)
Tutorials - Oleg
Wiki (RDC Based Routers)
Online Shop
Forum
Downloads
Free Linux eBooks
Links
Search
Contact Us
We have 4 guests online
2811544 Visitors
Login
Welcome Guest.






Lost Password?
No account yet? Register
Old macsat.com
Nokia Unlock (Dansk)
Nokia Unlock (English)
XBins IRC Chat
vsftpd Installation and Setup PDF Print E-mail
(5 votes)
Written by macsat   
Friday, 25 November 2005

This is a step for step guide for installing and configuring the vsftpd ftp server on your ASUS WL device.
The guide is made using a ASUS WL-500G Deluxe (or WL-500GX as it is sometimes called).
It should however apply to all the ASUS wireless line of products that are Linux based. Theese products are to my knowledge :

  • ASUS WL-500b
  • ASUS WL-500bv2
  • ASUS WL-500g
  • ASUS WL-500g Deluxe (WL500-gx)
  • ASUS WL-HDD
  • If you are the lucky owner of any of the above devices, you have come to the right place.
    If you still dont have one of the above devices - dont hesitate, go buy one :-)

    After following the steps in this guide, your ASUS WL device will have all its normal functionality,
    and also contain a full featured PHP enabled webserver that can be accessed from the WAN (Internet).

    Guide Index

    1. Prerequisites - What is needed to get started.
    2. Installing and configuring needed software packages

    Prerequisites

    All you need is :
  • One of the above Asus Wireless devices
  • An USB Harddrive or USB Memory Stick / Keyring with some 50-100 MB space.(For the WL-HDD you just need a regular Harddrive)
  • Firmware version 1.9.2.7-4 (or higher) by Oleg
  • The ipkg package system

  • Installing and configuring the needed Software Packages

    The needed package will be installed using the ipkg package management system. Since vsftpd is a (x)inetd demon, we need to install xinetd :
    ipkg install xinetd < enter >

    Now install the vsftpd package :
    ipkg install vsftpd < enter >

    At the of /opt/etc/vsftpd.conf add the following line:
    secure_chroot_dir=/opt/usr/share/empty

    create the dir
    mkdir -p /opt/usr/share/empty < enter >

    xinet.d will by default start a couple of services, that are not relevant on the wl-500g
    rm /opt/etc/xinetd.d/telnetd < enter >
    rm /opt/etc/xinetd.d/ftp-sensor < enter >

    Now create the vsftpd xinetd script :
    nano /opt/etc/xinetd.d/vsftp < enter >

    copy-paste the following content to the file. REMEMBER to change the username
    to the user that you use to login to your admin web pages on your router
    (admin is the default name)
    # description: The vsftpd FTP server serves FTP connections.
    # it uses normal, unencrypted usernames and passwords for auth
    service ftp
    {
    disable = no
    socket_type = stream
    user = admin
    server = /opt/sbin/vsftpd
    server_args = /opt/etc/vsftpd.conf
    wait = no
    nice = 10
    only_from = 0.0.0.0/0
    }

    To be able to start your vsftpd server, you should kill your stupid-ftpd server, if that is running :
    killall stupid-ftpd < enter >

    Now you can start your xinetd demon, and in that way also your vsftpd server by doing :
    /opt/etc/init.d/S10xinetd < enter >

    The vsftpd server is now started, and should restart upon reboot of your router :-)

    One of my readers have brought to my attention, that after following the guide, the ftp server kept rejecting him to login. He then reconnected his harddrive, and after that it worked. Maby worth a try if you are having problems getting it to work. Thanks to William de Wit for this input !


    I hope you found this guide useful.

    Last Updated ( Tuesday, 10 January 2006 )
     
    < Prev   Next >
    Buy Router
    Linksys WRTSL54GS
    Linksys WRTSL54GS
    Recent Forum Topics
    Donations

    If you appriciate this site, please consider making a small donation.

    All donations will be used to cover expenses from running macsat.com.

    Sponsored Ads
     
    Top! Top!