aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3
Commit message (Collapse)AuthorAge
...
* mwan3: fix logical/typo bug in mwan3rtmonChen Minqiang2019-03-22
| | | | | | | | This bug was introduced since dd206b7d0bc4a7de739b6dbccbac5b5ffcae9024 mwan3_remon_ipv4 and mwan3_remon_ipv6 is command to run not a variable I add some comments on them hopefully people will notice it Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* mwan3: fix disconnected event generation in mwan3trackFlorian Eckert2019-02-27
| | | | | | | | | | Before this change two disconnected events were generated. This is wrong! The disconnected event is impliciet generated by the hotplug script on ifdown event. The mwan3track script is notified by a USR1 signal which generates the disconnectd event. The additional "disconnectd" event on ifdown is not required. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: update version to 2.7.10Florian Eckert2019-01-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add locking debug possibilityFlorian Eckert2019-01-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: lock critical section on mwan3 downFlorian Eckert2019-01-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: lock critical mwan3rtmon sectionFlorian Eckert2019-01-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: update version to 2.7.9Florian Eckert2019-01-14
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: mwan3rtmon interrupt sleep on signal (trap) eventFlorian Eckert2019-01-14
| | | | | | Sleep will be aborted if a signal is send to this process. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: set interface unknown to offlineFlorian Eckert2019-01-14
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: fix initial_state offline issueFlorian Eckert2019-01-14
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add syslog debug possibility to rulesFlorian Eckert2019-01-14
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: update version to 2.7.8Florian Eckert2018-12-25
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove duplicated global enable checkFlorian Eckert2018-12-25
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove local_source deprecated code artefactsFlorian Eckert2018-12-25
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add nping to tracking methodMichael Stoll2018-12-21
| | | | Signed-off-by: Michael Stoll <michael.stoll@meadow-robotics.com>
* mwan3: add policies view to ubus interfaceFlorian Eckert2018-11-13
| | | | | | | Add to ubus the missing output information "policies" which could already be observed with the command "mwan3 status". Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: update version to 2.7.6Florian Eckert2018-11-08
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove deprecated local_source config optionFlorian Eckert2018-11-08
| | | | | | | This feature is not needed anymore. This feature is replaced by the change 46ed09408e554f182a688e0a7c47cdf85fc6c15d Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: revert add online_metric for local_source noneFlorian Eckert2018-11-08
| | | | | | This is not necessary. This reverts commit be91e71805116ac1fd852a1ac0480737538d0b04.
* net/mwan3: update version to 2.7.5Florian Eckert2018-10-23
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add online_metric for local_source noneFlorian Eckert2018-10-23
| | | | | | | | | | | | | | | | | | | | | 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>
* net/mwan3: add dynamic ipsets to mwan3_connected ipsetsFlorian Eckert2018-10-23
| | | | | | | | | During runntime of mwan3 we could add dynamicly networks to this ipset which would then treated as connected networks by mwan3. This is also usefull for ipsec. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add custom address from ip tables to connected ipsetFlorian Eckert2018-10-23
| | | | | | | | | | | With the list param "rt_table_lookup" in the mwan3 section globals, it is now possible to add a additional routing table numbers which would get also parsed and will be added to the connected network. So mwan3 will treat them as they are directly connected to this device. This could be usefull if we use ipsec. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: cleanup egrep ipv6 regexFlorian Eckert2018-10-23
| | | | | | The IPv6 egrep regex is confusing and hard to maintain. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: enhance ipset status generationFlorian Eckert2018-10-23
| | | | | | This change should optimize and speed up the status output generation. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: reduce duplicate codeFlorian Eckert2018-10-23
| | | | | | | The generation for reporting the policies uses the same code add a common function to reduce duplication. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: cleanup/prettify 80 characters code boundaryFlorian Eckert2018-10-23
| | | | | | Prettify and cleanup source Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update version to 2.7.4Florian Eckert2018-10-12
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add downtime ubus informationFlorian Eckert2018-10-12
| | | | | | | Get downtime information for the tracked mwan3 wan interfaces. The information shows how long this interface is in disconnected state. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add uptime ubus informationFlorian Eckert2018-10-12
| | | | | | | Get uptime information for the tracked mwan3 wan interfaces. The information shows how long this interface is in connected state. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: also add the metric to the default interface routing tableFlorian Eckert2018-10-12
| | | | | | This is now the same route as in the main table. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fixup parse json_load an null messageKyson Lok2018-10-12
| | | | | | | | If a interface is down, call ubus will return an null message which is used to json_load, it causes json_get_vars gets value from last load and l3_device various is nonzero. Signed-off-by: Kyson Lok <kysonlok@gmail.com>
* net/mwan3: update version to 2.7.3Chen Minqiang2018-10-10
| | | | Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* mwan3: rtmon: filter out linkdown routing tableChen Minqiang2018-10-10
| | | | Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* net/mwan3: update version to 2.7.2Florian Eckert2018-09-24
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix start/stop/restart executionFlorian Eckert2018-09-24
| | | | | | | Move setting global enabled flag from /etc/init.d/mwan3 to mwan3 command. So we could start mwan3 from the cmd mwan3 as well. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: mwan3track should also send disconnected action on signal USR1Florian Eckert2018-09-24
| | | | | | Also send disconnected action on system signal USR1. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add ttl checkFlorian Eckert2018-09-24
| | | | | | Add the additional optional ttl check to test the connection. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: optimize the process of copying routing tablesChen Minqiang2018-09-21
| | | | | | | | | | - The original copy process is to delete all routing tables first, then add new routing table. This process is too slow and very dirty. - We use grep to identify the changes and apply them. - ignore ipv6 unreachable routes - update version number Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* mwan3: fix missing device in mwan3_set_policy()Chen Minqiang2018-08-29
| | | | Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* mwan3: mwan3rtmon sleep time configurableChen Minqiang2018-08-09
| | | | Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* mwan3: refine link selectionChen Minqiang2018-08-09
| | | | | | | | | - globals src_ip to none - ip route back to source - add mwan3rtmon - update version to 2.7 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
* net/mwan3: fix NDP on ipv6 for ra servicesFlorian Eckert2018-06-06
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update version to 2.6.17Florian Eckert2018-05-30
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix update on connected ip networksFlorian Eckert2018-05-30
| | | | | | | | | If an interface is not tracked by mwan3 or enabled and this interface is setup by netifd, then the connected ipset is not update by mwan3. To fix this also call connected ipset update code even if the interface is not tracked or enabled by mwan3. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update version to 2.6.16Florian Eckert2018-05-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: execute only ifup event if l3_device is foundFlorian Eckert2018-05-16
| | | | | | | Only execute an ifup event with the command "mwan3 ifup <iface>" if the l3_device is found in the ubus "network.interface.<iface>". Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove logging mwan3track pid is not foundFlorian Eckert2018-05-16
| | | | | | Remove unnecessary logging if mwan3track pid is not found Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add/remove src_ip from routing tableFlorian Eckert2018-05-16
| | | | | | Add or remove local_source ip also if mwan3 is stopped or started Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add missing local variablesFlorian Eckert2018-05-11
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>