aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3
Commit message (Collapse)AuthorAge
* 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>
* net/mwan3: remove check_quality option from default configFlorian Eckert2018-05-11
| | | | | | | | | The normal situation should be to use ping without quality_check. If quality_check option is not set in the default option then ping quality_check is not performed during tracking. This is and should be the default situation. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update logging outputFlorian Eckert2018-05-11
| | | | | | Unify logging output for tracking methode ping. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix indentationFlorian Eckert2018-05-11
| | | | | | Fix indentation. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: replace legancy backticksFlorian Eckert2018-05-11
| | | | | | Replace legancy backticks syntax shell execution with braces. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove needless log output on mwan3trackFlorian Eckert2018-05-11
| | | | | | Remove needless log output this will pollute the logging. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Packet Loss & Latency CheckNishant Sharma2018-05-11
| | | | | | | 1. Test link quality based on packet loss & latency w.r.t. pre-defined high and low watermark values. 2. Extended ubus support to provide packet loss & latency information per wan per track_ip Signed-off-by: Nishant Sharma <codemarauder@gmail.com>
* net/mwan3: update version to 2.6.14Florian Eckert2018-04-12
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: in ubus rpcd script fix shell local issueFlorian Eckert2018-04-12
| | | | | | | To fix the shell local issue in the ubus mwan3 rpcd shell script, move the switch case statment into a function. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update version to 2.6.13Florian Eckert2018-04-08
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: also send connected action on initial_state offlineFlorian Eckert2018-04-08
| | | | | | Move action into startup section will fix this. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add logging on ping success and failFlorian Eckert2018-04-08
| | | | | | Add logging information during state change on ping success or fail Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: ipv6-compatible default confLuiz Angelo Daros de Luca2018-04-03
| | | | | | | | | | | | | | | | | Considering that ipv6 NPT/NAT/NETMAP is done manually by user, mwan3 can balance ipv6 interfaces as it does with ipv4. Interface wan2 was renamed to wanb as wan2, wan3, ... will eventually colide with OpenWrt with default wan6 interface when more than 6 interfaces are in use. New interfaces, members for wan6 and wanb6 where created, both disabled by default. Policies where adapted as well. The option "family" is set respectively in each interface. When missing, mwan3 assumes ipv4, that will fail when interface is IPv6 only. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
* mwan3: Add missing globals config sectionRob White2018-04-01
| | | | | | | | | Add missing globals config section with default values. Without the correctly named section, mwan3 startup will fail with the error - Warning: mwan3 is global disabled. Usage: /etc/init.d/mwan3 start. Compile: not required Run tested: LEDE 17.01.04 Author-name: Rob White Maintainer: Florian Eckert <fe@dev.tdt.de> Signed-off-by: Rob White <rob@blue-wave.net>
* net/mwan3: update version to 2.6.12Florian Eckert2018-03-29
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: set default mask to 0x3F00Florian Eckert2018-03-29
| | | | | | | | | The IPsec ip route table has the default number 220. If mwan3 has more then 7 bits set (124 interfaces) then if mwan3 down is executed the table is also cleared. To solve this set default max 7 bits in the mmx_mask for mwan3. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: adjust dependency from ip-full to ipHannu Nyman2018-03-23
| | | | | | | | | | | Adjust the dependency from ip-full back to ip. Returning back to "ip" is now possible as busybox does not provide "ip" any more, making "ip" again reference to ip-tiny or ip-full. Reference to discussion in #5747 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* net/mwan3: update version to 2.6.11Florian Eckert2018-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update hint in mwan3.user for connected/disconnectedFlorian Eckert2018-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: deviate max interface value from mmx_mask valueFlorian Eckert2018-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need always three of the firewall mask value for * default routing table * blackhole * unreachable the other will be used for the interfaces. * If we have set the mmx_mask to max 0xFF00 (8 bit set) we could use max 252 interfaces. * If we have set the mmx_mask to min 0x0E00 (3 bit set) we could use max 4 interfaces. Only the ones are counting from the firewall mask value. Minimal three firewall mask bit vaules must be set. Maximal eight firewall mask bit vaules could be set. Table overview mmx_mask value bits vs. max interfaces mmx_mask value bits set 1 -> not usefull mmx_mask value bits set 2 -> not usefull mmx_mask value bits set 3 -> 4 Interfaces (mask example 0x0E) mmx_mask value bits set 4 -> 12 Interfaces mmx_mask value bits set 5 -> 28 Interfaces mmx_mask value bits set 6 -> 60 Interfaces mmx_mask value bits set 7 -> 124 Interfaces mmx_mask value bits set 8 -> 252 Interfaces (mask example 0xFF) Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove unused local variablesFlorian Eckert2018-03-16
| | | | | | Remove unused local variables Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add connected/disconnected ACTION to mwan3trackFlorian Eckert2018-03-16
| | | | | | | | | | | | Add a new ACTIONs: * connected ACTION is called once if mwan3track reach all configured track_ips * disconnected ACTION is called once if mwan3track is unable to reach the track_ips The connected/disconnected will called only by mwan3track in opposite the ACTIONs ifup/ifdown will also be called by netifd. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add jshn and ip-full to package dependencyFlorian Eckert2018-03-12
| | | | | | | | * The mwan3 scripts sources ". /usr/share/libubox/jshn.sh" * Mwan3 only works if ip-full is installed Error -> "ip: invalid argument '0xfd00/0xff00' to 'fwmark'" Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update to version 2.6.10Florian Eckert2018-02-05
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add mwan3_init functionFlorian Eckert2018-02-05
| | | | | | | Move all shell commands which are executed during /lib/mwan3/mwan3.sh sourceing into a seperate init function which must be called at first. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: send SIGKILL to mwan3trackFlorian Eckert2018-02-05
| | | | | | | | In some situation it is not enough to send a SIGTERM to mwan3track to ask service to stop accurate. If this does not work send him a SIGKILL to prevent mwan3track running more then once per interface. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add init script to enable/disable mwan3 globallyFlorian Eckert2018-02-05
| | | | | | | Adding a init script to "/etc/init.d/" introduce the possibility to enable/disable mwan3 globally. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Improve logs when member metric is too bigJakub Janco2017-12-07
| | | | | | | | If metric of member interface is bigger then 256, it is not appended to policy, now at least warn message is printed into syslog Signed-off-by: Jakub Janco <kubco2@gmail.com>