问题
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