V4版本配置文件一直跑不起来,哪位大神帮看看到底哪里出问题 #446
Unanswered
clash1step
asked this question in
Q&A
Replies: 2 comments
-
你可以用命令方式,在前台运行,看看报什么错 |
Beta Was this translation helpful? Give feedback.
0 replies
-
v4版本有一个很神奇的问题,config文件名中不能含有 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
log:
level: error
file: ./mosdns.log
data_providers:
file: ./geosite.dat
auto_reload: true
file: ./geoip.dat
auto_reload: true
plugins:
转发至本地服务器的插件
type: fast_forward
args:
upstream:
- addr: tcp://223.6.6.6
trusted: true # 是否是可信服务器
转发至远程服务器的插件
type: fast_forward
args:
upstream:
- addr: 127.0.0.1:5352
trusted: true # 是否是可信服务器
匹配本地域名的插件
type: query_matcher
args:
domain:
- 'provider:geosite:cn'
- 'provider:geosite:apple-cn'
- 'provider:geosite:google-cn'
匹配非本地域名的插件
type: query_matcher
args:
domain:
- 'provider:geosite:geolocation-!cn'
匹配本地 IP 的插件
type: response_matcher
args:
client_ip:
- 'provider:geoip:cn'
匹配广告域名的插件
type: query_matcher
args:
domain:
- 'provider:geosite:category-ads-all'
主要的运行逻辑插件
sequence 插件中调用的插件 tag 必须在 sequence 前定义,
否则 sequence 找不到对应插件。
tag: main_sequence
type: sequence
args:
exec:
- _default_cache
# 屏蔽广告域名
- if: query_is_ad_domain
exec:
- _new_nxdomain_response
- _return
servers:
listeners:
addr: 0.0.0.0:53
addr: 0.0.0.0:53
Beta Was this translation helpful? Give feedback.
All reactions