|Rafal Kupiec 36eafabbca Correct typos||1 year ago|
|files||1 year ago|
|LICENSE||1 year ago|
|Makefile||1 year ago|
|README.md||1 year ago|
The wanmonitor package is an agent script that makes Multi-WAN configuration simple, easy to use and manageable. It comes complete with failover setup supporting many types of internet connections, including PPPoE and mobile connections. The uci configuration file /etc/config/wanmonitor is provided as part of the wanmonitor package.
The WanMonitor provides the following capabilities:
All configuration is done in /etc/config/wanmonitor file. Options available:
What is more it can make a use of WAN routes metrics set in /etc/config/network, thus allowing to use PPPoE to work correctly. When PPPoE connection is established, it automatically adds a route with proper (higher) priority and this connection is being used as default. After a while, when WanMonitor notices primary connection is again available, it removes a route for secondary WAN connection (eg. in order to save mobile traffic).
config interface 'wan1' option ifname 'eth0' option metric '0' option proto 'pppoe' option username 'login' option password 'password' option service 'PPPoE' config interface 'wan2' option ifname 'eth1' option proto 'dhcp' option metric '5' option defaultroute '0' option service 'LTE'
config wanmonitor option check_host '126.96.36.199' option interval '5' option sleep '5' option wan_primary 'wan1' option wan_secondary 'wan2'