我有两个具有以下规格的服务器:
IP地址:192.168.1.94
IP地址:192.168.1.221
我想telnet
从第二个到第一个(到端口5029),但是出现此错误:
root@debian:~# telnet 192.168.1.94 5029
Trying 192.168.1.94...
telnet: Unable to connect to remote host: Connection refused
我可以从192.168.1.94 telnet到它自己。这意味着程序正在侦听5029端口:
[root@myelastix ~]# telnet localhost 5029
Trying 127.0.0.1...
Connected to myelastix.mohaymen.co (127.0.0.1).
Escape character is '^]'.
我认为可能是防火墙阻止了192.168.1.94服务器中的连接,但这是防火墙规则:
[root@myelastix ~]# iptables -L
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
除了我停止了iptables之外,什么也没有发生:
[root@myelastix ~]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
问题是什么?
你能做这个吗?
[root@myelastix ~]# telnet 192.168.1.94 5029
如果不是,请确保telnetd
已配置为在外部接口上侦听。
netstat -tulpn | grep :5029
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句