Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:network:wan:multiwan:mwan3_install_without_luci [2023/06/14 16:05] – created teppodocs:guide-user:network:wan:multiwan:mwan3_install_without_luci [2023/06/14 16:16] – [mwan3 install using filesystem (not luci)] teppo
Line 6: Line 6:
 intended for users that administer openwrt via the filesystem.  intended for users that administer openwrt via the filesystem. 
  
-This guide will be for a **failover** use case (the most common). It's also possible+This guide will be for a **failover** use case (arguably the most common). It's also possible
 to use mwan3 in a balanced type configuration, although in this author's experience that to use mwan3 in a balanced type configuration, although in this author's experience that
 did not work as expected (tested in 17, though). Note that in this guide, we will be using did not work as expected (tested in 17, though). Note that in this guide, we will be using
Line 85: Line 85:
 mwan3 over. The failover will not work. Perhaps some config checking would be in order  mwan3 over. The failover will not work. Perhaps some config checking would be in order 
 for mwan3 so it detects if the user forgets to include the 2nd wan interface and notifies  for mwan3 so it detects if the user forgets to include the 2nd wan interface and notifies 
-them appropriately. +them appropriately. Note that the syntax utilizing **list network** is a newer syntax. Owrt from 17 and earlier 
 +used: 
 +<code> 
 +option network 'wan wanb wan6' 
 +</code>
  
 +=== Configuration of /etc/config/mwan3 ===
  
 +The final step is to choose wan_wanb (failover) as the
 +policy of /etc/config/mwan3 instead of the balanced, which
 +is the default. 
 +<code /etc/config/mwan3>
 +config rule 'https'
 +        option sticky '1'
 +        option dest_port '443'
 +        option proto 'tcp'
 +        option use_policy 'wan_wanb'
 +
 +config rule 'default_rule_v4'
 +        option dest_ip '0.0.0.0/0'
 +        option use_policy 'wan_wanb'
 +        option family 'ipv4'
 +
 +config rule 'default_rule_v6'
 +        option dest_ip '::/0'
 +        option use_policy 'wan_wanb'
 +        option family 'ipv6'
 +</code>
 +The default has wan6 and wanb6 disabled. If you are using ipv6, you may need to enable those in /etc/config/mwan3.
 +
 +That should be all that is required. At this point you may need to run 
 +<code>
 +mwan3 restart
 +</code>
 +Or you can alternatively reboot.
 +===== Troubleshooting =====
 +There is some discussion on the forum, and on the main mwan3 page. These commands may be valuable:
 +<code>
 +logread | grep mwan3
 +mwan3 status
 +</code>
 +
 +=== Learning more about mwan3 ===
 +See the install path for mwan3: https://github.com/openwrt/packages/tree/master/net/mwan3
 +<code>
 +mwan3 (without any arguments)
 +iptables -t mangle -L
 +less /etc/mwan3.user
 +</code>
  • Last modified: 2023/06/14 16:20
  • by teppo