出现ftp:connect:No route to host问题解决办法
2016-12-21 11:00
1501 查看
今天安装过vsftpd后,基本配置已经ok;
在本地可以正常访问到
在其他server访问,提示
ftp: connect: No route to host
查了一下,和vsftpd服务的配置无关,因为本地已经可以正常访问到,首先考虑是防火墙是否添加21端口,
用命令iptables -L --line-num
发现已经添加了,此外,只能考虑是防火墙少了ftp的模块,导致出现的error
编辑vi /etc/sysconfig/iptables-config
添加一行:IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp"
之后重新启动iptables
[root@In-Server3 ~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_nat_ftp ip_conntrack_ftp [ OK ]
ok,模块已经加载了了
再访问ftp服务
就ok了。。。。。。
在本地可以正常访问到
在其他server访问,提示
ftp: connect: No route to host
查了一下,和vsftpd服务的配置无关,因为本地已经可以正常访问到,首先考虑是防火墙是否添加21端口,
用命令iptables -L --line-num
发现已经添加了,此外,只能考虑是防火墙少了ftp的模块,导致出现的error
编辑vi /etc/sysconfig/iptables-config
添加一行:IPTABLES_MODULES="ip_nat_ftp ip_conntrack_ftp"
之后重新启动iptables
[root@In-Server3 ~]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_nat_ftp ip_conntrack_ftp [ OK ]
ok,模块已经加载了了
再访问ftp服务
就ok了。。。。。。
相关文章推荐
- 启动hadoop出现ssh: connect to host master port 22: No route to host 问题解决方案
- Linux ftp: connect: No route to host解决办法
- socke连接的一些问题的解决:1.connect: Connection refused 2.connect: No route to host
- Redis系列~(十七)Could not connect to Redis No route to host问题解决
- python程序中Connect error: No route to host(errno:113) 连接错误解决办法--关闭iptables防火墙
- Connect error: No route to host(errno:113) 连接错误解决办法--关闭iptables防火墙
- ftp connect: No route to host 解决过程
- Could not connect to Redis No route to host问题解决
- ftp: connect: No route to host
- 在服务器上用PHPMAIL发送邮件出现Could not connect to SMTP host错误 解决办法
- RHEL 5下配置Hadoop集群:java.net.NoRouteToHostException: No route to host问题的解决
- Tortoise-SVN 出现“unable to connect to a repository at url no element found”解决办法
- no route to host zabbix的解决办法
- wordpress之SMTP发送邮件出现Could not connect to SMTP host解决办法
- CentOS下配置Hadoop集群:java.net.NoRouteToHostException: No route to host问题的解决
- git配置的时候出现connect to host github.com port 22 bad file number解决办法
- iptables 下的 vsftp ftp: connect: No route to host
- python中socket编程出现的no route to host问题。
- NO Route to Host 的解决办法
- 解决负载均衡中遇到Failed to connect to 10.3.3.173 port 443: No route to host