【发布时间】:2017-09-01 02:38:37
【问题描述】:
我需要在我的 RHEL 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 服务器远程登录到我的 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
根据我提供的信息知道我错过了什么吗?
【问题讨论】: