Configure FTP Server – Vsftpd
Install Vsftpd to configure FTP Server.
1) Install Vsftpd
2)If IPTables is running,allow FTP port and fixed PASV ports. For "-I INPUT 5" section below,Replace it to your own environment.
[root@www ~]# vi /etc/vsftpd/vsftpd.conf
# add follows to the end: fix PASV ports
pasv_enable=YES
pasv_min_port=21000
pasv_max_port=21010
[root@www ~]# /etc/rc.d/init.d/vsftpd restart
[root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
[root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21000:21010 -j ACCEPT