I just did a sysupgrade to a new image I built from the GitHub repo. I checked the distfeeds.conf file and all the repos start with http://downloads.openwrt.org. is the regular http port not open on the repos anymore? I can't connect to that url in my browser, either, but I can connect if I change it to https. I tried changing it to https in distfeeds.conf but the I get a SSL error.
$ curl http://downloads.openwrt.org/ | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>OpenWrt Downloads</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
height: 100%;
}
$ drill downloads.openwrt.org
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 28176
;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; downloads.openwrt.org. IN A
;; ANSWER SECTION:
downloads.openwrt.org. 40459 IN CNAME mirror-02.infra.openwrt.org.
mirror-02.infra.openwrt.org. 86 IN A 176.9.48.73
Downloading http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/base/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/base/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/luci/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/luci/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/packages/Packages.gz
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/routing/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/routing/Packages.gzCollected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/base/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/luci/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/routing/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
Downloading http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/telephony/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.4/packages/mipsel_24kc/telephony/Packages.gz
$ curl -o /dev/null http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 71503 100 71503 0 0 68686 0 0:00:01 0:00:01 --:--:-- 68686
Return status of 4 is a "network error" -- potentially you don't have connectivity or DNS.
root@OpenWrt:~# curl -o /dev/null http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz
-ash: curl: not found
root@OpenWrt:~# wget -O /dev/null http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz
Downloading 'http://downloads.openwrt.org/releases/18.06.4/targets/ramips/mt7620/packages/Packages.gz'
Connecting to 176.9.48.73:80
Connection error: Connection failed
root@OpenWrt:~# nc downloads.openwrt.org 80
nc: can't connect to remote host (176.9.48.73): Connection refused
root@OpenWrt:~# nc downloads.openwrt.org 443
GET /
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head><body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
root@OpenWrt:~#
Apparently it's something to do with my network. I can't connect to port 80 on that site on any computer on my network, but other sites are working.
arch2 mt7620 $ telnet downloads.openwrt.org 80
Trying 176.9.48.73...
Connection failed: Connection refused
Trying 2a01:4f8:150:6449::2...
telnet: Unable to connect to remote host: Network is unreachable
arch2 mt7620 $ telnet downloads.openwrt.org 443
Trying 176.9.48.73... Connected to downloads.openwrt.org.
Escape character is '^]'.
GET /
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head><body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
Connection closed by foreign host.
arch2 mt7620 $
Edit: actually, it looks like I can't connect to port 80 on any site. Maybe I messed up my firewall settings on my EdgeRouter.
Yes this seems to be a problem specific to @loophole network, http to downloads site still works for me.
I can connect to sites on port 80 if I do it through SSH on my router. Every other device on the network can't connect to port 80 on internet hosts but they can connect to other ports on internet hosts.
Router:
loophole@ubnt# telnet downloads.openwrt.org 80
GET /
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
Connection closed by foreign host
[edit]
loophole@ubnt#
I'm going to mark this solved since it's not related to OpenWrt.
I just figured out what was wrong. I changed the cache-size on the squid webproxy service on my router this morning, and I just checked /var/log/messages. The squid server kept logging a message about the storage location not existing, then crashing and restarting every couple seconds. Once I changed the cache-size back to it's original value, HTTP started working again on all my devices.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.