【问题标题】:Failing to open port 10000无法打开 10000 端口
【发布时间】:2017-09-01 02:38:37
【问题描述】:

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

我做了什么来打开它:

  1. 已停止 iptables 服务:
    # service iptable stop

  2. 当然是从 root 用户执行这个命令:
    # iptables -I INPUT -p tcp --dport 10000 -j ACCEPT

  3. # iptables-save > /etc/sysconfig/iptables
  4. # 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 服务器远程登录到我的 windows server 2012。但我无法从 windows 服务器远程登录。

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

从 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

根据我提供的信息知道我错过了什么吗?

【问题讨论】:

    标签: linux tcp port iptables


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-30
      • 2018-12-29
      相关资源
      最近更新 更多