在Redhat Enterprise Linux中打开一个端口失败

我有一个用于备份的veritas备份服务器(windows server 2012)。 我需要备份的一台服务器(Redhat Enterprise Linux 5.9)无法与我的备份服务器通信。 我已经检查了veritas备份使用的端口,它是10000,并且从windows服务器到linux服务器做了“telnet”,但是失败了,出现以下消息:

连接到…无法打开连接到主机,在端口23:连接失败

所以,我使用netstat -apn|grep -w 10000命令在linux服务器上检查了端口10000,发现它没有显示输出。 因此,我做了以下几点:

 #iptables -I INPUT -p tcp --dport 10000 -j ACCEPT #service iptables save #service iptables restart 

然后我试图validation:

 netstat -apn|grep -w 10000 

但我没有得到任何输出,即使我已经在testing的Linux服务器上尝试过,但我成功地在testing服务器中打开该端口。 以下是我从testing服务器获得的输出:

 # netstat -apn | grep -w 10000 tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 44080/beremote tcp 0 0 :::10000 :::* LISTEN 44080/beremote 

然后我去备份服务器,并做了“telnet”,它成功,然后试图将该testing服务器添加到我的veritas备份…并成功。

下面是我的生产linux服务器的iptables -L命令输出失败通信:

 # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:10000 ACCEPT tcp -- anywhere anywhere tcp dpt:10000 ACCEPT tcp -- anywhere anywhere tcp dpt:10000 ACCEPT tcp -- anywhere anywhere tcp dpt:10000 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:10000 ACCEPT udp -- anywhere anywhere udp dpt:ndmp 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 

任何想法如何打开或使10000端口听?

似乎一切正常,但您的telnet命令尝试打开端口23而不是10000。

(“连接到…无法打开连接到主机,端口23:连接失败”)

尝试

telnet myserver 10000

telnet将连接到端口10000而不是端口23。