luci-app-mosdns: update config files
This commit is contained in:
parent
6ab9e7adf3
commit
dfff109e98
@ -77,8 +77,10 @@ plugins:
|
|||||||
- tag: cache
|
- tag: cache
|
||||||
type: cache
|
type: cache
|
||||||
args:
|
args:
|
||||||
size: 200000
|
size: 20000
|
||||||
lazy_cache_ttl: 259200
|
lazy_cache_ttl: 86400
|
||||||
|
dump_file: "/etc/mosdns/cache.dump"
|
||||||
|
dump_interval: 600
|
||||||
|
|
||||||
# 转发至本地服务器
|
# 转发至本地服务器
|
||||||
- tag: forward_local
|
- tag: forward_local
|
||||||
@ -127,21 +129,19 @@ plugins:
|
|||||||
exec: accept
|
exec: accept
|
||||||
|
|
||||||
# fallback 用本地服务器 sequence
|
# fallback 用本地服务器 sequence
|
||||||
# 返回不包含本地 ip 则 reject
|
# 返回非国内 ip 则 drop_resp
|
||||||
- tag: query_is_local_ip
|
- tag: query_is_local_ip
|
||||||
type: sequence
|
type: sequence
|
||||||
args:
|
args:
|
||||||
- exec: $local_sequence
|
- exec: $local_sequence
|
||||||
- matches: resp_ip $geoip_cn
|
- matches: "!resp_ip $geoip_cn"
|
||||||
exec: accept
|
exec: drop_resp
|
||||||
- exec: reject
|
|
||||||
|
|
||||||
# fallback 用远程服务器 sequence
|
# fallback 用远程服务器 sequence
|
||||||
- tag: query_is_remote
|
- tag: query_is_remote
|
||||||
type: sequence
|
type: sequence
|
||||||
args:
|
args:
|
||||||
- exec: $remote_sequence
|
- exec: $remote_sequence
|
||||||
- exec: accept
|
|
||||||
|
|
||||||
# fallback 用远程服务器 sequence
|
# fallback 用远程服务器 sequence
|
||||||
- tag: fallback
|
- tag: fallback
|
||||||
@ -150,7 +150,7 @@ plugins:
|
|||||||
primary: query_is_local_ip
|
primary: query_is_local_ip
|
||||||
secondary: query_is_remote
|
secondary: query_is_remote
|
||||||
threshold: 500
|
threshold: 500
|
||||||
always_standby: false
|
always_standby: true
|
||||||
|
|
||||||
# 查询国内域名
|
# 查询国内域名
|
||||||
- tag: query_is_local_domain
|
- tag: query_is_local_domain
|
||||||
|
@ -116,15 +116,13 @@ plugins:
|
|||||||
type: sequence
|
type: sequence
|
||||||
args:
|
args:
|
||||||
- exec: $local_sequence
|
- exec: $local_sequence
|
||||||
- matches: resp_ip $geoip_cn
|
- matches: "!resp_ip $geoip_cn"
|
||||||
exec: accept
|
exec: drop_resp
|
||||||
- exec: reject
|
|
||||||
|
|
||||||
- tag: query_is_remote
|
- tag: query_is_remote
|
||||||
type: sequence
|
type: sequence
|
||||||
args:
|
args:
|
||||||
- exec: $remote_sequence
|
- exec: $remote_sequence
|
||||||
- exec: accept
|
|
||||||
|
|
||||||
- tag: fallback
|
- tag: fallback
|
||||||
type: fallback
|
type: fallback
|
||||||
@ -132,7 +130,7 @@ plugins:
|
|||||||
primary: query_is_local_ip
|
primary: query_is_local_ip
|
||||||
secondary: query_is_remote
|
secondary: query_is_remote
|
||||||
threshold: 500
|
threshold: 500
|
||||||
always_standby: false
|
always_standby: true
|
||||||
|
|
||||||
- tag: query_is_local_domain
|
- tag: query_is_local_domain
|
||||||
type: sequence
|
type: sequence
|
||||||
|
Loading…
Reference in New Issue
Block a user