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 <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2018-08-22 13:41:00 +02:00
parent 181174b64b
commit be91e71805
3 changed files with 121 additions and 0 deletions
+1
View File
@@ -175,6 +175,7 @@ stop()
config_load mwan3
config_foreach mwan3_track_clean interface
config_foreach mwan3_online_metric_clean interface
for IP in "$IP4" "$IP6"; do