始终使用telnet拒绝连接

时间:2013-12-20 01:08:13

标签: smtp centos telnet

我在本地使用telnet时遇到了麻烦。

我发出了这个命令并得到了这些结果:

[root@myserver ~]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

这是我的iptables结果:

[root@myserver ~]# iptables --line-numbers -n -L
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25 
2    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:465 

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination

还有什么我应该做的吗?

1 个答案:

答案 0 :(得分:0)

默认的telnet端口是23.您实际打开了25端口吗?我建议您逐步检查您的设置。尝试不使用iptables,并确保您的telnet正常工作。然后应用iptables规则。