aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3
Commit message (Collapse)AuthorAge
...
* net/mwan3: expand ubus to show when last mwan3track check was doneFlorian Eckert2017-08-10
| | | | | | | To know how old the ubus output is, add an age parameter which indicats how old the check informations on the interface are. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: on startup mark interface online only if track_ip are reachableFlorian Eckert2017-08-10
| | | | | | | | | | | | | | | | Add new interface config option "inital_state". If interface comeing up the first time(mwan3 start, boot), there are now two option for interface behaviour: - online (default as is now) Set up interface regardless wether tracking ip are reachable or not. - offline Set up interface first to ping tracking ip and if they are reachable set up the interface completely. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix ping issue if last interface recovers from failureFlorian Eckert2017-08-10
| | | | | | | | | | | Even though error was fixed the interface checks still fails, if last_resort was set to blackhole or unreachable. To fix this issue do not remove failure interface from iptables change on down event. Reported-by: Colby Whitney <colby.whitney@luxul.com> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: move mwan3track clean up to mwan3 cmdFlorian Eckert2017-08-10
| | | | | | This is usefull to see the last state of the interface with ubus. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove unused global definitionFlorian Eckert2017-08-10
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix mwan3track kill executionFlorian Eckert2017-08-10
| | | | | | | | | If two interface have the same prefix "wan" for example "wan" and "wan1" pgrep returns the PID for wan1 also "pgrep -f mwan3track wan". Before this fix "wan1" was also killed! This is not what we want. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: fix ubus output for mwan3track running stateFlorian Eckert2017-08-10
| | | | | | Fix ubus output for mwan3track running state Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: change logging output on hotplug interface eventFlorian Eckert2017-08-10
| | | | | | Change logging output on hotplug interface event Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add option keep_failure_interval on failureFlorian Eckert2017-08-10
| | | | | | | Add new boolean interface config param to keep ping failure interval during interface failure state. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add process PID to LOG outputFlorian Eckert2017-08-10
| | | | | | Update log output macro to show PID during logging Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: allow to change mwan3's MARKing maskLars Schumann2017-08-04
| | | | Signed-off-by: Lars Schumann <larsi.org@gmail.com>
* mwan3: support various interface tracking methodsMarcin Jurkowski2017-08-02
| | | | | | | | | | | | Adds support for interface tracking using either ping, arping or httping. This allows to track interface status on networks with filtered ICMP traffic or simply to monitor data link layer etc. To facilitate binding to a specified interface its IP address is passed as a new mwan3track parameter. It's currently required by httping and possibly by other tools that may be added in the future. Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
* net/mwan3: update versionFlorian Eckert2017-06-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: simplify tracking status statement commandFlorian Eckert2017-06-22
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add lock for mwan3 hotplug scriptFlorian Eckert2017-06-22
| | | | | | | | | | If more then one interface get up/down at once mwan3 could be in a undefined state, because more then one mwan3 hotplug script are running and editing the iptables. Lock the critical section should solve this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update Makefile versionFlorian Eckert2017-05-12
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: generate mwan3track run path folder on every runFlorian Eckert2017-05-12
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove absolute path for bin filesFlorian Eckert2017-05-12
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: remove pid file use pgrep to get pidFlorian Eckert2017-05-12
| | | | | | | | | | | | | | | If mwan3track will not stop immediately after sending the kill signal, the clean_up handler will delete the pid file later while the new mwan3track is already running. This could result in a situation that mwan3track is running more then once because the old mwan3track service could not be killed, because the pid file is missing. Using pgrep to kill all mwan3track for the tracked interface and not using pid file should fix this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update Makefile versionFlorian Eckert2017-04-27
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add connected network regardless of mwan3 interface enable stateFlorian Eckert2017-04-27
| | | | | | | | If netifd set an interface up/down which is not tracked by mwan3 the connected network of that interface should regardless be added/removed to the mwan3_connected ipset. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update Makefile versionFlorian Eckert2017-04-11
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: mwan3track interrupt sleep on signal (trap) eventFlorian Eckert2017-04-11
| | | | | | Sleep will be aborted if a signal is send to this process. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: registrate SIGUSR1 trap on interface down eventFlorian Eckert2017-04-11
| | | | | | | | | | | | If interface is getting down by netifd (unplug ethernet cable) mwan3track will not recognize this change. It will also generate an additional down event when he notice does his tracking interface is offline. Mwan3track will now be informed by a signal (trap) USR1 during down event that the interface is already down. An additional down event will not be generated. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add status track ubus interfaceFlorian Eckert2017-04-11
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: update Makefile versionFlorian Eckert2017-04-05
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: decrease parameter invocation of mwan3trackFlorian Eckert2017-04-05
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add clean_up trap function for SIGINT SIGTERMFlorian Eckert2017-04-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: unify logging in mwan3trackFlorian Eckert2017-04-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: move global mwan3track into main functionFlorian Eckert2017-04-04
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add failure and recovery intervalFlorian Eckert2017-03-27
| | | | | | | | | | | | | If mwan3track detects a failure the interval check will change to "failure_interval" value until this interface is declared "offline". After interface gets "offline" normal "interval" value is used again. If interface ping is successful again "recovery_interval" value is used until interface is declared "online" again. Using the different intervals will accelerate the wan line detections on failure and recovery. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Merge pull request #4174 from TDT-GmbH/mwan3-add-ubus-checkchamptar2017-03-24
|\ | | | | net/mwan3: add ubus interface check
| * net/mwan3: add ubus interface checkFlorian Eckert2017-03-21
| | | | | | | | | | | | | | | | | | On interfaces with interface proto "qmi|ncm" and option dhcp enabled the interface will be changed to $iface_4 | $iface_6. The interface mapping in mwan3 will not recognize this interface. To fix this issue an ubus call will check if an upper interface exists. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | net/mwan3: pass environment variables to mwan3-userFlorian Eckert2017-03-21
|/ | | | | | | User scripts conversion from luci-app-wan3 will be simplified if the variables are passed by env instead of arguments. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Merge pull request #4171 from TDT-GmbH/mwan3-change-maintainerHannu Nyman2017-03-20
|\ | | | | net/mwan3: change maintainer
| * net/mwan3: change maintainerFlorian Eckert2017-03-20
| | | | | | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | net/mwan3: fix track_ips countFlorian Eckert2017-03-20
|/ | | | | | | fix track_ips generation introduced with commit 6d44a7679a92717126f1da4b274d91322c7c56b7 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* Merge pull request #4158 from TDT-GmbH/mwan-fix-hotplugHannu Nyman2017-03-18
|\ | | | | net/mwan3: fix hotplug on ACTION ifdown
| * net/mwan3: fix hotplug on ACTION ifdownFlorian Eckert2017-03-17
| | | | | | | | | | | | | | | | On dynamic interface proto (dhcp/pppoe) the hotplug will not execude (exit 9) because the gateway is already released. The check will now only be made on a ifup ACTION event. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | net/mwan3: add mwan3.user hotplug scriptFlorian Eckert2017-03-17
|/ | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add ping size option to mwan3trackFlorian Eckert2017-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: reset conntrack table on iface up/down eventFlorian Eckert2017-03-16
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* net/mwan3: add me as co maintainerFlorian Eckert2017-03-08
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mwan3: remove bad local shell variable declarationsJo-Philipp Wich2016-09-24
| | | | | | | Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* mwan3: fix mwan3track whitespace typoFlorian Eckert2016-07-21
| | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* mwan3: fix mwan3 help whitespace typoFlorian Eckert2016-07-21
| | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* mwan3: update to version 2.0-2Jeroen Louwes2015-12-21
| | | | | | Fix iptables issue where a needed ipset was not created if first wan that came online was not a member of policy. Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
* mwan3: update to version 2.0-1Jeroen Louwes2015-12-17
| | | | | | | Fix issue with sticky sessions not working correctly Fix issue where user created ipsets were not applied Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
* mwan3: update to version 2.0-0Jeroen Louwes2015-11-19
| | | | | | | IPv6 support! :D Big code overhaul; expect bugs.. Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
* mwan3: update to version 1.6-3Jeroen Louwes2015-10-20
| | | | | | Fix for changed location ip binary Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>