Vsftpd tips:

All following update /etc/vsftpd/vsftpd.conf

How to change the default public root ?

anon_root=/the/path/you/want

I don’t want let my firewall too open. then define the min/max port.

pasv_min_port=60000

pasv_max_port=65000

iptable setting. 20 is for data

# for FTP

-A INPUT -m state –state NEW -m tcp -p tcp –dport 20 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 60000:65000 -j ACCEPT

Vsftp default turn Passive on, How to disable it ?

pasv_enable=NO