3 Answers
- Newest
- Most votes
- Most comments
1
Can you try the points below:
- Check your internet gateway(IGW)
- Is your IGW attached to the right VPC
- Check your route table (is the host in question in the right subnet)
- Check your network ACL (remember it's not stageful as SG - traffic must be allowed on both directions)
- With the Source as IGW & Destination host (port 22), run the Reachability Analyzer and share the result.
answered 2 years ago
1
Have you checked the routing of the EC2 instance ? Have you connected to the Internet Gateway for the traffic to reach the internet and reverse ? The error clearly mentions that there is a network setting missing from the configuration.
0
Thanks guys! The reason of this problem is that I had created a new vpc , and i did not set the "0.0.0.0/0" for igw in the route table of this new vpc , so this ec2 ins can not access internet through this vpc bidirectionally
answered 2 years ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
Is your EC2 instance in a public subnet? If so, have you checked if your subnet is associated with a route table that has a route to an internet gateway)?