Configure FTP Server – Vsftpd

Install Vsftpd to configure FTP Server.

1) Install Vsftpd

vsFTP安装与配置_其他

2)If IPTables is running,allow FTP port and fixed PASV ports. For "-I INPUT 5" section below,Replace it to your own environment.

vsFTP安装与配置_其他_02

[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