无法从Amazon EC2实例Linux框连接到Internet [英] Not able to connect to internet from Amazon EC2 instance linux box
问题描述
在Amazon EC2实例中,我已将安全组的入站/出站设置为MY-IP地址.
In the amazon EC2 instance, i have set the set the inbound/outbound of security group to MY-IP address.
当我尝试安装mysql客户端或其他软件时,它会说连接超时.
When i try to install the mysql client or some other software, its saying connection timeout.
但是当我将入站/出站设置到任何地方(即0.0.0.0/00)时,便可以安装该软件.
But when i make the inbound/outbound to anywhere ie 0.0.0.0/00, then i am able to install the software.
但是我不想向所有人公开EC2实例请求.
But i don't want to expose the EC2 instance requests to everyone.
如何连接到Internet并使用受限制的安全组安装软件.请你帮忙.
How to connect to Internet and install the software with restricted security groups. Please can u help out on this.
推荐答案
要能够自由访问Internet,您应该允许传出网络流量.
To be able to access Internet freely, you should allow outgoing network traffic.
为此,请在EC2安全组中为all traffic
至0.0.0.0/0
创建一个outbound rule
.这是EC2的默认设置,不应该成为安全问题.
To do so, create an outbound rule
for all traffic
to 0.0.0.0/0
in your EC2 Security Group. This is a default setting with EC2 and it shouldn't be a security concern.
这篇关于无法从Amazon EC2实例Linux框连接到Internet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!