diff --git a/source/_posts/2025/2025.09/install-adguardhome-on-openwrt.md b/source/_posts/2025/2025.09/install-adguardhome-on-openwrt.md new file mode 100644 index 0000000..17fb444 --- /dev/null +++ b/source/_posts/2025/2025.09/install-adguardhome-on-openwrt.md @@ -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`命令安装,或者可以直接通过网页安装: + +
image
+ +# 配置 + +如下图所示进行操作,如果更新核心版本失败,考虑更换`升级用的下载链接`,使用镜像源,或者科学上网,错号框内的非必要不修改; +
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.
+ +最后点击“保存并应用”,然后点击`AdGuardHome Web:3000`,进行安装,建议关闭路由器自带DNS/DHCP服务器,`AdguardHome`直接替代 + +
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.
+ +
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.
+ +然后,设置AdguardHome的DHCP服务器,注意要先检查配置,再启用 +
image
\ No newline at end of file diff --git a/source/_posts/2025/2025.09/install-openclash-on-openwrt.md b/source/_posts/2025/2025.09/install-openclash-on-openwrt.md index 5d4c472..1a28681 100644 --- a/source/_posts/2025/2025.09/install-openclash-on-openwrt.md +++ b/source/_posts/2025/2025.09/install-openclash-on-openwrt.md @@ -3,7 +3,9 @@ filename: install-openclash-on-openwrt title: 在Openwrt中安装OpenClash updated: '' cover: https://pic.biss.click/i/2025/09/02/z1tbws.png -tags: openwrt +tags: + - Openwrt + - Openclash categories: 技术 abbrlink: 2b2fb1a7 toc: true diff --git a/source/_posts/2025/2025.10/adguard-and-openclash.md b/source/_posts/2025/2025.10/adguard-and-openclash.md new file mode 100644 index 0000000..676c92e --- /dev/null +++ b/source/_posts/2025/2025.10/adguard-and-openclash.md @@ -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`,所以两者要同时运行,必须经过一定的配置。 +无非就这两种方式: + +
image
+ +左边的方式更简单一些,只需要修改`AdguardHome`的上游DNS服务器为`127.0.0.1:7874` 即可; +右边的方式需要将`OpenClash`里的`DNS`指向`AdguardHome`,但是可能有拦截失败的情况。 \ No newline at end of file diff --git a/source/_posts/2025/2025.10/adguard-rules.md b/source/_posts/2025/2025.10/adguard-rules.md index 9193cfb..f26db46 100644 --- a/source/_posts/2025/2025.10/adguard-rules.md +++ b/source/_posts/2025/2025.10/adguard-rules.md @@ -1,23 +1,27 @@ --- filename: adguard-rules title: Adguard规则分享 -date: 2025-10-05 12:18:00 updated: '' cover: https://pic.biss.click/i/2025/10/05/k6o3u5.png -tags: AdguardHome +tags: + - AdguardHome + - Openwrt categories: 技术 -abbrlink: '' -summary: '' +abbrlink: 69b16001 +summary: >- + 这篇文章分享了关于Adguardhome广告拦截工具的使用经验,特别强调了规则的重要性。作者提到,要达到更好的拦截效果,需要搭配有效的规则,并详细介绍了两个关键方面:一是综合过滤规则的分享,二是广告过滤规则订阅中心的集成。通过添加这些规则,使用Adblocktester工具可以达到74分的拦截效果,认为这基本够用。 toc: true comments: true +date: 2025-10-05 12:18:00 --- + 众所周知,`Adguardhome`是用于拦截广告的工具,搭配好的规则,拦截效果才会更好,下面来分享一些规则: 1. 一个综合的过滤规则 - {% link adblockfilters,adblockfilters https://github.com/217heidai/adblockfilters %} + {% link adblockfilters,adblockfilters,https://github.com/217heidai/adblockfilters %} 2. 广告过滤规则订阅中心 - {% link 广告过滤规则订阅中心,广告过滤规则订阅中心 https://adguardfilters-chinese.pages.dev/ %} + {% link 广告过滤规则订阅中心,广告过滤规则订阅中心,https://adguardfilters-chinese.pages.dev/ %} 集成了许多规则,可以挑选一下加入。
image
这是我添加的规则,在这些规则下,用Adblocktester可以达到74分,基本够用 -
image
+
image
\ No newline at end of file