net/mwan3: add online_metric for local_source none
authorFlorian Eckert <redacted>
Wed, 22 Aug 2018 11:41:00 +0000 (13:41 +0200)
committerFlorian Eckert <redacted>
Tue, 23 Oct 2018 13:00:11 +0000 (15:00 +0200)
commitbe91e71805116ac1fd852a1ac0480737538d0b04
treee925193bf5db30c47ba28439a3bac2d61a664104
parent181174b64b69545517bf702add35253c2b54957e
net/mwan3: add online_metric for local_source none

If we set the option "local_source" in the globals mwan3 section to "none",
traffic generated by the router it self will always use the default route from
the wan interface with the lowest metric. If this interface is down
the router traffic still uses the connection with the lowest metric but
this is disconnected. Load balancing and failover from the lan site is
still possible. Only router generated traffic is not load balanced and
could not use failover.

To solve this issue with router initiated traffic add the additional
option "online_metric" to the mwan3 interface section.

If the interface is connected then this lower "online metric" is set in the
default routing table.

With this change we have at least a failover with router initiated
traffic.

Signed-off-by: Florian Eckert <redacted>
net/mwan3/files/etc/hotplug.d/iface/13-mwan3 [new file with mode: 0644]
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/sbin/mwan3
git clone https://git.99rst.org/PROJECT