Why can not connect to packagist.org from my VPS host?

===========
curl https://packagist.org/packages.json -vvv

  • Hostname was NOT found in DNS cache
  • Trying 2607:5300:201:2100::7:2274…
  • Trying 142.44.164.249…
  • connect to 2607:5300:201:2100::7:2274 port 443 failed: Connection timed out
  • connect to 142.44.164.249 port 443 failed: Connection timed out
  • Failed to connect to packagist.org port 443: Connection timed out
  • Closing connection 0

curl: (7) Failed to connect to packagist.org port 443: Connection timed out

always timeout.

1 Reply

Hello @mindpx,

The error you are seeing appears to be something wrong with your internal configuration. I am able to successfully curl -vvv over IPv6 and IPv4.

We recommend running the following commands to make sure that your iptables rules and networking services are set up correctly and listening.

$ sudo netstat -tulpn

You can check the firewall rules, like so:

$ sudo iptables-save

Guide: https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/

It also may have been a temporary outage or networking issue on packagist.org's side.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct