- Newest
- Most votes
- Most comments
As your VPC flow log dictates, a security group or ACL is blocking access. Does your Network ACL allow inbound access also? This is needed for return packets
REJECT OK
Based on the information provided, it appears that you've thoroughly checked most of the common causes for outbound connectivity issues on an EC2 instance. Since you've confirmed that the security group, network ACL, routing, and VPC configurations are correct, and that a new instance with the same settings works fine, the issue is likely specific to the original EC2 instance itself.
Here are a few additional things to consider:
-
Instance Metadata: Check if there are any issues with the instance metadata service. Try accessing the metadata URL from within the instance: curl http://169.254.169.254/latest/meta-data/
-
Network Interface: Verify that the network interface is correctly attached and configured: ip addr show ifconfig
-
MTU Settings: Ensure that the MTU (Maximum Transmission Unit) is set correctly: ip link show
-
TCP Timestamps: Sometimes, issues with TCP timestamps can cause connectivity problems. Try disabling them: sudo sysctl -w net.ipv4.tcp_timestamps=0
-
Instance Status Checks: Review the instance status checks in the EC2 console to see if there are any reported issues.
-
VPC Reachability Analyzer: Use the VPC Reachability Analyzer to trace the path from your instance to an external IP address (e.g., 8.8.8.8) on port 443.
-
AWS Support: If none of the above resolves the issue, it's possible that there could be an AWS-side restriction or issue specific to this instance. In this case, contacting AWS Support would be the best course of action. They can investigate if there are any account-specific or instance-specific blocks or issues that are not visible to you through the regular AWS console or API.
-
Instance Replacement: As a last resort, if AWS Support cannot identify any issues, consider terminating the problematic instance and launching a new one from the AMI you created. This approach would help isolate whether the problem is tied to the specific instance or if it's a broader issue within your AWS environment.
Remember to back up any important data before making significant changes to your instance.
Sources
Troubleshoot connection to AWS service endpoints from Linux | AWS re:Post
EC2 internet inbound/outbound not working us-east-1, works in all other regions | AWS re:Post
answered 2 years ago
I strongly recommend that you try out VPC Reachability Analyzer. It was designed to diagnose issues like this.
Relevant content
asked 5 years ago

Yes, my Network ACL allows for inbound access. Just like with the outbound access I only have two rules. The Deny all rule with the * and Rule 100 with Allow all. Both allowing all traffic, all protocols, all port ranges, and source set to 0.0.0.0/0