Mwan3 installation on flint 4.8.3 is cutting off internet access

Happy holidays all!

I noticed that when i install mwan3 on flint 4.8.3 internet access is broken with the default configuration. In the past in 4.7.4 all was working fine even when I had just 1 connection active.

I read that this is due to kmwan being used as more reliable mechanism.

I did upgrade my flint2 in the following manner

  1. created a list of packages installed
  2. created backup
  3. installed the new image without config preservation
  4. installed the packages i need
  5. ran sdiff between the old configuration files and the new ones to check for changes

I did reset the router several times after upgrade , until i found out by chance that mwan3 in default mode is messing up with routing. Any clues how to fix without removing the mwan3 package are welcome. if not possible, just let me know. I am happy that the fix is simple - remove mwan3.

Pasting my 4.7.4 config which is similar to the one in the 4.8.3 firmware.

thanks for any clues


config globals 'globals'
	option enabled '1'
	option mmx_mask '0x3F00'

config interface 'wan'
	option enabled '1'
	list track_ip '1.1.1.1'
	list track_ip '8.8.8.8'
	list track_ip '208.67.222.222'
	list track_ip '208.67.220.220'
	option family 'ipv4'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config interface 'wwan'
	option enabled '1'
	list track_ip '1.1.1.1'
	list track_ip '8.8.8.8'
	list track_ip '208.67.222.222'
	list track_ip '208.67.220.220'
	option family 'ipv4'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config interface 'tethering'
	option enabled '1'
	list track_ip '1.1.1.1'
	list track_ip '8.8.8.8'
	list track_ip '208.67.222.222'
	list track_ip '208.67.220.220'
	option family 'ipv4'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config member 'wan_only'
	option interface 'wan'
	option metric '1'
	option weight '3'

config member 'wwan_only'
	option interface 'wwan'
	option metric '2'
	option weight '3'

config member 'tethering_only'
	option interface 'tethering'
	option metric '3'
	option weight '3'

config member 'wan_balance'
	option interface 'wan'
	option metric '1'
	option weight '3'

config member 'wwan_balance'
	option interface 'wwan'
	option metric '1'
	option weight '3'

config member 'tethering_balance'
	option interface 'tethering'
	option metric '1'
	option weight '3'

config policy 'default_poli'
	list use_member 'wan_only'
	list use_member 'wwan_only'
	list use_member 'tethering_only'
	option last_resort 'default'

config rule 'default_rule'
	option dest_ip '0.0.0.0/0'
	option use_policy 'default_poli'
	option family 'ipv4'

config interface 'wan6'
	option enabled '1'
	list track_ip '2001:4860:4860::8844'
	list track_ip '2001:4860:4860::8888'
	list track_ip '2620:0:ccd::2'
	list track_ip '2620:0:ccc::2'
	option family 'ipv6'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config interface 'wwan6'
	option enabled '1'
	list track_ip '2001:4860:4860::8844'
	list track_ip '2001:4860:4860::8888'
	list track_ip '2620:0:ccd::2'
	list track_ip '2620:0:ccc::2'
	option family 'ipv6'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config interface 'tethering6'
	option enabled '1'
	list track_ip '2001:4860:4860::8844'
	list track_ip '2001:4860:4860::8888'
	list track_ip '2620:0:ccd::2'
	list track_ip '2620:0:ccc::2'
	option family 'ipv6'
	option reliability '1'
	option count '1'
	option timeout '2'
	option interval '5'
	option down '3'
	option up '8'

config member 'wan6_only'
	option interface 'wan6'
	option metric '1'
	option weight '3'

config member 'wwan6_only'
	option interface 'wwan6'
	option metric '2'
	option weight '3'

config member 'tethering6_only'
	option interface 'tethering6'
	option metric '3'
	option weight '3'

config member 'wan6_balance'
	option interface 'wan6'
	option metric '1'
	option weight '3'

config member 'wwan6_balance'
	option interface 'wwan6'
	option metric '1'
	option weight '3'

config member 'tethering6_balance'
	option interface 'tethering6'
	option metric '1'
	option weight '3'

config policy 'default_poli_v6'
	list use_member 'wan6_only'
	list use_member 'wwan6_only'
	list use_member 'tethering6_only'
	option last_resort 'default'

config rule 'default_rule_v6'
	option dest_ip '::/0'
	option family 'ipv6'
	option use_policy 'default_poli_v6'

If you are using it as a failover then this should work in theory, this config works in 4.7 but not in 4.8 right?

Hi Aashish,

I confirm that in 4.8 the same configuration cuts off wireless clients from internet connectivity. Once I remove the mwan3 package, the connectivity from wifi network to internet is back.

I had an overengineered single connection setup in 4.7 with fail-over tracking. I put mwan3 in hope that some day I will add a second connection. thanks for any clues

Hi,

If you plan to use mwan3, please make sure that kmwan is disabled first, as running both services at the same time may cause conflicts. You can stop and disable it with the following commands:

/etc/init.d/kmwan stop
/etc/init.d/kmwan disable

If you continue to experience issues after this, we recommend consulting the OpenWrt community or the relevant plugin developer, as third-party packages are beyond our official support scope.

1 Like

Thanks. I missed this part in the upgrade. I will remove mwan3 on my spare device and put in the install scripts your sequence as comments.