首页 文章

无法打开端口10000

提问于
浏览
-2

我需要在我的RHEL ver 5.9服务器上打开端口10000 .

我打开它做了什么:

  • 停止iptables服务:
    # service iptable stop

  • 当然从root用户执行此命令:
    # iptables -I INPUT -p tcp --dport 10000 -j ACCEPT

  • # iptables-save > /etc/sysconfig/iptables

  • # service iptables start

使用iptables -L命令验证: # iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:10000

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

我能够从这个RHEL服务器上telnet到我的Windows Server 2012.但我无法从Windows服务器远程登录 .

我认为这是Linux防火墙而不是Windows防火墙的问题,因为我在“linux服务器(测试服务器)”上执行了相同的步骤,并且能够在执行上述相同步骤后telnet它 .

从Windows服务器telnet时我得到的错误是:

来自windows: telnet <ip_address_of_targeted_linux_server> 10000

输出: connecting to <ip_address_of_targeted_linux_server> ... could not open connection to the host, on port 10000: connect failed

根据我给出的信息,知道我错过了什么吗?

1 回答

  • 0

    这是为了通知您我找到了解决问题的方法 . 在/ etc / services中,ndmp值不是10000.所以我用正确的值编辑了它,然后重新启动了使用该端口并且能够连接的服务 .

相关问题