Score:0

Ubuntu on AWS lightsail curl: (7) Failed to connect to google.com port 80: Connection timed out

eg flag

I inherited this AWS account that has a Lightsail Instance with Ubuntu on it, it seems like this server can't connect to internet? I tried a simple curl call like so:

curl --url google.com

And got this error:

curl: (7) Failed to connect to google.com port 80: Connection timed out

I also tried to run this command:

sudo apt-get update

And I get a bunch of these errors:

Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease                         
  Cannot initiate the connection to ppa.launchpad.net:80 (2620:2d:4000:1::3e). - connect (1
01: Network is unreachable) Could not connect to ppa.launchpad.net:80 (185.125.190.52), con
nection timed out

I have no idea what the issue is here, if its a firewall issue, or an ssl issue, I am very new to AWS. Does anyone have any ideas what the issue could be?

Here is the Lightsail firewall rules:

enter image description here

user979331 avatar
eg flag
I don't know how or why, but running this command and rebooting the server worked for me. `sudo iptables -F`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.