我在工作的VPC中创建了一个新的EC2实例 . 我们使用堡垒连接到专用网络 . 问题是,一旦连接(通过ssh),我无法下载任何软件包或安装任何东西,因为该实例似乎是关闭互联网 .

这些是实例的安全组中配置的规则:

入境 -

enter image description here

出境 -

enter image description here

命令如git clone repo或apt-get update timeout . 谷歌ping不返回任何内容 .