本帖最后由 大马蜂 于 2022-4-24 12:02 编辑
![](static/image/hrline/4.gif) ![](https://www.right.com.cn/forum/static/image/hrline/4.gif)
常规设置:
过滤器更新间隔——12小时
浏览安全网页服务——不开启
家长控制服务——不开启
使用安全搜索——不开启
日志查询记录保留时间——30天
统计数据保留时间——90天
![](static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
DNS设置:
上游DNS服务器——https://dns.alidns.com/dns-query 负载均衡
Bootstrap DNS 服务器——运营商或223.5.5.5
私人反向DNS服务器——不开启
速度限制——0
EDNS客户端子网——不开启
DNSSEC——不开启
禁用IPV6地址的解析——不开启
拦截模式——默认
DNS缓存大小——104857600(100M=1024*1024*100)
覆盖最小TTL值——不开启
覆盖最大TTL值——不开启
乐观缓存——开启
![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
DNS约束清单:
AdGUARD DNS filter
CHN:anti-AD
使用上述设置可以利用doh解析防污染,乐观缓存加快解析,anti-ad规则过滤电视、盒子之类的低级广告。
![](https://www.right.com.cn/forum/static/image/hrline/4.gif) ![](https://www.right.com.cn/forum/static/image/hrline/4.gif)
补充自己摸索的虚拟机下安装AdGuradHome的方法
虚拟机平台:PVE7.1-12
![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
创建lxc容器:
CT模板——alpine-3.15-default(超级轻量的系统,镜像只有4M)
CPU——1核心
内存——128M
硬盘——512M
网络设备——vmbr虚拟网桥(桥接过上网路由器的)
网关和DNS——连全球的
![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
准备安装环境:
apk update 更新软件列表
apk upgrade 更新默认已装软件包
apk add sudo 安装sudo
apk add nano 安装nano
apk add curl 安装curl
apk add tar 安装tar
![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
安装AdGuardHome:
使用官方(https://github.com/AdguardTeam/AdGuardHome)一键安装脚本命令:
curl -s -S -L https://raw.githubusercontent.co ... /scripts/install.sh | sh -s -- -c beta
注:稳定版无法加入alpine容器的开机启动项,beta版可以,功能上几乎一样
![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png) ![](https://www.right.com.cn/forum/static/image/hrline/line7.png)
将AdGuardHome加入开机启动:
rc-update add AdGuardHome default 加入开机启动
rc-update -a 验证是否成功
rc-status -a 查询所有正在运行的服务
完。
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|