update adguardhome and openclash installation guide

This commit is contained in:
2025-10-05 17:16:40 +08:00
parent 794e0c447e
commit 4696e89eb2
4 changed files with 78 additions and 8 deletions

View File

@@ -0,0 +1,37 @@
---
title: 在Openwrt上安装AdguardHome
categories: 技术
cover: https://pic.biss.click/i/2025/10/05/r5y54i.png
tags: '-Openwrt -AdguardHome'
abbrlink: b57500e9
summary: >-
这篇文章介绍了在OpenWrt上安装AdguardHome的过程。首先作者提到由于luci-app-adguardhome软件源的问题选择了其他途径获取软件包并进行安装。接着详细说明了安装步骤包括下载、上传和运行安装命令。在配置部分作者强调了更新核心版本的重要性并提供了配置AdguardHome的具体步骤如关闭路由器自带DNS/DHCP服务器并建议设置AdguardHome的DHCP服务器。最后作者提醒用户在完成配置后点击“保存并应用”并通过AdGuardHome
Web界面进行验证。
date: 2025-09-28 17:10:18
---
接续前言,`AdguardHome`是一款广告拦截软件,有了一台小软路由后就开始折腾了。
# 安装
首先要下载软件包,但是经过尝试,软件源里面的`luci-app-adguardhome`不太好用~~(也可能是我不会用)~~ ,所以我用的下面的包:
{% link luci-app-adguardhome,rufengsuixing,https://github.com/rufengsuixing/luci-app-adguardhome %}
虽然好几年没更新了,但还是能用。下载之后上传到路由器,使用`opkg install`命令安装,或者可以直接通过网页安装:
<center><img src="https://pic.biss.click/i/2025/10/05/rek0qq.png" alt="image" /></center>
# 配置
如下图所示进行操作,如果更新核心版本失败,考虑更换`升级用的下载链接`,使用镜像源,或者科学上网,错号框内的非必要不修改;
<center><img src="https://pic.biss.click/i/2025/10/05/s46k8g.png" alt="Screenshot of the AdGuard Home configuration page in the OpenWrt web interface. The left sidebar menu is expanded to highlight the Services section and AdGuard Home submenu. The main panel displays configuration options including enable checkbox, web management port, update core version button, executable file path, compressed file option, configuration file path, working directory, and log file path. A large red X marks the configuration file path field, indicating it should not be modified. Visible text includes AdGuard Home, OpenClash, miniDLNA, UPnP IGD and PCP, enable, update core version, executable file path, configuration file path, working directory, log file path, and other related options. The interface is clean and instructional, with a neutral tone." /></center>
最后点击“保存并应用”,然后点击`AdGuardHome Web:3000`进行安装建议关闭路由器自带DNS/DHCP服务器`AdguardHome`直接替代
<center><img src="https://pic.biss.click/i/2025/10/05/s8livw.png" alt="Screenshot of the OpenWrt web interface showing the DHCP/DNS settings page. The left sidebar menu is expanded to highlight the network section and DHCP/DNS submenu. The main panel displays the General tab with options for enabling exclusive authorization and DNS redirect, both with checkboxes. The interface is clean and organized, with navigation tabs for additional settings such as DNS records, filters, logs, and PXE/TFTP. The overall tone is neutral and instructional. Visible text includes DHCP/DNS, 常规, 唯一授权, DNS redirect, 本地解析这些项目, 本地域名, and other configuration options." /></center>
<center><img src="https://pic.biss.click/i/2025/10/05/sa99dn.png" alt="alt=Screenshot of the OpenWrt web interface focused on DHCP/DNS settings. The left sidebar menu highlights the network section and DHCP/DNS submenu. Red arrows guide the user through selecting DHCP/DNS, then the settings and port tab, and finally entering 5353 in the DNS server port field. The main panel displays options for specifying interface addresses, listening interfaces, excluded interfaces, and DNS server port. Visible text includes DHCP/DNS, 设置及端口, 5353, 监听接口, 排除接口, DNS服务器端口, DNS查询端口, and related configuration options. The interface is clean and instructional, with a neutral and helpful tone." /></center>
然后设置AdguardHome的DHCP服务器注意要先检查配置再启用
<center><img src="https://pic.biss.click/i/2025/10/05/scj0h4.png" alt="image" /></center>

View File

@@ -3,7 +3,9 @@ filename: install-openclash-on-openwrt
title: 在Openwrt中安装OpenClash title: 在Openwrt中安装OpenClash
updated: '' updated: ''
cover: https://pic.biss.click/i/2025/09/02/z1tbws.png cover: https://pic.biss.click/i/2025/09/02/z1tbws.png
tags: openwrt tags:
- Openwrt
- Openclash
categories: 技术 categories: 技术
abbrlink: 2b2fb1a7 abbrlink: 2b2fb1a7
toc: true toc: true

View File

@@ -0,0 +1,27 @@
---
title: Adguard和Openclash共存
updated: ''
cover: https://pic.biss.click/i/2025/10/05/p2b1j2.png
tags:
- AdguardHome
- Openclash
- Openwrt
categories: 技术
toc: true
comments: true
abbrlink: '66e66374'
summary: >-
这篇文章介绍了如何在已经安装了 OpenWrt 系统并配置好 OpenClash 和 AdguardHome 的情况下,实现这两者的共存。首先简要说明了
AdguardHome 和 OpenClash 的原理,它们都是通过劫持 DNS 来达到特定目的。然后分别介绍了两种配置方式:一种是在
AdguardHome 中将上游 DNS 服务器设置为 127.0.0.1:7874这种方式相对简单另一种是将 OpenClash 中的 DNS 指向
AdguardHome但可能存在拦截失败的情况。
date: 2025-10-05 15:18:00
---
在之前已经安装了`Openwrt`系统,并且也配置了`OpenClash``AdguardHome`,两者的原理简单看都是劫持`DNS`,所以两者要同时运行,必须经过一定的配置。
无非就这两种方式:
<center><img src="https://pic.biss.click/i/2025/10/05/qyl83t.png" alt="image" /></center>
左边的方式更简单一些,只需要修改`AdguardHome`的上游DNS服务器为`127.0.0.1:7874` 即可;
右边的方式需要将`OpenClash`里的`DNS`指向`AdguardHome`,但是可能有拦截失败的情况。

View File

@@ -1,21 +1,25 @@
--- ---
filename: adguard-rules filename: adguard-rules
title: Adguard规则分享 title: Adguard规则分享
date: 2025-10-05 12:18:00
updated: '' updated: ''
cover: https://pic.biss.click/i/2025/10/05/k6o3u5.png cover: https://pic.biss.click/i/2025/10/05/k6o3u5.png
tags: AdguardHome tags:
- AdguardHome
- Openwrt
categories: 技术 categories: 技术
abbrlink: '' abbrlink: 69b16001
summary: '' summary: >-
这篇文章分享了关于Adguardhome广告拦截工具的使用经验特别强调了规则的重要性。作者提到要达到更好的拦截效果需要搭配有效的规则并详细介绍了两个关键方面一是综合过滤规则的分享二是广告过滤规则订阅中心的集成。通过添加这些规则使用Adblocktester工具可以达到74分的拦截效果认为这基本够用。
toc: true toc: true
comments: true comments: true
date: 2025-10-05 12:18:00
--- ---
众所周知,`Adguardhome`是用于拦截广告的工具,搭配好的规则,拦截效果才会更好,下面来分享一些规则: 众所周知,`Adguardhome`是用于拦截广告的工具,搭配好的规则,拦截效果才会更好,下面来分享一些规则:
1. 一个综合的过滤规则 1. 一个综合的过滤规则
{% link adblockfilters,adblockfilters https://github.com/217heidai/adblockfilters %} {% link adblockfilters,adblockfilters,https://github.com/217heidai/adblockfilters %}
2. 广告过滤规则订阅中心 2. 广告过滤规则订阅中心
{% link 广告过滤规则订阅中心,广告过滤规则订阅中心 https://adguardfilters-chinese.pages.dev/ %} {% link 广告过滤规则订阅中心,广告过滤规则订阅中心,https://adguardfilters-chinese.pages.dev/ %}
集成了许多规则,可以挑选一下加入。 集成了许多规则,可以挑选一下加入。
<center><img src="https://pic.biss.click/i/2025/10/05/lndn18.png" alt="image" /></center> <center><img src="https://pic.biss.click/i/2025/10/05/lndn18.png" alt="image" /></center>