vsftpd 读取目录列表失败的问题
2017-04-04 10:56
459 查看
FileZilla 读取ftp 目录列表失败
命令: LIST
错误: 连接超时
错误: 读取目录列表失败
该错误是由iptables的配置引起的,临时的解决方法是执行如下命令:
[root@localhost soft]# modprobe ip_nat_ftp
再次登陆列表正常啦!
但当你重新启动服务器则iptables规则失效,又会出现相同的情况,所以我们需要修改/etc/sysconfig/iptables-config文件,
[root@localhost soft]# vi /etc/sysconfig/iptables-config
# Load additional iptables modules (nat helpers)
# Default: -none-
# Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which
# are loaded after the firewall rules are applied. Options for the helpers are
# stored in /etc/modprobe.conf.
IPTABLES_MODULES=""
# Unload modules on restart and stop
# Value: yes|no, default: yes
# This option has to be 'yes' to get to a sane state for a firewall
# restart or stop. Only set to 'no' if there are problems unloading netfilter
# modules.
IPTABLES_MODULES_UNLOAD="yes"
......
IPTABLES_MODULES_UNLOAD="yes"的意义:每次iptables停止或者重启都会Unload modules
IPTABLES_MODULES=""的意义:每次防火墙规则应用以后加载的模块
我们需要把
IPTABLES_MODULES=""
修改为:
IPTABLES_MODULES="ip_nat_ftp"
这样重启服务器之后就不必再每次都执行mobprobe啦。
命令: LIST
错误: 连接超时
错误: 读取目录列表失败
该错误是由iptables的配置引起的,临时的解决方法是执行如下命令:
[root@localhost soft]# modprobe ip_nat_ftp
再次登陆列表正常啦!
但当你重新启动服务器则iptables规则失效,又会出现相同的情况,所以我们需要修改/etc/sysconfig/iptables-config文件,
[root@localhost soft]# vi /etc/sysconfig/iptables-config
# Load additional iptables modules (nat helpers)
# Default: -none-
# Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which
# are loaded after the firewall rules are applied. Options for the helpers are
# stored in /etc/modprobe.conf.
IPTABLES_MODULES=""
# Unload modules on restart and stop
# Value: yes|no, default: yes
# This option has to be 'yes' to get to a sane state for a firewall
# restart or stop. Only set to 'no' if there are problems unloading netfilter
# modules.
IPTABLES_MODULES_UNLOAD="yes"
......
IPTABLES_MODULES_UNLOAD="yes"的意义:每次iptables停止或者重启都会Unload modules
IPTABLES_MODULES=""的意义:每次防火墙规则应用以后加载的模块
我们需要把
IPTABLES_MODULES=""
修改为:
IPTABLES_MODULES="ip_nat_ftp"
这样重启服务器之后就不必再每次都执行mobprobe啦。
相关文章推荐
- [linux]解决vsftpd 读取目录列表失败的问题
- 解决vsftpd 读取目录列表失败的问题
- pureftp读取目录列表失败解决
- pureftp 读取目录列表失败解决办法
- pureftp读取目录列表失败解决
- 响应: 500 OOPS: priv_sock_get_int 错误: 读取目录列表失败
- FTP已登录,读取目录列表失败
- FTP 150 Opening BINARY mode data connection for MLSD 读取目录列表失败
- FTP客户端软件FileZilla读取目录列表失败的解决方法
- FileZilla读取目录列表失败的解决办法 ftp
- 关于就win32应用程序在64位机器上读取system目录下文件失败的问题的解决方案
- ftp 读取目录列表失败
- ftp连接:读取目录列表失败
- FTP 150 Opening BINARY mode data connection for MLSD 读取目录列表失败
- ftp 读取目录列表失败
- FileZilla读取目录列表失败
- Android Studio 中使用assets目录读取失败的问题
- pureftp读取目录列表失败解决
- FileZilla 错误425 Can't open data connection 读取目录列表失败
- ftp连接:读取目录列表失败