2017-04-06 74 views
-2

我需要在RHEL ver 5.9服務器上打開端口10000。未能打開端口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服務器(測試服務器)」上相同的步驟,並能夠做上述相同的步驟後,t​​elnet來訪問它。

從Windows Server遠程登錄時,我得到的錯誤是:

從窗口: 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

任何想法,我根據我給的信息錯過了什麼?

回答

0

這是告訴你,我找到了解決我的問題的方法。在/ etc/services中,ndmp值不是10000.所以我用正確的值編輯它,然後重新啓動使用該端口並且能夠連接的服務。