Hi,
i have a Xiaomi Mi R3G router with OpenWrt 22.03.0 that i'm trying to use as "wireless router" connected to my school wifi (as a wireless wan). It was all working until recently.
The situation today is that PING and DNS (nslookup) are always working with any host but "internet" is not really working. I also tried traceroute but i think the cisco equipment of my school blocks it.
Some websites requires several attempts before start being displayed (error is connection_reset or connection timeout on the browser). But once they open the work for the next times.
Is there anything i can try?
opkg update does not work Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz *** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz
opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4. opkg_download: Check your network settings and connectivity.
Sometimes some downloads from opkg works, some others not
One additional bit, some times in system log this message appears:
daemon.warn dnsmasq[1]: possible DNS-rebind attack detected:
Yes i know there are network issues when i get error 4 from wget.
But i've opened this thread to find a solution... The fact is that after some attempts webpages get displayed and that PING and DNS are working with no problems at all.
root@openwrt:~# ip route
default via 172.16.216.1 dev wlan0 src 172.16.216.135
172.16.216.0/22 dev wlan0 scope link src 172.16.216.135
192.168.1.0/24 dev br-lan scope link src 192.168.1.1
where 172.16.216.1 is router IP and 172.16.216.0/22 is the wifi subnet in my school.
i have only used luci ui to set up everything.
seems ok until the download attempt. Still opkg update fails on some downloads:
Downloading https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/base/Packages.sig
Signature file download failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/luci/Packages.sig
Signature file download failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/routing/Packages.sig
Signature file download failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/base/Packages.sig, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/luci/Packages.sig, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/routing/Packages.sig, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
This is a specific error. Search the forum for solutions.
In the meantime, download and install curl manually and check if the issues with other sites are caused by connection problems or problems with your computer/browser.
I have managed to install curl after several attempt and several Connection error: Connection timed out i'm right now doing the continuous ping but as i said ping works good with no issue.
I'm at seq=100 right now and no packet loss:
100 packets transmitted, 100 packets received, 0% packet loss
round-trip min/avg/max = 35.384/46.964/126.763 ms
Sorry, I'm out of ideas. Looks like a wireless problem to me.
You've probably already rebooted the router, but have you tried connecting your computer directly to the school wireless network to see if it will make a difference?
Yes i've already rebooted the router several times; Direct connection is ok.
I don't think is a wireless issue since if I start on my PC a vpn connection it works perfectly fine.
Sun Oct 2 20:05:31 2022 daemon.notice netifd: Network device 'wlan0' link is down
Sun Oct 2 20:05:31 2022 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Sun Oct 2 20:05:31 2022 kern.info kernel: [20029.800152] wlan0: disassociated from AP-MAC (Reason: 8=DISASSOC_STA_HAS_LEFT)
Sun Oct 2 20:05:31 2022 daemon.notice netifd: wwan (6354): udhcpc: received SIGTERM
Sun Oct 2 20:05:31 2022 daemon.notice netifd: wwan (6354): udhcpc: unicasting a release of 172.16.216.135 to 172.16.216.9
Sun Oct 2 20:05:31 2022 daemon.notice netifd: wwan (6354): udhcpc: sending release
Sun Oct 2 20:05:31 2022 daemon.notice netifd: wwan (6354): udhcpc: entering released state
Sun Oct 2 20:05:31 2022 daemon.notice wpa_supplicant[1490]: wlan0: CTRL-EVENT-DISCONNECTED bssid=AP-MAC reason=8
Sun Oct 2 20:05:31 2022 daemon.notice netifd: wwan (6354): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Sun Oct 2 20:05:31 2022 daemon.notice netifd: Interface 'wwan' is now down
Sun Oct 2 20:05:31 2022 daemon.notice netifd: Interface 'wwan' is disabled
Sun Oct 2 20:05:31 2022 daemon.warn dnsmasq[1]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct 2 20:05:31 2022 daemon.notice netifd: Interface 'wwan' is enabled
Sun Oct 2 20:05:32 2022 daemon.notice netifd: Network device 'wlan0-1' link is down
Sun Oct 2 20:05:32 2022 kern.info kernel: [20030.886864] br-lan: port 4(wlan0-1) entered disabled state
Sun Oct 2 20:05:33 2022 daemon.notice wpa_supplicant[1490]: wlan0: SME: Trying to authenticate with AP-MAC (SSID='****' freq=2462 MHz)
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.284035] wlan0: authenticate with AP-MAC
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.294757] wlan0: send auth to AP-MAC (try 1/3)
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.303121] wlan0: authenticated
Sun Oct 2 20:05:33 2022 daemon.notice wpa_supplicant[1490]: wlan0: Trying to associate with AP-MAC (SSID='****' freq=2462 MHz)
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.316540] wlan0: associate with AP-MAC (try 1/3)
Sun Oct 2 20:05:33 2022 daemon.notice netifd: Network device 'wlan0' link is up
Sun Oct 2 20:05:33 2022 daemon.notice netifd: Interface 'wwan' has link connectivity
Sun Oct 2 20:05:33 2022 daemon.notice netifd: Interface 'wwan' is setting up now
Sun Oct 2 20:05:33 2022 daemon.notice wpa_supplicant[1490]: wlan0: Associated with AP-MAC
Sun Oct 2 20:05:33 2022 daemon.notice wpa_supplicant[1490]: wlan0: CTRL-EVENT-CONNECTED - Connection to AP-MAC completed [id=0 id_str=]
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.329885] wlan0: RX AssocResp from AP-MAC (capab=0x1001 status=0 aid=2)
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.338084] wlan0: associated
Sun Oct 2 20:05:33 2022 daemon.notice netifd: wwan (6555): udhcpc: started, v1.35.0
Sun Oct 2 20:05:33 2022 daemon.notice netifd: wwan (6555): udhcpc: broadcasting discover
Sun Oct 2 20:05:33 2022 daemon.notice wpa_supplicant[1490]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sun Oct 2 20:05:33 2022 kern.debug kernel: [20031.566676] wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by AP-MAC
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.568207] br-lan: port 4(wlan0-1) entered blocking state
Sun Oct 2 20:05:33 2022 kern.info kernel: [20031.580469] br-lan: port 4(wlan0-1) entered forwarding state
Sun Oct 2 20:05:33 2022 daemon.notice netifd: Network device 'wlan0-1' link is up
Sun Oct 2 20:05:33 2022 daemon.notice netifd: wwan (6555): udhcpc: broadcasting select for 172.16.216.135, server 172.16.216.9
Sun Oct 2 20:05:33 2022 daemon.notice netifd: wwan (6555): udhcpc: lease of 172.16.216.135 obtained from 172.16.216.9, lease time 28800
Sun Oct 2 20:05:33 2022 daemon.notice netifd: Interface 'wwan' is now up
I think i found the issue, it was with the DNS! Even if nslookup was working all the time there was an issue with rebind protection.
All i had to do is disable rebind protection from DHCP settings.