Adguard Home安装与配置
AdGuard Home,是Adguard的一个开源项目,可以用来反追踪和去广告的DNS Server。
安装
官方有多个平台可以打包的可执行版本,这里我使用最简单的docker方式来安装。
docker
docker run -d --name adguard_home -v /home/binchi/Workspace/adguard/work:/opt/adguardhome/work -v /home/binchi/Workspace/adguard/conf:/opt/adguardhome/conf -p 53:53/tcp -p 53:53/udp -p 3000:3000 adguard/adguardhome
docker下可能遇到的问题
- 可以tcp但是不可以udp
nslookup -vc bilibili.com
nslookup bilibili.com 127.0.0.1 -port=5553
- mac的docker是不可以network选择host的
配置
上游DNS
https://223.5.5.5/dns-query
https://223.6.6.6/dns-query
https://doh.pub/dns-query
Bootstrap DNS
解析上游服务器的DNS
223.5.5.5
223.6.6.6
屏蔽规则
直接加到AdguardHome.yaml下的filters即可。
filters:
- enabled: true
url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
name: AdGuard DNS filter
id: 1
- enabled: true
url: https://adaway.org/hosts.txt
name: AdAway Default Blocklist
id: 2
- enabled: true
url: https://easylist-downloads.adblockplus.org/easylist.txt
name: EasyList
id: 1620293047
- enabled: true
url: https://easylist-downloads.adblockplus.org/easylistchina.txt
name: EasyList China
id: 1620293048
- enabled: true
url: https://easylist-downloads.adblockplus.org/easyprivacy.txt
name: EasyPrivacy
id: 1620293049
- enabled: true
url: https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt
name: Anti-AD
id: 1620293050
- enabled: true
url: https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt
name: CJX's Annoyance List
id: 1620293051
- enabled: true
url: https://gitee.com/xinggsf/Adblock-Rule/raw/master/rule.txt
name: 乘风 广告过滤规则
id: 1620293052
- enabled: true
url: https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts
name: 大圣净化 - 针对国内视频网站
id: 1620293053
- enabled: true
url: https://raw.githubusercontent.com/vokins/yhosts/master/hosts
name: yhosts国内
id: 1620293054
- enabled: true
url: https://cdn.jsdelivr.net/gh/o0HalfLife0o/list@master/ad.txt
name: halflife
id: 1620293055