Closed ghost closed 3 years ago
可以尝试使用 WinSCP 将 gfwlist2agh_combine.txt 文件存放入相应文件夹,再编辑 adguardhome 根目录下的 AdGuardHome.yaml,将其中的 “upstream_dns_file” 键值更改为存放 gfwlist2agh_combine.txt 文件的路径,如“upstream_dns_file: /opt/adguardhome/conf/gfwlist2agh_combine.txt”。保存后重启 adguardhome 进程。
如果此操作过于繁杂,我稍后可以将针对于 UI 界面版的规则输出到相应文件 (暂定 gfwlist2agh_cnacc_ui.txt / gfwlist2agh_combine_ui.txt / gfwlist2agh_gfwlist_ui.txt)
如果此操作过于繁杂,我稍后可以将针对于 UI 界面版的规则输出到相应文件 (暂定 gfwlist2agh_cnacc_ui.txt / gfwlist2agh_combine_ui.txt / gfwlist2agh_gfwlist_ui.txt)
我忘了,当前版本的规则能直接适用于 UI 界面,您可以直接将其复制并粘贴进 “上游 DNS 服务器” 中
感谢,刚接触这个不太懂。
现在的问题是,我上游的dns是Google的,导致国内的域名很多都解析成了香港的IP,网页打开很慢,使用 gfwlist2agh_combine.txt
这个文件可以解决嘛?
如果此操作过于繁杂,我稍后可以将针对于 UI 界面版的规则输出到相应文件 (暂定 gfwlist2agh_cnacc_ui.txt / gfwlist2agh_combine_ui.txt / gfwlist2agh_gfwlist_ui.txt)
我忘了,当前版本的规则能直接适用于 UI 界面,您可以直接将其复制并粘贴进 “上游 DNS 服务器” 中
嗯嗯,刚刚看了您这个文章了 https://www.zhijie.online/resources/personal_projects/GFWList2AGH/page.html
目前我用下来的体验来讲,能解决大部分问题,如果在体验中出现有什么网站误被判定使用 gfwlist_dns(Google / OpenDNS) 的话可以提出 issues,我可以将其添加进白名单。
这三个有啥区别?
可以理解为 白名单模式 / 黑名单模式 / 混合模式(修正黑名单中可能存在的白名单规则,如:||googleapis.com 和 ||fonts.googleapis.com,fonts.googleapis.com 在国内有 CDN,则应走国内 DNS 而不是使用 国外 DNS 进行解析)
combine 更适合日常使用,规则比较全面
可以理解为 白名单模式 / 黑名单模式 / 混合模式(修正黑名单中可能存在的白名单规则,如:||googleapis.com 和 ||fonts.googleapis.com,fonts.googleapis.com 在国内有 CDN,则应走国内 DNS 而不是使用 国外 DNS 进行解析)
那这个分流是怎么走的呢?
a. 开启 “并行查询” 并以 gfwlist2agh_combine.txt 为例:
b. 开启 “并行查询” 并以 gfwlist2agh_cnacc.txt 为例:
c. 开启 “并行查询” 并以 gfwlist2agh_gfwlist.txt 为例:
@hezhijie0327 zhe那这两个是干啥的
- 当域名规则不在 gfwlist 也不在 cnacc 中时,则走 https://dns.alidns.com:443/dns-query 和 https://dns.pub:443/dns-query 进行查询(如:www.zhijie.online)
虽然目前看来 dns.pub 和 doh.pub 指向的服务器地址为同一个,但现本项目中 DoH 及 DoT 地址均已更改为 doh.pub
issue 其实可以不用关,也许有人跟我一样呢,不懂用。这个还是挺好的,用了这几天下来,体验挺好👍
好,我将此 issue 置顶😊
@hezhijie0327 感谢作者的贡献!使用体验非常nice👍。不过现在的目录和文件命名好像变了, 这些都是什么意思,我应该使用哪个呢🤣
blacklist_full.txt
即可*_lite.txt
仅精确到二级域名(example.org
)做了一个简陋的分流管理 luci 上传格式限制,请解压
做了一个简陋的分流管理 luci 上传格式限制,请解压 luci-app-adguardhome_1.9-11_all.zip
@tty228 可以考虑一下smartdns分流管理 luci?直接套用一下这个简陋模块也就够了
安装在软路由上的 adguardhome 如何使用?