首页 > 解决方案 > 无法从 ec2 linux 实例连接到特定域

问题描述

我正在尝试从 ec2 微型实例连接到以下域:http ://www.bnm.gov.my但它似乎被阻止了。

我尝试使用 curl 做一个简单的请求。

curl http://www.bnm.gov.my

这给了我以下错误:

curl: (7) Failed to connect to www.bnm.gov.my port 80: Connection timed out

我试过 wget

 wget http://www.bnm.gov.my

并得到以下错误:

--2018-10-31 14:33:06--  http://www.bnm.gov.my/
Resolving www.bnm.gov.my (www.bnm.gov.my)... 103.6.236.129
Connecting to www.bnm.gov.my (www.bnm.gov.my)|103.6.236.129|:80... failed: Connection timed out.
Retrying.

此外,traceroute 超时。

我可以从我的电脑以及像 downforeveryoneorjustme dot com 和 uptrends 这样的网站访问该网站,以检查该网站是否有任何问题,但这似乎是我的亚马逊实例。

我可以访问互联网,我可以使用 curl 请求其他网站...但是这个特定的网站无法正常工作...

感谢您对如何解决此问题的任何想法!

VPC 的当前 ACL 配置。(实例在 VPC 中运行)

Outbound

Rule #  Type    Protocol    Port Range  Destination Allow/Deny
100 All IPv4 traffic all      all       0.0.0.0/0    ALLOW
*   All IPv4 traffic all      all       0.0.0.0/0    DENY

标签: amazon-web-servicescurlamazon-ec2

解决方案


推荐阅读