Both wget and yum timeout the connection.


When I use wget and yum to download web resources, both show a connection timeout. The firewall is down and I can ping, but I just can't download resources via wget and yum!

asked 8 months ago264 views
2 Answers

You question is not very specific, but I assume since you are speaking of using wget and yum, that you are trying to reach the Internet from an EC2 Linux instance within a VPC.

Assuming that your ec2 instance has either an elastic IP or a public IP assigned to it, and the instance security group allows appropriate outbound TCP traffic, the most common reason for this type of timeout is if the VPC sub-net in which you have placed the instance is a private sub-net. This means that the route table associated with the sub-net in which your instance has been placed does not have a default route to an internet gateway that is associated with the VPC.


answered 8 months ago

There can be multiple reasons. W/o additional details, I would recommend Reachability Analyzer (*1) or VPC flow log (*2).



answered 8 months 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