OpenWRT vsftpd - server

1. Open firewall. edit /etc/config/firewall

config rule
        option name             FTP20-Externaly
        option src              wan
        option proto            tcp
        option dest_port        20
        option target           ACCEPT config rule
        option name             FTP21-Externaly
        option src              wan
        option proto            tcp
        option dest_port        21
        option target           ACCEPT

2. Install vsftpd

opkg update
opkg install vsftpd

3. Create the ftp directory

mkdir -p /home/ftp_user

4. add the user to the system - editing /etc/passwd

ftp_user:x:1000:55::/home/ftp_user:/bin/false

5. Change password for ftp_user

passwd ftp_user

6. Configure vsftpd - edit /etc/vsftpd.conf

anonymous_enable=YES
anon_root=/home/ftp_user/
chroot_local_user=YES

7. start/enable/reload

/etc/init.d/vsftpd start
/etc/init.d/vsftpd enable
/etc/init.d/vsftpd reload

AUST IT - Computer help out of hours, when you need it most.

Find out why we do it for less.

About

AUST IT will help you resolve any technical support issues you are facing onsite or remotely via remote desktop 24/7. More...

Contacts

Reservoir, Melbourne,
3073, VIC, Australia

Phone: 0422 348 882

This email address is being protected from spambots. You need JavaScript enabled to view it.

Sydney: 0481 837 077

Connect

Join us in social networks to be in touch.

Newsletter

Complete the form below, and we'll send you our emails with all the latest AUST IT news.