Ubuntu安装
snap install adguard-home
所有接口端口 8088
所有监听端口 53
配置DNS过滤拦截
- https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
- https://cdn.jsdelivr.net/gh/privacy-protection-tools/anti-AD/anti-ad-easylist.txt
- https://gitee.com/xinggsf/Adblock-Rule/raw/master/rule.txt
- https://gitee.com/halflife/list/raw/master/ad-edentw.txt
- https://gitee.com/halflife/list/raw/master/ad.txt
- https://gitee.com/halflife/list/raw/master/ad2.txt
NEOHosts
链接:https://cdn.jsdelivr.net/gh/neoFelhz/neohosts@gh-pages/full/hosts
AdBlock 自定义拦截规则
链接:https://cdn.adblockcdn.com/filters/adblock_custom.txt
反规避拦截规则
链接:https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt
允许非侵入式广告
链接:https://easylist-downloads.adblockplus.org/exceptionrules.txt
Adblock 警告移除列表
链接:https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
anti-AD v4
链接:https://gitee.com/privacy-protection-tools/anti-ad/raw/master/easylist.txt
neohosts
链接:https://cdn.jsdelivr.net/gh/neoFelhz/neohosts@gh-pages/basic/hosts.txt
EasyList China : 国内网站广告过滤的主规则。
链接:https://easylist-downloads.adblockplus.org/easylistchina.txt
EasyList Lite
链接: https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjxlist.txt
EasyPrivacy : EasyPrivacy 是隐私保护,不被跟踪。
链接:https://easylist-downloads.adblockplus.org/easyprivacy.txt
CJX’s Annoyance List : 过滤烦人的自我推广,并补充 EasyPrivacy 隐私规则。
链接:https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt
I don’t care about cookies : 我不关心 Cookie 的问题,屏蔽网站的 cookies 相关的警告。
链接:https://www.i-dont-care-about-cookies.eu/abp/
常见问题
端口冲突
在 Linux 设备上运行 AdGuard Home,通常会出现 53(本地 DNS 服务器)、68(DHCP 客户端)、80(Http)、443(Https) 端口冲突的问题,可以通过 netstat -tunlp | grep 端口号 查询占用进程。有两种解决方案:使用不同端口、停用冲突进程。
如果是通过 Docker (基本在Linux下都会遇到这种情况)方式运行 AdGuard Home,出现 listen udp 0.0.0.0:53: bind: address already in use
的提示,需要手动处理,方法如下:
#停止 DNSStubListener
systemctl stop systemd-resolved
#创建文件夹
mkdir -p /etc/systemd/resolved.conf.d/
#使用 nvim 创建配置文件
nvim /etc/systemd/resolved.conf.d/adguardhome.conf
在编辑器中粘贴以下内容:
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
保存后执行以下命令。
#创建备份
sudo mv /etc/resolv.conf /etc/resolv.conf.backup
#将 /etc/resolv.conf 链接至 /run/systemd/resolve/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
#重启 DNSStubListener
systemctl restart systemd-resolved
完成后使用 netstat -tunlp | grep 53
命令检查是否依旧有进程占用 53 端口,在centos8下修改了之后就算重启DNS还会有53端口这时重启主机即可,如无冲突,重启 AdGuard Home 容器即可。