Both wget and yum timeout the connection.

0

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
0

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.

Ref: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html

AWS
EXPERT
answered 8 months ago
0

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

(*1) https://docs.aws.amazon.com/vpc/latest/reachability/how-reachability-analyzer-works.html

(*2) https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html

Val
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