使用 FileZilla FTP Client 连接 Vsftpd在执行LIST命令后提示连接超时。

vi /etc/vsftpd/vsftpd.conf

添加:

#开启被动模式
pasv_enable=YES
#随机最小端口
pasv_min_port=4000
#随机最大端口
pasv_max_port=5000

modprobe ip_conntrack_ftp

modprobe ip_nat_ftp

vi /etc/sysconfig/iptables

添加:

-A OUTPUT -p tcp --sport 4000:5000 -j ACCEPT
-A INPUT -p tcp --dport 4000:5000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 4000:5000 -j ACCEPT(Centos6.4)

service iptables restart

service vsftpd restart

 

相关文章:

  • 2021-11-27
  • 2022-01-01
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-12-27
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案