我需要在RHEL ver 5.9服務器上打開端口10000。未能打開端口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我的Windows Server 2012端口上,但我不能夠從遠程登錄Windows服務器。
我認爲這是從Linux的防火牆不是Windows防火牆中的問題,因爲我做了「Linux服務器(測試服務器)」上相同的步驟,並能夠做上述相同的步驟後,telnet來訪問它。
從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
任何想法,我根據我給的信息錯過了什麼?