我无法将/ telnet连接到127.0.0.1上的任何端口,但可以ping 127.0.0.1。 但是,我可以通过我的外部IP连接。 我试过了我能想到的一切,包括:validation服务正在监听所有接口,禁用iptables,重新configuration,重新启动(最后的手段)。 这是在OpenVZ下运行的虚拟机。 这一次按预期工作。 我知道的唯一变化是通过“yum update”定期更新。
我正在拉我的头发。 任何build议,非常感谢!
# telnet 127.0.0.1 25 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection timed out # telnet 192.168.1.69 25 Trying 192.168.1.69... Connected to 192.168.1.69 Escape character is '^]'. 220 vps39.myhosting.com ESMTP Sendmail 8.14.4/8.14.4; Wed, 25 Jan 2017 20:01:57 -0500 # telnet 127.0.0.1 80 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection timed out # telnet 192.168.1.69 80 Trying 192.168.1.69... Connected to 192.168.1.69. Escape character is '^]'. # netstat -anp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1572/sendmail tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 778/mysqld tcp 0 0 0.0.0.0:22222 0.0.0.0:* LISTEN 625/sshd tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 849/httpd # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:277 errors:0 dropped:0 overruns:0 frame:0 TX packets:277 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16737 (16.3 KiB) TX bytes:16737 (16.3 KiB) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:10852 errors:0 dropped:0 overruns:0 frame:0 TX packets:8989 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:899546 (878.4 KiB) TX bytes:1868927 (1.7 MiB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:192.168.1.69 PtP:192.168.1.690 Bcast:192.168.1.69 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 # ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.033 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.019 ms ^C # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination