rsync: failed to connect to X.X.X.X: No route to host (113)

本文涉及的产品
云防火墙,500元 1000GB
简介:

今天一早到公司,就收到报警邮件,某一 rsync 定时传送备份任务没成功执行。跑上服务器看了下报错信息,如下:

  rsync: failed to connect to X.X.X.X: No route to host (113)

  rsync error: error in socket IO (code 10) at clientserver.c(107) [sender=2.6.8]


  两台主机能相互ping通,报错信息 却说 没有路由到主机!

  网上搜了搜,找到了问题的答案,如下:


  故障原因:对方没开机、防火墙阻挡、通过的网络上有防火墙阻挡,都有可能。

  解决方法:关闭防火墙,或者把防火墙的tcp udp 的873端口打开,允许rsync通过。

  实施方案:

  1、防火墙的启动与停止

  # service iptables start / stop

  2、允许rsync通过防火墙

  为防重启将规则清除,我将规则直接加到规则配置文件里边了(/etc/sysconfig/iptables),如下:

  -A INPUT -p tcp -s X.X.X.X --dport 873 -j ACCEPT 

  注意,这条规则要加在REJECT规则前。

  加好后,重启下 iptables(# service iptables restart)。


原文链接:http://blog.sina.com.cn/s/blog_65f2d7050100v6dz.html


      本文转自独弹古调  51CTO博客,原文链接:http://blog.51cto.com/hunkz/1650694,如需转载请自行联系原作者





相关文章
|
4月前
|
应用服务中间件 nginx Docker
connect() failed (113: No route to host) while connecting to upstream
connect() failed (113: No route to host) while connecting to upstream
151 0
|
5月前
|
网络安全
阿里云Could not connect to SITP host: smtp.163.com,port: 25;
阿里云Could not connect to SITP host: smtp.163.com,port: 25;
207 1
|
6月前
|
分布式计算 Hadoop 网络安全
[m1pro ] ssh: connect to host localhost port 22: Connection refused
[m1pro ] ssh: connect to host localhost port 22: Connection refused
|
6月前
|
Kubernetes Perl 容器
k8s创建完pod后报错: Failed connect to 10.244.36.90:8000; No route to host
k8s创建完pod后报错: Failed connect to 10.244.36.90:8000; No route to host
154 0
|
网络安全
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1535 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
|
Kubernetes 网络协议 容器
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
981 0
|
Linux 网络安全
ssh: connect to host 10.13.69.163 port 22: No route to host
ssh: connect to host 10.13.69.163 port 22: No route to host
|
数据安全/隐私保护
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
关于这个错误其实遇到过好多次了,基本都是在每次换电脑之后执行
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
218 0