Errors installing mwan3 on 22.03.3

  1. After a factory reset and opkg update, I'm installing luci-app-mwan3 (linked to mwan3 2.11.4-1), but it shows a JSON error:
    Unable to execute opkg install command: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
  2. On the other hand, I also get a firewall warning about mixing iptables and nftables.
Legacy rules detected
There are legacy iptables rules present on the system. Mixing iptables and nftables rules is discouraged and may lead to incomplete traffic filtering.
  1. I read somewhere else we don't have to worry because one it being used for filtering and the other for marking, and the developers are working on finishing the migration. Is that correct? Anyways, I don't know whether the two issues are related, and that's why I mention that part here
  2. Anyways I can continue to configure mwan3, and at first glance it seems it works

Is there anything I can do to help troubleshoot this?

never update packages, if that's what you did.

do another reset.

1 Like

If you've factory reset, you should update to the latest version 22.03.3. See if you get the same error on the latest version.

Edit: also what frollic said

I'm sorry. What I tried to say is I did a factory reset of a fresh 22.03.3 installation to ensure there's no garbage around, and after login again to luci and waiting for a couple of minutes to finish initialization, I updated the list of packages (not the packages) and installed mwan3.

I have done that again, including an extra reset before doing the package-list update and luci-app-mwan3 install, but I got the same error.

Edit: I noted my typo error on the version of OpenWrt (not .2), and updated the title. Sorry about that.

I installed luci-app-mwan3 on my router and I only got the following error on LuCI

# Warning: ip6tables-legacy tables present, use ip6tables-legacy to see them

Do you restore your config before you install the package?

No, I did a factory reset (of my MT7628AN 22.03.3), an additional reset, and installed the MultiWAN packages.

Because d687r02j8g coudn't repplicate the afore mentioned JSON installation error, for comparison, the following is the list of mwan3-related packages the offcial R4AC 22.03.3 image includes or doesn't include:

I also tried with another browser. It seems mwan3 finish the installation, but with a JSON error too:

Unable to execute opkg install command: SyntaxError: Unexpected end of JSON input

Trying to identify whether is one of the dependencies what triggers JSON errors, I started over, installing manually one by one the packages called by the mwan3 installation.

  • Installed without errors: ip-full, ip-tiny, ipset

  • It needed a logout/login before install iptables-nft, iptables-zz-legacy

  • Installed iptables-mod-con w/o error

  • Most of the dependencies are installed by now:

  • I did a reset anyways

Now proceed attempting installing mwan3 again. This time, instead of JSON errors, I got several warnings about the iptables presence:
image

Again, it looks like mwan3 got installed, but this time without JSON errors.

I finished by installing luci-app-mwan3, w/o errors.

Summary: the JSON errors are showing up only when the installation is done the normal way through LuCI.

Another workaround is to install mwan3 and luci-app-mwan3 through the cli.

nanopi r2s here(22.03.3).

I am in a similar situation except luci-app-mwan3 through cli didn't work.
mwan3 installed fine under luci and cli though, just not luci-app-mwan3.

Because the JSON errors when installing through LuCI doesn't ensures me whether the packages will work w/o problems, I rather go to the cli and run:

opkg update
opkg install mwan3
reboot #optional
opkg update #if reboot
opkg install luci-app-mwan3 

Have you done something like that?

Thanks for your reply.

I end up skipping luci, just use nano instead to fit my use case.

Cheers with no beers. :slight_smile:

config globals 'globals'
	option mmx_mask '0x3F00'

config interface 'wan1'
        option enabled '1'
 
config interface 'wan2'
        option enabled '1'

config interface 'wan3'
        option enabled '1'

config interface 'wan4'
        option enabled '1'

config interface 'wan5'
        option enabled '1'

config interface 'wan6'
        option enabled '1'

config interface 'wan7'
        option enabled '1'

config interface 'wan8'
        option enabled '1'

config member 'member_wan1'
	option interface 'wan1'
        option metric '10'

config member 'member_wan2'
        option interface 'wan2'
        option metric '12'

config member 'member_wan3'
        option interface 'wan3'
        option metric '13'

config member 'member_wan4'
        option interface 'wan4'
        option metric '14'

config member 'member_wan5'
        option interface 'wan5'
        option metric '15'

config member 'member_wan6'
        option interface 'wan6'
        option metric '16'

config member 'member_wan7'
        option interface 'wan7'
        option metric '17'

config member 'member_wan8'
	option interface 'wan8'
        option metric '18'

config policy 'policy_wan1'
	list use_member 'member_wan1'

config policy 'policy_wan2'
        list use_member 'member_wan2'

config policy 'policy_wan3'
        list use_member 'member_wan3'

config policy 'policy_wan4'
        list use_member 'member_wan4'

config policy 'policy_wan5'
        list use_member 'member_wan5'

config policy 'policy_wan6'
        list use_member 'member_wan6'

config policy 'policy_wan7'
        list use_member 'member_wan7'

config policy 'policy_wan8'
	list use_member 'member_wan8'

config rule 'a'
	option src_ip '192.168.21.51'
        option use_policy 'policy_wan1'

config rule 'c'
        option src_ip '192.168.21.50'
        option use_policy 'policy_wan3'

config rule 'e'
        option src_ip '192.168.21.60'
        option use_policy 'policy_wan5'

config rule 'ee'
        option src_ip '192.168.21.61'
        option use_policy 'policy_wan5'

config rule 'eee'
        option src_ip '192.168.21.55'
        option use_policy 'policy_wan5'

config rule 'f'
        option src_ip '192.168.21.56'
        option use_policy 'policy_wan6'

config rule 'g'
        option src_ip '192.168.21.57'
        option use_policy 'policy_wan7'

config rule 'h'
        option src_ip '192.168.21.58'
        option use_policy 'policy_wan8'

config rule 'default_rule'
        option dest_ip '0.0.0.0/0'
        option use_policy 'policy_wan5'