From ec3db59f52b5fc1eb52e476980039d72e7ec6de8 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 23 Oct 2018 20:57:08 +0800 Subject: [PATCH] add mwan3 default policy --- net/mwan3/Makefile | 2 +- net/mwan3/files/etc/config/mwan3 | 104 +++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 1 deletion(-) diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index 9b3bb271..de8e6009 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 PKG_VERSION:=2.6.17 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Florian Eckert PKG_LICENSE:=GPLv2 diff --git a/net/mwan3/files/etc/config/mwan3 b/net/mwan3/files/etc/config/mwan3 index a537c087..431a4c26 100644 --- a/net/mwan3/files/etc/config/mwan3 +++ b/net/mwan3/files/etc/config/mwan3 @@ -19,6 +19,110 @@ config interface 'wan' option down '3' option up '8' +config interface 'wan6' + option enabled '0' + list track_ip '2001:4860:4860::8844' + list track_ip '2001:4860:4860::8888' + list track_ip '2620:0:ccd::2' + list track_ip '2620:0:ccc::2' + option family 'ipv6' + option reliability '2' + option count '1' + option timeout '2' + option interval '5' + option down '3' + option up '8' + +config interface 'wanb' + option enabled '0' + list track_ip '114.114.114.114' + list track_ip '114.114.115.115' + option family 'ipv4' + option reliability '1' + option count '1' + option timeout '2' + option interval '5' + option down '3' + option up '8' + +config interface 'wanb6' + option enabled '0' + list track_ip '2001:4860:4860::8888' + list track_ip '2620:0:ccc::2' + option family 'ipv6' + option reliability '1' + option count '1' + option timeout '2' + option interval '5' + option down '3' + option up '8' + +config member 'wan_m1_w3' + option interface 'wan' + option metric '1' + option weight '3' + +config member 'wan_m2_w3' + option interface 'wan' + option metric '2' + option weight '3' + +config member 'wanb_m1_w2' + option interface 'wanb' + option metric '1' + option weight '2' + +config member 'wanb_m2_w2' + option interface 'wanb' + option metric '2' + option weight '2' + +config member 'wan6_m1_w3' + option interface 'wan6' + option metric '1' + option weight '3' + +config member 'wan6_m2_w3' + option interface 'wan6' + option metric '2' + option weight '3' + +config member 'wanb6_m1_w2' + option interface 'wanb6' + option metric '1' + option weight '2' + +config member 'wanb6_m2_w2' + option interface 'wanb6' + option metric '2' + option weight '2' + +config policy 'wan_only' + list use_member 'wan_m1_w3' + list use_member 'wan6_m1_w3' + +config policy 'wanb_only' + list use_member 'wanb_m1_w2' + list use_member 'wanb6_m1_w2' + +config policy 'balanced' + list use_member 'wan_m1_w3' + list use_member 'wanb_m1_w2' + list use_member 'wan6_m1_w3' + list use_member 'wanb6_m1_w2' + +config policy 'wan_wanb' + list use_member 'wan_m1_w3' + list use_member 'wanb_m2_w2' + list use_member 'wan6_m1_w3' + list use_member 'wanb6_m2_w2' + +config policy 'wanb_wan' + list use_member 'wan_m2_w3' + list use_member 'wanb_m1_w2' + list use_member 'wan6_m2_w3' + list use_member 'wanb6_m1_w2' + config rule 'https' option sticky '1' option dest_port '443'