Not able to connect to internet from Amazon EC2 instance linux box

混江龙づ霸主 提交于 2019-12-25 01:46:53

问题


In the amazon EC2 instance, i have set the set the inbound/outbound of security group to MY-IP address.

When i try to install the mysql client or some other software, its saying connection timeout.

But when i make the inbound/outbound to anywhere ie 0.0.0.0/00, then i am able to install the software.

But i don't want to expose the EC2 instance requests to everyone.

How to connect to Internet and install the software with restricted security groups. Please can u help out on this.


回答1:


To be able to access Internet freely, you should allow outgoing network traffic.

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.




回答2:


In Security group, Set the outbound traffic to the below

Protocol      Port Range  Source  
All Traffic   All  All    0.0.0.0/0


来源:https://stackoverflow.com/questions/28727289/not-able-to-connect-to-internet-from-amazon-ec2-instance-linux-box

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!