aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3/files
Commit message (Collapse)AuthorAge
...
* mwan3: fix idx calculationFlorian Eckert2020-07-19
| | | | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de> [aaronjg@stanford.edu: fix syntax error] Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: cleanup duplicate ipv4 and ipv6 logicAaron Goodman2020-07-19
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: don't send iptable setup failures to /dev/nullAaron Goodman2020-07-19
| | | | | | silencing failing rules makes debugging more difficult Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: add default rule for ipv6 in example configAaron Goodman2020-07-19
| | | | | | | default rule only applied to ipv4 with dest_ip 0.0.0.0/0 and error was hidden when trying to apply it in ip6table Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: don't try to use ipv6 if not installedAaron Goodman2020-07-19
| | | | | | fix issue #11826 Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: be more efficient with sleep after killing trackersAaron Goodman2020-07-16
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: don't add single ipv4 to connected list if already covered by a cidrAaron Goodman2020-07-16
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: cleanup function mwan3_create_iface_routeFlorian Eckert2020-07-15
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: fix shellcheck warning SC2086Florian Eckert2020-07-15
| | | | | | | Add double quote to prevent globbing and word splitting where there is no regression. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: fix shellcheck warning SC2166Florian Eckert2020-07-15
| | | | | | Replace -o boolean check with ||. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove unused variable complained by shellcheckFlorian Eckert2020-07-15
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: fix shellcheck warning SC2039Florian Eckert2020-07-15
| | | | | | Replace all `==` with `=`. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: move redirect error output to trashFlorian Eckert2020-07-15
| | | | | | | This suppress the following output on `mwan3 restart`: > Dump terminated Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: Fix mwan3 start not doing anythingMichiel Blokzijl2020-07-03
| | | | | | | | | Due to a missing config load function call, mwan3 start runs ifup for an empty list of interfaces, thus not calling ifup at all. This commit introduces the missing config_load call. Signed-off-by: Michiel Blokzijl <code@m01.eu>
* 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: switch to procd init scriptFlorian Eckert2020-06-17
| | | | | | This enables the procd handling for mwan3 on config change. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: address reviewer comments on 5147dfc7Aaron Goodman2020-06-13
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: Use /128 for ipv6 if no other source address was foundAaron Goodman2020-05-29
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: Allow user to specify rules based on source interfaceAaron Goodman2020-05-29
| | | | | | | | | | | | | Add an option for adding rules based on source interface. The default 0.0.0.0/0 src and destination ip addresses has been removed. It is unclear how the 'any' family of rules would have worked, as it appears each rule always required an ipv4 or ipv6 address src and destination address. With this change, the any family will work again. I also cleaned up a bunch of repeated code around adding the iptables rules for ipv4/ipv6/any in making the change. Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: Do not mangle outgoing ipv6 pingsAaron 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 add ipv6 link local address to routing tablesAaron Goodman2020-05-20
| | | | Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
* mwan3: reduce calls to `ip route list'Aaron Goodman2020-05-20
| | | | 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 variable namingFlorian Eckert2019-11-14
| | | | | | | The variable IPT is not valid at this point. Set the variable usage to IPT4 fixes this issue. 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 missing IPs to wanbDaniel A. Maierhofer2019-08-04
| | | | | | | | | | | Maintainer: Florian Eckert @feckert Compile tested: not needed Run tested: x86_64 Description: Only two of the four IPs defined for wan are found in wanb, adding it so it is the same. Signed-off-by: Daniel A. Maierhofer <git@damadmai.at>
* 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: add migration script for flush_conntrack configFlorian Eckert2019-07-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: change flush_conntrack handling to use uci list elementFlorian Eckert2019-06-03
| | | | | | | | | With this change it is now possible to combine interface action events. If an interface action is generated by netifd or mwan3 for example ifup, ifdown, connectd or disconnected and this action is configured in the inteface uci section, then the conntrack table is flushed by mwan3. 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: 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: 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>