aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files/usr
Commit message (Collapse)AuthorAge
...
* mwan3: set status to unknown in rpcd if status file not foundFlorian Eckert2020-06-17
| | | | | | If the status file is not found then set then return the value unknown. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Use /128 for ipv6 if no other source address was foundAaron Goodman2020-05-29
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: force busybox pingAaron Goodman2020-05-22
| | | | | | | | | | | | | | | openwrt 19.07 uses iputils 20101006-1 This ancient version of iputils has a bug where the -I option is not respected. https://github.com/iputils/iputils/issues/55 https://github.com/iputils/iputils/issues/56 https://bugs.openwrt.org/index.php?do=details&task_id=1486 Thus, we should force using busybox ping at "/bin/ping" until the iputils version gets an upgrade in the next major release Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: Don't use /128 address for ping sourceBrian J. Murrell2020-04-30
| | | | | | | | An interface can have both a /64 and a /128 from a provider. In such a case, use the address from the /64 to do the ping check, not the /128. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
* mwan3: fix whitespace issueFlorian Eckert2020-04-27
| | | | | | fixes #11965 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Ping IPv6 hosts using address not interfaceBrian J. Murrell2020-03-13
| | | | | | | | | | Pinging IPv6 hosts using an interface as a source specifier seems troublesome. See https://bugs.openwrt.org/index.php?do=details&task_id=2897 for more detail. Use the desired source interface's IP address instead. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
* mwan3: add httping_ssl optionFlorian Eckert2019-11-14
| | | | | | | | Till now we could only ping http targets on port 80. With this change by adding the config boolean config option httping_ssl we could also ping https ping targets on port 443. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Fix json_load fails with some datayurtesen2019-11-14
| | | | | | | | | | | Sometimes the return value of `ubus -S call network.interface.wan status` cause `json_load` to return `Failed to parse message data` error. To avoid this, the JSON data always should be quoted with double quotes. Signed-off-by: Evren Yurtesen <eyurtese@abo.fi> Removed quoatation marks from commit heading Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add netifd up info to mwan3 ubus status outputFlorian Eckert2019-07-04
| | | | | | Add the netifd up status output to the mwan3 ubus status output. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add enabled info to mwan3 ubus statusFlorian Eckert2019-07-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: add interface uptime netifd value to ubus mwan3 status outputFlorian Eckert2019-07-04
| | | | | | Add missing netifd uptime info to ubus status call. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: rename downtime to offlineFlorian Eckert2019-07-04
| | | | | | Rename downtime ubus output from mwan3 to offline. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: rename uptime to onlineFlorian Eckert2019-07-04
| | | | | | Rename uptime ubus output from mwan3 to online. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* 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: 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: 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: 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: revert add online_metric for local_source noneFlorian Eckert2018-11-08
| | | | | | This is not necessary. This reverts commit be91e71805116ac1fd852a1ac0480737538d0b04.
* 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: 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: 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: 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: 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: 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: 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: 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: 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>
* 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: 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>
* 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: 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 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>