package: add luci app mwan3 helper

This commit is contained in:
coolsnowwolf 2018-11-29 21:36:20 +08:00
parent 7e690c0022
commit f7af519c5c
19 changed files with 22151 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Copyright (C) 2016 Openwrt.org
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI support for MWAN3 Helper
LUCI_DEPENDS:=+luci-app-mwan3 +pdnsd-alt +dnsmasq-full +ipset
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=1
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -0,0 +1,27 @@
-- Licensed to the public under the GNU General Public License v3.
module("luci.controller.mwan3helper", package.seeall)
function index()
if not nixio.fs.access("/etc/config/mwan3helper") then
return
end
entry({"admin", "services", "mwan3helper"},alias("admin", "services", "mwan3helper", "client"),_("MWAN3 Helper"), 300).dependent = true
entry({"admin", "services", "mwan3helper", "client"},cbi("mwan3helper/client"),_("Settings"), 10).leaf = true
entry({"admin", "services", "mwan3helper", "lists"},cbi("mwan3helper/list"),_("IPSet Lists"), 20).leaf = true
entry({"admin","services","mwan3helper","status"},call("act_status")).leaf=true
end
function act_status()
local e={}
e.running=luci.sys.call("pgrep mwan3dns >/dev/null")==0
luci.http.prepare_content("application/json")
luci.http.write_json(e)
end

View File

@ -0,0 +1,29 @@
m = Map("mwan3helper")
m.title = translate("MWAN3 Helper")
m.description = translate("MWAN3 Helper generate IPSets")
m:section(SimpleSection).template = "mwan3helper/mwan3helper_status"
s = m:section(TypedSection, "mwan3helper")
s.addremove = false
s.anonymous = true
o = s:option(Flag, "enabled", translate("Enable"))
o.rmempty = false
o = s:option(ListValue, "dns", translate("Anti-pollution DNS Server"))
o:value("208.67.222.222:443", translate("OpenDNS (208.67.222.222)"))
o:value("208.67.220.220:443", translate("OpenDNS (208.67.220.220)"))
o:value("8.8.4.4:53", translate("Google Public DNS (8.8.4.4)"))
o:value("8.8.8.8:53", translate("Google Public DNS (8.8.8.8)"))
o:value("209.244.0.3:53", translate("Level 3 Public DNS (209.244.0.3)"))
o:value("209.244.0.4:53", translate("Level 3 Public DNS (209.244.0.4)"))
o:value("4.2.2.1:53", translate("Level 3 Public DNS (4.2.2.1)"))
o:value("4.2.2.2:53", translate("Level 3 Public DNS (4.2.2.2)"))
o:value("4.2.2.3:53", translate("Level 3 Public DNS (4.2.2.3)"))
o:value("4.2.2.4:53", translate("Level 3 Public DNS (4.2.2.4)"))
o:value("1.1.1.1:53", translate("Cloudflare DNS (1.1.1.1)"))
return m

View File

@ -0,0 +1,37 @@
m = Map("mwan3helper")
m.title = translate("MWAN3 IPSets")
s = m:section(TypedSection, "mwan3helper")
s.addremove = false
s.anonymous = true
o = s:option(DummyValue, "gfwlist", translate("GFW列表"))
o.description = translate("GFW列表数据 5207 条IPSET 名称为 gfwlist")
o = s:option(DummyValue, "all_cn", translate("中国所有IP地址"))
o.description = translate("中国所有IP地址路由表数据 8304 条, IPSET 名称为 cn")
o = s:option(DummyValue, "chinatelecom", translate("中国电信"))
o.description = translate("中国电信路由表数据: 1948 条, IPSET 名称为 ct")
o = s:option(DummyValue, "unicom_cnc", translate("中国联通/网通"))
o.description = translate("中国联通/网通路由表数据: 895 条, IPSET 名称为 cnc")
o = s:option(DummyValue, "cmcc", translate("中国移动"))
o.description = translate("中国移动路由表数据: 55 条, IPSET 名称为 cmcc")
o = s:option(DummyValue, "crtc", translate("中国铁通"))
o.description = translate("中国铁通路由表数据: 16 条, IPSET 名称为 crtc")
o = s:option(DummyValue, "cernet", translate("中国教育网"))
o.description = translate("中国教育网路由表数据: 162 条, IPSET 名称为 cernet")
o = s:option(DummyValue, "gwbn", translate("长城宽带/鹏博士"))
o.description = translate("长城宽带/鹏博士: 94 条, IPSET 名称为 gwbn")
o = s:option(DummyValue, "othernet", translate("中国其他ISP"))
o.description = translate("中国其他ISP 5134 条, IPSET 名称为 othernet")
return m

View File

@ -0,0 +1,22 @@
<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[services]], [[mwan3helper]], [[status]])%>', null,
function(x, data) {
var tb = document.getElementById('mwan3helper_status');
if (data && tb) {
if (data.running) {
var links = '<em><b><font color=green>MWAN3 Helper <%:RUNNING%></font></b></em>';
tb.innerHTML = links;
} else {
tb.innerHTML = '<em><b><font color=red>MWAN3 Helper <%:NOT RUNNING%></font></b></em>';
}
}
}
);
//]]>
</script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
<fieldset class="cbi-section">
<p id="mwan3helper_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>

View File

@ -0,0 +1,12 @@
msgid "MWAN3 Helper"
msgstr "MWAN3 分流助手"
msgid "Settings"
msgstr "设置"
msgid "IPSet Lists"
msgstr "IPSet列表"
msgid "MWAN3 Helper generate IPSets"
msgstr "自动生成中国地址段和各大ISP运营商的 IPSet 地址段并解决国外域名的污染问题帮助MWAN3分流 ISP/WireGuard 等"

View File

@ -0,0 +1,5 @@
config mwan3helper 'config'
option dns '208.67.222.222:443'
option enabled '0'

View File

@ -0,0 +1,169 @@
#!/bin/sh /etc/rc.common
# Copyright (c) 2011-2015 OpenWrt.org
START=60
DNSMASQ_RESTART=N
DNS_SERVER="208.67.222.222"
start_pdnsd() {
# DNS_SERVER=$(uci get flowoffload.@flow[0].dns_server 2>/dev/null)
[ -d /var/etc ] || mkdir -p /var/etc
if [ ! -f /var/mwan3dns/pdnsd.cache ]; then
mkdir -p /var/mwan3dns
echo -ne "pd13\000\000\000\000" > /var/mwan3dns/pdnsd.cache
chown -R nobody.nogroup /var/mwan3dns
fi
cat > /var/etc/mwan3dns.conf <<EOF
global {
perm_cache=1024; # dns缓存大小单位KB建议不要写的太大
cache_dir="/var/mwan3dns"; # 缓存文件的位置
pid_file = /var/run/mwan3dns.pid;
server_ip = 0.0.0.0; # pdnsd监听的网卡0.0.0.0是全部网卡
server_port=53000; # pdnsd监听的端口不要和别的服务冲突即可
status_ctl = on;
paranoid=on; # 二次请求模式如果请求主DNS服务器返回的是垃圾地址就向备用服务器请求
query_method=udp_only;
neg_domain_pol = off;
par_queries = 400; # 最多同时请求数
min_ttl = 1h; # DNS结果最短缓存时间
max_ttl = 1w; # DNS结果最长缓存时间
timeout = 10; # DNS请求超时时间单位秒
}
server {
label = "routine";
ip = $DNS_SERVER;
port = 53;
timeout = 5;
reject = 74.125.127.102, # 以下是脏IP也就是DNS污染一般会返回的结果如果收到如下DNS结果会触发二次请求TCP协议一般不会碰到脏IP
74.125.155.102,
74.125.39.102,
74.125.39.113,
209.85.229.138,
128.121.126.139,
159.106.121.75,
169.132.13.103,
192.67.198.6,
202.106.1.2,
202.181.7.85,
203.161.230.171,
203.98.7.65,
207.12.88.98,
208.56.31.43,
209.145.54.50,
209.220.30.174,
209.36.73.33,
211.94.66.147,
213.169.251.35,
216.221.188.182,
216.234.179.13,
243.185.187.39,
37.61.54.158,
4.36.66.178,
46.82.174.68,
59.24.3.173,
64.33.88.161,
64.33.99.47,
64.66.163.251,
65.104.202.252,
65.160.219.113,
66.45.252.237,
69.55.52.253,
72.14.205.104,
72.14.205.99,
78.16.49.15,
8.7.198.45,
93.46.8.89,
37.61.54.158,
243.185.187.39,
190.93.247.4,
190.93.246.4,
190.93.245.4,
190.93.244.4,
65.49.2.178,
189.163.17.5,
23.89.5.60,
49.2.123.56,
54.76.135.1,
77.4.7.92,
118.5.49.6,
159.24.3.173,
188.5.4.96,
197.4.4.12,
220.250.64.24,
243.185.187.30,
249.129.46.48,
253.157.14.165;
reject_policy = fail;
}
server {
label = "special"; # 这个随便写
ip = 208.67.222.222,208.67.220.220; # 这里为备用DNS服务器的 ip 地址
port = 443; # 推荐使用53以外的端口DNS服务器必须支持
proxy_only = on;
timeout = 5;
}
source {
owner=localhost;
// serve_aliases=on;
file="/etc/hosts";
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
EOF
[ -d /var/sbin ] || mkdir -p /var/sbin
[ -f /var/sbin/mwan3dns ] || cp -a /usr/sbin/pdnsd /var/sbin/mwan3dns
/var/sbin/mwan3dns -c /var/etc/mwan3dns.conf -d
echo "Start MWAN3 Helper DNS"
}
stop_pdnsd() {
kill $(pidof mwan3dns) >/dev/null 2>&1 || kill -9 $(ps | grep mwan3dns | grep -v grep | awk '{print $1}') >/dev/null 2>&1
echo "Stop MWAN3 Helper DNS"
}
start(){
en=$(uci get mwan3helper.config.enabled 2>/dev/null)
if [ $en -eq 1 ]; then
/etc/mwan3helper/genipset.sh cn '/etc/mwan3helper/all_cn.txt'
/etc/mwan3helper/genipset.sh ct '/etc/mwan3helper/chinatelecom.txt'
/etc/mwan3helper/genipset.sh cnc '/etc/mwan3helper/unicom_cnc.txt'
/etc/mwan3helper/genipset.sh cmcc '/etc/mwan3helper/cmcc.txt'
/etc/mwan3helper/genipset.sh crtc '/etc/mwan3helper/crtc.txt'
/etc/mwan3helper/genipset.sh cernet '/etc/mwan3helper/cernet.txt'
/etc/mwan3helper/genipset.sh gwbn '/etc/mwan3helper/gwbn.txt'
/etc/mwan3helper/genipset.sh othernet '/etc/mwan3helper/othernet.txt'
start_pdnsd
mkdir -p /tmp/etc/dnsmasq-mwan3.d
ipset -N gfwlist hash:net 2>/dev/null
awk '!/^$/&&!/^#/{printf("ipset=/.%s/'"gfwlist"'\n",$0)}' /etc/mwan3helper/gfw.txt > /tmp/etc/dnsmasq-mwan3.d/mwan3_gfwlist.conf
awk '!/^$/&&!/^#/{printf("server=/.%s/'"127.0.0.1#53000"'\n",$0)}' /etc/mwan3helper/gfw.txt >> /tmp/etc/dnsmasq-mwan3.d/mwan3_gfwlist.conf
cat > /tmp/dnsmasq.d/dnsmasq-mwan3.conf <<EOF
conf-dir=/var/etc/dnsmasq-mwan3.d
EOF
/etc/init.d/dnsmasq restart
fi
}
stop(){
stop_pdnsd
rm -f /tmp/dnsmasq.d/dnsmasq-mwan3.conf
/etc/init.d/dnsmasq restart
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,162 @@
1.51.0.0/16
1.184.0.0/15
42.244.0.0/14
49.52.0.0/14
49.120.0.0/14
49.140.0.0/15
49.208.0.0/15
58.154.0.0/15
58.192.0.0/15
58.194.0.0/15
58.196.0.0/15
58.198.0.0/15
58.200.0.0/13
59.64.0.0/14
59.68.0.0/14
59.72.0.0/15
59.74.0.0/15
59.76.0.0/16
59.77.0.0/16
59.78.0.0/15
101.4.0.0/14
101.76.0.0/15
110.64.0.0/15
111.114.0.0/15
111.116.0.0/15
111.186.0.0/15
113.54.0.0/15
114.212.0.0/15
114.214.0.0/16
115.24.0.0/14
115.154.0.0/15
115.156.0.0/15
115.158.0.0/16
116.13.0.0/16
116.56.0.0/15
118.202.0.0/15
118.228.0.0/15
118.230.0.0/16
120.94.0.0/16
120.95.0.0/16
121.48.0.0/15
121.52.160.0/19
121.192.0.0/16
121.193.0.0/16
121.194.0.0/15
121.248.0.0/14
122.204.0.0/14
125.216.0.0/15
125.218.0.0/16
125.219.0.0/16
125.220.0.0/15
125.222.0.0/15
175.185.0.0/16
175.186.0.0/15
180.84.0.0/15
180.201.0.0/16
180.208.0.0/15
183.168.0.0/15
183.170.0.0/16
183.172.0.0/14
192.124.154.0/24
202.4.128.0/19
202.38.2.0/23
202.38.64.0/19
202.38.96.0/19
202.38.140.0/23
202.38.184.0/21
202.38.192.0/18
202.112.0.0/16
202.113.0.0/20
202.113.16.0/20
202.113.32.0/19
202.113.64.0/18
202.113.128.0/18
202.113.192.0/19
202.113.224.0/20
202.113.240.0/20
202.114.0.0/19
202.114.32.0/19
202.114.64.0/18
202.114.128.0/17
202.115.0.0/19
202.115.128.0/17
202.116.0.0/19
202.116.32.0/20
202.116.48.0/20
202.116.64.0/19
202.116.96.0/19
202.116.128.0/17
202.117.0.0/18
202.117.64.0/18
202.117.128.0/17
202.118.0.0/19
202.118.32.0/19
202.118.64.0/18
202.118.128.0/17
202.119.0.0/19
202.119.32.0/19
202.119.64.0/20
202.119.80.0/20
202.119.96.0/19
202.119.128.0/17
202.120.0.0/18
202.120.64.0/18
202.120.128.0/17
202.121.0.0/16
202.127.216.0/21
202.127.224.0/19
202.179.240.0/20
202.192.0.0/13
202.200.0.0/14
202.204.0.0/14
203.91.120.0/21
210.25.0.0/16
210.26.0.0/15
210.28.0.0/14
210.32.0.0/14
210.36.0.0/14
210.40.0.0/13
211.64.0.0/14
211.68.0.0/15
211.70.0.0/15
211.80.0.0/16
211.81.0.0/16
211.82.0.0/16
211.83.0.0/16
211.84.0.0/15
211.86.0.0/15
218.192.0.0/16
218.193.0.0/16
218.194.0.0/16
218.195.0.0/16
218.196.0.0/14
219.216.0.0/15
219.218.0.0/15
219.220.0.0/16
219.221.0.0/16
219.222.0.0/15
219.224.0.0/15
219.226.0.0/16
219.227.0.0/16
219.228.0.0/15
219.230.0.0/15
219.242.0.0/15
219.244.0.0/14
222.16.0.0/15
222.18.0.0/15
222.20.0.0/15
222.22.0.0/16
222.23.0.0/16
222.24.0.0/15
222.26.0.0/15
222.28.0.0/14
222.192.0.0/14
222.196.0.0/15
222.198.0.0/16
222.199.0.0/16
222.200.0.0/14
222.204.0.0/15
222.206.0.0/15
223.2.0.0/15
223.128.0.0/15

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
36.128.0.0/10
39.128.0.0/10
43.239.172.0/22
43.251.244.0/22
45.121.68.0/22
45.121.72.0/22
45.121.172.0/22
45.121.176.0/22
45.122.96.0/21
45.123.152.0/22
45.124.36.0/22
45.125.24.0/22
45.253.72.0/22
61.14.240.0/22
61.14.244.0/22
103.20.112.0/22
103.21.176.0/22
103.35.104.0/22
103.61.156.0/22
103.61.160.0/22
103.62.24.0/22
103.62.204.0/22
103.62.208.0/22
103.192.0.0/22
103.192.144.0/22
103.193.140.0/22
103.203.164.0/22
103.205.108.0/22
103.205.116.0/22
103.222.196.0/22
111.0.0.0/10
112.0.0.0/10
117.128.0.0/10
120.192.0.0/10
175.176.188.0/22
183.192.0.0/10
211.103.0.0/17
211.136.0.0/14
211.140.0.0/15
211.142.0.0/17
211.142.128.0/17
211.143.0.0/16
218.200.0.0/14
218.204.0.0/15
218.206.0.0/15
221.130.0.0/15
221.176.0.0/13
223.64.0.0/11
223.96.0.0/12
223.112.0.0/14
223.116.0.0/15
223.120.128.0/17
223.121.128.0/17
223.122.0.0/15
223.124.0.0/14

View File

@ -0,0 +1,16 @@
36.192.0.0/11
43.247.240.0/22
61.232.0.0/14
61.236.0.0/15
101.144.0.0/12
103.3.128.0/22
110.96.0.0/11
110.192.0.0/11
115.180.0.0/15
118.204.0.0/14
120.90.0.0/15
122.64.0.0/11
123.64.0.0/11
211.98.0.0/16
221.172.0.0/14
222.32.0.0/11

View File

@ -0,0 +1,7 @@
ipset -N $1 hash:net 2>/dev/null
echo "create $1 hash:net family inet hashsize 1024 maxelem 65536" > /tmp/mwan3.ipset
cat $2 | sed -e "s/^/add $1 /" >> /tmp/mwan3.ipset
ipset -! flush $1
ipset -! restore < /tmp/mwan3.ipset 2>/dev/null
rm -f /tmp/mwan3.ipset

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,94 @@
42.196.0.0/14
43.242.56.0/22
43.242.144.0/22
43.243.148.0/22
43.247.208.0/22
45.252.152.0/22
45.252.200.0/22
45.252.204.0/22
45.252.208.0/22
45.252.212.0/22
45.252.216.0/22
45.252.220.0/22
45.252.224.0/22
45.253.0.0/22
45.253.4.0/22
45.253.8.0/22
45.253.12.0/22
45.253.16.0/22
45.253.20.0/22
45.253.28.0/22
45.253.36.0/22
45.253.40.0/22
45.253.56.0/22
45.253.76.0/22
45.253.80.0/22
45.253.84.0/22
45.253.92.0/22
45.254.28.0/22
45.254.56.0/22
45.254.96.0/22
45.254.132.0/22
45.254.152.0/22
45.254.180.0/22
45.254.200.0/22
45.254.204.0/22
45.254.208.0/22
45.254.212.0/22
45.254.216.0/22
45.254.220.0/22
45.254.224.0/22
45.254.228.0/22
49.220.0.0/14
101.130.0.0/15
101.244.0.0/14
103.23.56.0/22
103.24.184.0/22
103.38.0.0/22
103.38.232.0/22
103.221.88.0/22
103.221.132.0/22
103.221.156.0/22
103.221.180.0/22
103.221.184.0/22
103.221.188.0/22
103.221.192.0/22
103.221.196.0/22
103.222.0.0/22
103.222.4.0/22
103.222.8.0/22
103.222.12.0/22
103.222.16.0/22
103.222.24.0/22
103.222.28.0/22
103.222.36.0/22
103.222.44.0/22
103.222.48.0/22
103.222.56.0/22
103.222.60.0/22
103.222.64.0/22
103.222.68.0/22
103.222.72.0/22
103.222.76.0/22
103.222.80.0/22
103.222.84.0/22
103.222.88.0/22
103.222.92.0/22
103.222.96.0/22
103.222.100.0/22
103.222.104.0/22
103.222.108.0/22
103.222.200.0/22
103.222.204.0/22
103.222.208.0/22
103.222.212.0/22
115.190.0.0/15
124.14.0.0/15
124.254.0.0/18
175.188.0.0/14
180.88.0.0/14
203.82.112.0/22
203.86.64.0/20
211.164.0.0/14
220.112.0.0/14
223.208.0.0/14

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,895 @@
1.24.0.0/13
1.56.0.0/13
1.116.0.0/15
1.188.0.0/14
14.204.0.0/15
27.0.128.0/22
27.0.132.0/22
27.8.0.0/13
27.36.0.0/14
27.40.0.0/13
27.50.128.0/17
27.54.192.0/18
27.98.224.0/19
27.112.0.0/18
27.115.0.0/17
27.192.0.0/11
36.32.0.0/14
36.248.0.0/14
39.64.0.0/11
42.1.128.0/17
42.4.0.0/14
42.48.0.0/15
42.51.0.0/16
42.52.0.0/14
42.56.0.0/14
42.63.0.0/16
42.84.0.0/14
42.176.0.0/13
42.224.0.0/12
43.224.12.0/22
43.224.24.0/22
43.224.52.0/22
43.224.56.0/22
43.224.80.0/22
43.224.160.0/22
43.224.208.0/22
43.225.120.0/22
43.226.96.0/22
43.226.100.0/22
43.226.104.0/22
43.226.108.0/22
43.226.116.0/22
43.226.120.0/22
43.226.160.0/22
43.226.164.0/22
43.226.236.0/22
43.227.104.0/22
43.229.168.0/22
43.229.172.0/22
43.229.176.0/22
43.229.180.0/22
43.229.236.0/22
43.239.120.0/22
43.240.0.0/22
43.240.72.0/22
43.240.132.0/22
43.240.192.0/22
43.240.196.0/22
43.240.204.0/22
43.241.48.0/22
43.241.92.0/22
43.241.184.0/22
43.242.64.0/22
43.242.148.0/22
43.242.152.0/22
43.242.156.0/22
43.242.164.0/22
43.242.180.0/22
43.243.4.0/22
43.243.16.0/22
43.243.88.0/22
43.243.128.0/22
43.243.156.0/22
43.243.180.0/22
43.243.228.0/22
43.246.112.0/22
43.247.88.0/22
43.247.92.0/22
43.247.212.0/22
43.247.216.0/22
43.248.4.0/22
43.248.20.0/22
43.248.48.0/22
43.248.80.0/22
43.248.84.0/22
43.248.88.0/22
43.248.92.0/22
43.248.108.0/22
43.248.148.0/22
43.248.176.0/22
43.248.180.0/22
43.248.184.0/22
43.248.188.0/22
43.248.192.0/22
43.248.196.0/22
43.248.200.0/22
43.248.204.0/22
43.248.244.0/22
43.249.4.0/22
43.249.136.0/22
43.249.144.0/22
43.249.192.0/22
43.249.236.0/22
43.250.4.0/22
43.250.32.0/22
43.250.96.0/22
43.250.112.0/22
43.250.128.0/22
43.250.144.0/22
43.250.168.0/22
43.250.200.0/22
43.250.212.0/22
43.250.244.0/22
43.251.4.0/22
43.251.36.0/22
43.251.232.0/22
43.254.44.0/22
43.254.52.0/22
43.254.104.0/22
43.254.116.0/22
43.254.136.0/22
43.254.144.0/22
43.254.148.0/22
43.254.220.0/22
43.255.84.0/22
43.255.204.0/22
45.112.228.0/22
45.112.232.0/22
45.113.24.0/22
45.113.28.0/22
45.113.200.0/22
45.113.240.0/22
45.113.252.0/22
45.115.144.0/22
45.115.156.0/22
45.115.164.0/22
45.115.200.0/22
45.115.248.0/22
45.117.8.0/22
45.117.124.0/22
45.119.64.0/22
45.119.68.0/22
45.120.100.0/22
45.121.52.0/22
45.121.96.0/22
45.123.156.0/22
45.124.20.0/22
45.124.68.0/22
45.124.80.0/22
45.125.44.0/22
45.126.108.0/22
45.126.120.0/22
45.248.8.0/22
45.249.112.0/22
45.250.32.0/22
45.250.36.0/22
45.250.40.0/22
45.251.16.0/22
45.251.84.0/22
45.251.88.0/22
45.252.104.0/22
45.253.24.0/22
45.253.32.0/22
45.253.64.0/22
58.16.0.0/16
58.17.0.0/17
58.17.128.0/17
58.18.0.0/16
58.19.0.0/16
58.20.0.0/16
58.21.0.0/16
58.22.0.0/15
58.24.0.0/15
58.30.0.0/15
58.144.0.0/16
58.240.0.0/15
58.242.0.0/15
58.244.0.0/15
58.246.0.0/15
58.248.0.0/13
60.0.0.0/13
60.8.0.0/15
60.10.0.0/16
60.11.0.0/16
60.12.0.0/16
60.13.0.0/18
60.13.64.0/18
60.13.128.0/17
60.14.0.0/15
60.16.0.0/13
60.24.0.0/14
60.28.0.0/15
60.30.0.0/16
60.31.0.0/16
60.63.0.0/16
60.204.0.0/16
60.208.0.0/13
60.216.0.0/15
60.218.0.0/15
60.220.0.0/14
60.253.128.0/17
60.255.0.0/16
61.28.0.0/20
61.28.16.0/20
61.28.32.0/19
61.28.64.0/18
61.45.128.0/18
61.48.0.0/14
61.52.0.0/15
61.54.0.0/16
61.55.0.0/16
61.133.0.0/17
61.134.96.0/19
61.134.128.0/18
61.134.192.0/18
61.135.0.0/16
61.136.0.0/18
61.136.64.0/18
61.137.128.0/17
61.138.0.0/18
61.138.64.0/18
61.138.128.0/18
61.139.128.0/18
61.148.0.0/15
61.156.0.0/16
61.158.0.0/17
61.158.128.0/17
61.159.0.0/18
61.161.0.0/18
61.161.128.0/17
61.162.0.0/16
61.163.0.0/16
61.167.0.0/16
61.168.0.0/16
61.176.0.0/16
61.179.0.0/16
61.180.128.0/17
61.181.0.0/16
61.182.0.0/16
61.189.0.0/17
61.240.0.0/14
101.16.0.0/12
101.64.0.0/13
101.72.0.0/14
101.204.0.0/14
101.232.0.0/15
103.3.96.0/22
103.3.100.0/22
103.3.104.0/22
103.3.108.0/22
103.3.112.0/22
103.3.116.0/22
103.3.120.0/22
103.3.124.0/22
103.3.132.0/22
103.3.136.0/22
103.3.140.0/22
103.3.148.0/22
103.3.152.0/22
103.3.156.0/22
103.5.56.0/22
103.5.168.0/22
103.5.192.0/22
103.5.252.0/22
103.7.212.0/22
103.9.248.0/22
103.9.252.0/22
103.14.84.0/22
103.14.132.0/22
103.18.224.0/22
103.21.116.0/22
103.22.188.0/22
103.25.40.0/22
103.27.4.0/22
103.27.240.0/22
103.28.204.0/22
103.31.200.0/22
103.35.220.0/22
103.36.208.0/22
103.36.220.0/22
103.37.44.0/22
103.37.100.0/22
103.38.32.0/22
103.38.40.0/22
103.39.88.0/22
103.40.12.0/22
103.40.192.0/22
103.40.212.0/22
103.40.232.0/22
103.41.164.0/22
103.43.100.0/22
103.43.192.0/22
103.44.80.0/22
103.45.72.0/22
103.45.76.0/22
103.45.160.0/22
103.45.168.0/22
103.45.224.0/22
103.48.216.0/22
103.48.220.0/22
103.48.224.0/22
103.48.228.0/22
103.48.232.0/22
103.52.96.0/22
103.52.100.0/22
103.52.176.0/22
103.52.184.0/22
103.53.124.0/22
103.53.204.0/22
103.55.172.0/22
103.55.204.0/22
103.55.208.0/22
103.55.228.0/22
103.56.32.0/22
103.56.60.0/22
103.57.196.0/22
103.59.116.0/22
103.59.124.0/22
103.60.164.0/22
103.61.176.0/22
103.70.148.0/22
103.72.224.0/22
103.72.228.0/22
103.72.232.0/22
103.72.236.0/22
103.72.240.0/22
103.72.244.0/22
103.72.248.0/22
103.72.252.0/22
103.73.0.0/22
103.73.4.0/22
103.73.8.0/22
103.73.12.0/22
103.73.16.0/22
103.73.20.0/22
103.73.24.0/22
103.73.28.0/22
103.73.144.0/22
103.78.64.0/22
103.85.84.0/22
103.90.92.0/22
103.90.188.0/22
103.91.108.0/22
103.91.176.0/22
103.91.208.0/22
103.92.132.0/22
103.93.180.0/22
103.95.220.0/22
103.98.44.0/22
103.98.168.0/22
103.98.220.0/22
103.107.212.0/22
103.108.244.0/22
103.110.156.0/22
103.117.188.0/22
103.123.56.0/22
103.192.4.0/22
103.192.132.0/22
103.192.188.0/22
103.192.212.0/22
103.203.168.0/22
103.204.72.0/22
103.204.136.0/22
103.205.4.0/22
103.205.192.0/22
103.205.252.0/22
103.207.184.0/22
103.207.228.0/22
103.207.232.0/22
103.210.184.0/22
103.211.44.0/22
103.211.96.0/22
103.211.220.0/22
103.213.96.0/22
103.213.132.0/22
103.214.48.0/22
103.215.36.0/22
103.216.152.0/22
103.216.252.0/22
103.219.28.0/22
103.219.32.0/22
103.219.36.0/22
103.220.48.0/22
103.220.52.0/22
103.221.140.0/22
103.222.32.0/22
103.222.40.0/22
103.222.164.0/22
103.222.172.0/22
103.223.140.0/22
103.223.188.0/22
103.224.228.0/22
103.227.120.0/22
103.227.136.0/22
103.228.204.0/22
103.229.148.0/22
103.229.212.0/22
103.230.196.0/22
103.230.236.0/22
103.233.228.0/22
103.234.56.0/22
103.234.244.0/22
103.236.120.0/22
103.236.240.0/22
103.236.252.0/22
103.238.28.0/22
103.238.32.0/22
103.238.140.0/22
103.238.144.0/22
103.238.160.0/22
103.238.184.0/22
103.239.152.0/22
103.239.244.0/22
103.240.36.0/22
103.240.72.0/22
103.240.84.0/22
103.240.124.0/22
103.240.172.0/22
103.246.8.0/22
103.246.152.0/22
103.248.100.0/22
103.248.152.0/22
103.250.32.0/22
103.250.104.0/22
103.250.124.0/22
103.250.180.0/22
103.250.192.0/22
103.250.216.0/22
103.250.248.0/22
103.251.32.0/22
103.251.96.0/22
103.251.124.0/22
103.251.160.0/22
103.251.240.0/22
103.252.204.0/22
103.252.208.0/22
103.252.232.0/22
103.252.248.0/22
103.253.60.0/22
103.255.88.0/22
103.255.200.0/22
106.48.0.0/15
110.6.0.0/15
110.16.0.0/14
110.44.12.0/22
110.52.0.0/15
110.72.0.0/15
110.228.0.0/14
110.236.0.0/15
110.240.0.0/12
111.85.0.0/16
111.160.0.0/13
111.192.0.0/12
111.223.12.0/22
112.64.0.0/15
112.80.0.0/13
112.88.0.0/13
112.96.0.0/15
112.109.128.0/17
112.111.0.0/16
112.122.0.0/15
112.132.0.0/16
112.192.0.0/14
112.224.0.0/11
113.0.0.0/13
113.8.0.0/15
113.18.0.0/16
113.56.0.0/15
113.58.0.0/16
113.59.0.0/17
113.194.0.0/15
113.200.0.0/15
113.204.0.0/14
113.213.0.0/17
113.224.0.0/12
114.54.0.0/15
114.60.0.0/14
114.119.0.0/17
114.119.224.0/19
114.240.0.0/12
115.46.0.0/16
115.48.0.0/12
115.85.192.0/18
115.172.0.0/14
116.2.0.0/15
116.60.0.0/14
116.70.0.0/17
116.78.0.0/15
116.95.0.0/16
116.112.0.0/14
116.116.0.0/15
116.128.0.0/10
116.194.0.0/15
116.199.0.0/17
116.214.32.0/19
116.216.0.0/14
116.242.0.0/15
116.244.0.0/15
116.254.128.0/17
116.255.128.0/17
117.8.0.0/13
117.74.64.0/20
117.75.0.0/16
117.76.0.0/14
117.100.0.0/15
117.121.128.0/18
118.26.48.0/21
118.72.0.0/13
118.80.0.0/15
118.88.32.0/19
118.88.64.0/18
118.88.128.0/17
118.103.168.0/22
118.132.0.0/14
118.144.0.0/14
118.212.0.0/16
118.224.0.0/14
118.244.0.0/14
119.4.0.0/14
119.27.64.0/18
119.32.0.0/14
119.36.0.0/16
119.37.0.0/17
119.37.128.0/18
119.38.0.0/17
119.39.0.0/16
119.40.128.0/17
119.42.0.0/19
119.42.224.0/19
119.44.0.0/15
119.48.0.0/13
119.59.128.0/17
119.62.0.0/16
119.108.0.0/15
119.112.0.0/13
119.148.160.0/20
119.162.0.0/15
119.164.0.0/14
119.176.0.0/12
119.232.0.0/15
119.248.0.0/14
119.252.240.0/20
120.0.0.0/12
120.80.0.0/13
120.128.0.0/14
120.133.0.0/16
121.16.0.0/13
121.24.0.0/14
121.28.0.0/15
121.30.0.0/16
121.31.0.0/16
121.52.224.0/19
121.55.0.0/18
121.68.0.0/14
121.76.0.0/15
121.100.128.0/17
121.201.0.0/16
122.13.0.0/16
122.96.0.0/15
122.102.64.0/20
122.136.0.0/13
122.156.0.0/14
122.188.0.0/14
122.192.0.0/14
123.4.0.0/14
123.8.0.0/13
123.98.0.0/17
123.100.0.0/19
123.112.0.0/12
123.128.0.0/13
123.138.0.0/15
123.144.0.0/14
123.148.0.0/16
123.152.0.0/13
123.176.80.0/20
123.188.0.0/14
123.196.0.0/15
123.232.0.0/14
124.6.64.0/18
124.20.0.0/16
124.21.0.0/20
124.21.16.0/20
124.21.32.0/19
124.21.64.0/18
124.21.128.0/17
124.42.128.0/17
124.64.0.0/15
124.66.0.0/17
124.67.0.0/16
124.68.0.0/14
124.88.0.0/16
124.89.0.0/17
124.89.128.0/17
124.90.0.0/15
124.92.0.0/14
124.128.0.0/13
124.152.0.0/16
124.160.0.0/16
124.161.0.0/16
124.162.0.0/16
124.163.0.0/16
124.164.0.0/14
124.172.0.0/15
124.240.128.0/18
125.32.0.0/16
125.33.0.0/16
125.34.0.0/16
125.35.0.0/17
125.35.128.0/17
125.36.0.0/14
125.40.0.0/13
125.211.0.0/16
125.214.96.0/19
139.170.0.0/16
139.208.0.0/13
139.226.0.0/15
140.206.0.0/15
144.48.64.0/22
146.196.56.0/22
146.196.68.0/22
150.129.136.0/22
150.129.252.0/22
150.242.152.0/22
150.242.232.0/22
150.255.0.0/16
153.0.0.0/16
153.3.0.0/16
153.34.0.0/15
153.36.0.0/15
153.99.0.0/16
153.101.0.0/16
157.0.0.0/16
157.18.0.0/16
157.61.0.0/16
157.122.0.0/16
157.148.0.0/16
157.156.0.0/16
157.255.0.0/16
160.19.212.0/22
160.202.60.0/22
160.202.148.0/22
160.202.152.0/22
160.202.212.0/22
163.0.0.0/16
163.53.48.0/22
163.53.52.0/22
163.53.168.0/22
163.125.0.0/16
163.142.0.0/16
163.177.0.0/16
163.179.0.0/16
163.204.0.0/16
171.34.0.0/15
171.36.0.0/14
171.116.0.0/14
171.120.0.0/13
175.16.0.0/13
175.42.0.0/15
175.44.0.0/16
175.106.128.0/17
175.146.0.0/15
175.148.0.0/14
175.152.0.0/14
175.160.0.0/12
175.184.128.0/18
180.77.0.0/16
180.95.128.0/17
180.129.128.0/17
180.130.0.0/16
180.189.148.0/22
180.223.0.0/16
182.54.0.0/17
182.88.0.0/14
182.112.0.0/12
183.92.0.0/14
183.184.0.0/13
192.140.208.0/22
192.140.212.0/22
202.74.8.0/21
202.75.208.0/20
202.89.96.0/22
202.92.0.0/22
202.96.0.0/18
202.96.64.0/21
202.96.72.0/21
202.96.80.0/20
202.97.128.0/18
202.97.192.0/19
202.97.224.0/21
202.97.232.0/21
202.97.240.0/20
202.98.0.0/21
202.98.8.0/21
202.98.16.0/20
202.99.0.0/18
202.99.64.0/19
202.99.96.0/21
202.99.104.0/21
202.99.112.0/20
202.99.128.0/19
202.99.160.0/21
202.99.168.0/21
202.99.176.0/20
202.99.192.0/21
202.99.200.0/21
202.99.208.0/20
202.99.224.0/21
202.99.232.0/21
202.99.240.0/20
202.101.128.0/18
202.102.128.0/21
202.102.136.0/21
202.102.144.0/20
202.102.160.0/19
202.102.224.0/21
202.102.232.0/21
202.102.240.0/20
202.106.0.0/16
202.107.0.0/17
202.108.0.0/16
202.110.0.0/18
202.110.64.0/18
202.110.192.0/18
202.111.128.0/19
202.111.160.0/19
202.115.32.0/19
202.115.64.0/18
202.122.128.0/24
202.127.112.0/20
202.127.209.0/24
202.130.224.0/19
202.160.140.0/22
202.170.128.0/19
203.76.240.0/22
203.93.0.0/22
203.93.4.0/22
203.93.8.0/24
203.93.9.0/24
203.93.10.0/23
203.93.12.0/22
203.93.16.0/20
203.93.32.0/19
203.93.64.0/18
203.93.128.0/21
203.93.136.0/22
203.93.140.0/24
203.93.141.0/24
203.93.142.0/23
203.93.144.0/20
203.93.160.0/19
203.93.192.0/18
203.135.160.0/20
203.166.160.0/19
203.223.0.0/20
210.5.128.0/20
210.12.0.0/18
210.12.64.0/18
210.12.128.0/18
210.12.192.0/18
210.13.0.0/18
210.13.64.0/18
210.13.128.0/17
210.14.160.0/19
210.14.192.0/19
210.14.224.0/19
210.15.0.0/19
210.15.32.0/19
210.15.96.0/19
210.15.128.0/18
210.21.0.0/17
210.21.128.0/17
210.22.0.0/16
210.51.0.0/16
210.52.0.0/18
210.52.64.0/18
210.52.128.0/17
210.53.0.0/17
210.53.128.0/17
210.56.192.0/19
210.72.160.0/19
210.74.64.0/19
210.74.96.0/19
210.74.128.0/19
210.78.0.0/19
210.78.160.0/19
210.78.192.0/18
210.79.64.0/18
210.82.0.0/15
211.90.0.0/15
211.92.0.0/15
211.94.0.0/15
211.96.0.0/15
211.144.0.0/15
218.7.0.0/16
218.8.0.0/15
218.10.0.0/16
218.11.0.0/16
218.12.0.0/16
218.21.128.0/17
218.24.0.0/15
218.26.0.0/16
218.27.0.0/16
218.28.0.0/15
218.56.0.0/14
218.60.0.0/15
218.62.0.0/17
218.67.128.0/17
218.68.0.0/15
218.98.0.0/17
218.104.0.0/17
218.104.128.0/19
218.104.160.0/19
218.104.192.0/21
218.104.200.0/21
218.104.208.0/20
218.104.224.0/19
218.105.0.0/16
218.106.0.0/15
219.154.0.0/15
219.156.0.0/15
219.158.0.0/17
219.158.128.0/17
219.159.0.0/18
219.232.0.0/14
220.152.128.0/17
220.158.240.0/22
220.192.0.0/15
220.194.0.0/15
220.196.0.0/14
220.200.0.0/13
220.231.0.0/18
220.234.0.0/16
220.248.0.0/14
220.252.0.0/16
221.0.0.0/15
221.2.0.0/16
221.3.0.0/17
221.3.128.0/17
221.4.0.0/16
221.5.0.0/17
221.5.128.0/17
221.6.0.0/16
221.7.0.0/19
221.7.32.0/19
221.7.64.0/19
221.7.96.0/19
221.7.128.0/17
221.8.0.0/15
221.10.0.0/16
221.11.0.0/17
221.11.128.0/18
221.11.192.0/19
221.11.224.0/19
221.12.0.0/17
221.12.128.0/18
221.13.0.0/18
221.13.64.0/19
221.13.96.0/19
221.13.128.0/17
221.14.0.0/15
221.137.0.0/16
221.192.0.0/15
221.194.0.0/16
221.195.0.0/16
221.196.0.0/15
221.198.0.0/16
221.199.0.0/19
221.199.32.0/20
221.199.48.0/20
221.199.64.0/18
221.199.128.0/18
221.199.192.0/20
221.199.224.0/19
221.200.0.0/14
221.204.0.0/15
221.206.0.0/16
221.207.0.0/18
221.207.64.0/18
221.207.128.0/17
221.208.0.0/14
221.212.0.0/16
221.213.0.0/16
221.214.0.0/15
221.216.0.0/13
222.128.0.0/14
222.132.0.0/14
222.136.0.0/13
222.160.0.0/15
222.162.0.0/16
222.163.0.0/19
222.163.32.0/19
222.163.64.0/18
222.163.128.0/17
223.27.184.0/22
223.166.0.0/15

View File

@ -0,0 +1,11 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@mwan3helper[-1]
add ucitrack mwan3helper
set ucitrack.@mwan3helper[-1].init=mwan3helper
commit ucitrack
EOF
rm -f /tmp/luci*
exit 0