Can't update software lists

Hey everyone

Just installed OpenWRT on my xiaomi 4a gigabit router & I wanted to activate the built-in VPN feature But I can't get access to the luci softwares in my "softwares tab.Updatingthe list(opkge update)will return with a code 6 error.

I tried inserting the link to the specfic and downloading it seperately but I get a code 255 error andI can't upload the databse files locally with the same error

I've also set the wan and the lan IPs seperately and pinged both google and Openwrt.org and both seem to transfer data with no problem

Is the R4AG wan port wired into spare LAN port of your ISP facing router?

What are the LAN IP addresses of both the R4AG (eg. 192.168.1.1) and main router?
ie. are they on DIFFERENT subnets.

1 Like

My PC is connected via LAN to my DSL Modem and I've used another LAN cable to extend the internet to the 4a router

DSL modemr is 192.168.1.1
Router is 192.168.2.1 with OpenWRT installed

Although I Get a "illegal file access" whenever I try to loadup the modem's setting along with a 400 bad request

Please post the contents of the /etc/config/network file.

Which OpenWrt image did you install ?

1 Like

Appreciate you taking the time. Thanks a lot!

Where/how can I acess or generate etc/config/network ?

I installed the lastest on the offical OpenWRT: 21.02.1

Grabbed it from the installation page here

If you use Windows, you can use WinSCP. Use 'scp' file transfer protocol.

https://openwrt.org/docs/guide-quick-start/sshadministration

Alternatively, if you create a backup archive of the openwrt settings with LuCI, use a suitable utility to extract the contents of the tar.gz file.

Windows users can use WinRAR, or WinZIP to open the tar.gz file. Use Notepad++ to actually open and view the contents of the /etc/config/network file.

Can you confirm you tried using openwrt default settings on the R4AG, but still encountered problems with package list update in LuCI not working?

1 Like

Content:

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option packet_steering '1'
	option ula_prefix 'fd18:048d:9bfa::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option ipaddr '192.168.2.1'

config interface 'wan'
	option device 'wan'
	option proto 'dhcp'

config interface 'wan6'
	option device 'wan'
	option proto 'dhcpv6'

and I did reset and try but I got the "bad adress" error after I tried to ping both openwrt and google with the default settings

My bad, you are correct, you do indeed have to change the LAN IP of the R4AG to ensure it does not clash with your main router's LAN IP.

The newly posted config appears to show you only changed the LAN IP of the R4AG ?

LuCI > Network > Diagnostics. Use IPv4 Ping

What happens when you ping say 8.8.8.8 and www.google.com ?

1 Like

8.8.8.8:

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=105 time=271.186 ms
64 bytes from 8.8.8.8: seq=1 ttl=105 time=209.909 ms
64 bytes from 8.8.8.8: seq=2 ttl=105 time=219.740 ms
64 bytes from 8.8.8.8: seq=3 ttl=105 time=271.712 ms
64 bytes from 8.8.8.8: seq=4 ttl=105 time=239.724 ms

--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 209.909/242.454/271.712 ms

Google:

PING google.com (142.250.180.46): 56 data bytes
64 bytes from 142.250.180.46: seq=0 ttl=108 time=188.820 ms
64 bytes from 142.250.180.46: seq=1 ttl=108 time=205.170 ms
64 bytes from 142.250.180.46: seq=2 ttl=108 time=147.327 ms
64 bytes from 142.250.180.46: seq=3 ttl=108 time=110.349 ms
64 bytes from 142.250.180.46: seq=4 ttl=108 time=110.460 ms

--- google.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 110.349/152.425/205.170 ms

The ping times look awfully high?
What type of broadband connection is this?

Can you also try pinging

downloads.openwrt.org
1 Like

I'm from the middle east so the overall speed quality isn't that good which explains the ping, I suppose. DSL 2 I believe

Downloads.openwrt.org:

PING downloads.openwrt.org (168.119.138.211): 56 data bytes
64 bytes from 168.119.138.211: seq=0 ttl=50 time=171.036 ms
64 bytes from 168.119.138.211: seq=1 ttl=50 time=179.653 ms
64 bytes from 168.119.138.211: seq=2 ttl=50 time=190.832 ms
64 bytes from 168.119.138.211: seq=3 ttl=50 time=166.981 ms
64 bytes from 168.119.138.211: seq=4 ttl=50 time=165.755 ms

--- downloads.openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 165.755/174.851/190.832 ms

Using a web browser, I presume you can access and retrieve any file from:

https://downloads.openwrt.org/releases/21.02.1/targets/

A bit of a long shot, SSH into the R4AG (use PuTTY if you are using Windows) and try the command

opkg update list

Apart from downloading and flashing the sysupgrade.bin file (try 21.02.0?) via LuCI, and do not keep settings (Remember to change the LAN IP), I'm out of other suggestions.

1 Like

Just tried that and I still get the network connectivity error !

isn't there a way to make a firmware that includes the vpn packages and then flash that?

If you are familiar with linux, you could try using openwrt image builder?

Thinking out of the box, perhaps it is not an R4AG problem? Could it be an ISP firewall/content blocking issue?

1 Like

I'm on windows. any chance of there being a work around?

Also I can't find previous openwrt versions.Is there an archive of sorts around ?

We do have certain websites filtered and blocked by ISPs and use VPN to access them but openwrt.org opens up with no issue and to make sure I used a wifi hotspot with the VPN runing on it and had my laptop connected to the hotspot and ran the okg update command there and still nothing

Are you running the pings on the router or on the PC?

The router itself needs Internet access, which usually is properly configured automatically with a DHCP from the ISP modem.

1 Like

On the router under the diagnostics section and I have internet access

You said there is an error 6 from wget. This is unusual-- the usual problem is error 4 (Network Failure).

Error 6 should not occur since the OpenWrt site does not use passwords.

1 Like

That is very strange!
I just checked again & it's still error code 6! Could it be a firewall of sorts ?

What about the R4AG?
Was it connected to the wireless hotspot running VPN ?

1 Like