Configure FTP Server – Vsftpd

Install Vsftpd to configure FTP Server.

1) Install Vsftpd

vsFTP安装与配置-LMLPHP

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安装与配置-LMLPHP

[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 


本文分享自微信公众号 - WalkingCloud(WalkingCloud2018)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

09-12 03:02
查看更多