EC2 - Access to internet is not working


Hi everyone. My 2 EC2 (Windows Server 2022) instances are not able to reach any destination on internet. I'm on east-2 region and the problem started with one of the instances; hours latter the second one got the same problem. I have apps that connects to remote databases, but the connections fail because the remote servers aren't reachable.

In other hand, I can connect to those apps from outside, so the problem is not with the incoming traffic. I've checked the VPC configuration, and nothing has changed since along time ago.

Ping to external sites are not working

Trying to open sites on web browser is not working

Running a network diangostic shows the problem is with DNS Server

2 Answers
  • Make sure of the routing of the EC2 subnet route table, if the EC2 is in private subnet (has only private IP address) then make sure it has a default route to the NAT Gateway, or if the EC2 is in public subnet (has a public IP address) then make sure it has a default route to the Internet Gateway.
  • Make sure of the security group and the ACLs are not blocking the traffic.
  • If the above does not resolve the issue, then enable VPC flow logs and see how the traffic flow
profile pictureAWS
answered a month ago
profile pictureAWS
reviewed a month ago

The screenshot shows you can get in okay, is this directly by RDP over the internet to the public IP, or another method (e.g. bastion host, peered VPC, Direct Connect, or others)?

The route table for the subnet in which the Windows instance is provisioned would be the best place to start looking, extensive advice on how to troubleshoot and what to look out for is in

As @Matt_E says, also check outbound security group rules, and if you're not getting anywhere then turn on VPC flow logs.

profile picture
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions