免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4226 | 回复: 6
打印 上一主题 下一主题

centOS rsh 配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-13 17:54 |只看该作者 |倒序浏览
本帖最后由 soccer 于 2010-06-13 18:00 编辑

2 台机器,机器A, 机器B,

.rhosts都写机器A和B,

其中机器A可以rsh到B,没有任何问题。
但是机器B到A,报下列错误:

10.88.52.77: No route to host

所有的配置都一样,唯一的区别是,机器A上有下列防火墙配置,

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     esp  --  anywhere             anywhere
ACCEPT     ah   --  anywhere             anywhere
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:mdns
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

机器B上没有防火墙,

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

有遇到过类似问题的朋友吗。

谢谢

论坛徽章:
0
2 [报告]
发表于 2010-06-13 19:20 |只看该作者
你也至少開個 port 514 允許連入該服務。

论坛徽章:
0
3 [报告]
发表于 2010-06-14 23:25 |只看该作者
你也至少開個 port 514 允許連入該服務。
kenduest 发表于 2010-06-13 19:20



   你是指在机器A 上开放端口 514  吗?

论坛徽章:
0
4 [报告]
发表于 2010-06-15 19:38 |只看该作者
如果你怀疑是防火墙问题,你可以把A的防火墙规则清空一下测试啊。

2楼说的port 514端口应该指的是远程syslog的UDP 514端口。

你可以看看B机器上的UDP 514端口有没有处于监听状态,再确定是否开启514端口。

论坛徽章:
0
5 [报告]
发表于 2010-06-16 01:59 |只看该作者
應該是 port 513, 打錯囉

论坛徽章:
0
6 [报告]
发表于 2010-06-17 12:12 |只看该作者
iptables -A OUTPUT -p tcp --sport 513 -j ACCEPT

iptables -A INPUT -p tcp --dport 513 -j ACCEPT

开放了513端口, 还是 No route to host ....

论坛徽章:
0
7 [报告]
发表于 2010-06-17 16:10 |只看该作者
解决了, 是iptables 端口限制造成的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP