Skip to content

Commit e5b567f

Browse files
committed
Blcok ipv6 requests, switch README to English
1 parent 7e73334 commit e5b567f

File tree

8 files changed

+59
-32
lines changed

8 files changed

+59
-32
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
# AdGuardHome for Magisk
2-
一个通过重定向并过滤 DNS 请求来屏蔽广告的 Magisk/KernelSU 模块
2+
English | [简体中文](README_zh.md)
3+
4+
A Magisk/KernelSU module that blocks ads by redirecting and filtering DNS requests
35

46
![Static Badge](https://img.shields.io/badge/arm--64-support-blue)
7+
![Static Badge](https://img.shields.io/badge/arm--v7-support-blue)
58
![GitHub all releases](https://img.shields.io/github/downloads/twoone-3/AdguardHome/total)
69

7-
加入我们的 [Telegram](https://t.me/adguardhome_for_magisk_release) 频道获取最新信息以及FAQ
10+
Join our [Telegram](https://t.me/adguardhome_for_magisk_release) channel for the latest information and FAQ
811

9-
# 用法
10-
- 使用前需在设置里关闭 `私人/专用dns`,在 Magisk/KernelSU 刷入后重启即可使用,AdGuardHome 后台管理地址为 http://127.0.0.1:3000,用户名/密码root
11-
- 注意!本模块与可能与代理类模块冲突,同时使用两种模块会导致潜在问题!
12+
# Usage
13+
- Before using, turn off `Private DNS` in the settings, flash into Magisk/KernelSU and restart to use. The AdGuardHome background management address is http://127.0.0.1:3000, username/password root
14+
- Note! This module may conflict with proxy modules, using both modules at the same time may cause potential problems!
1215

13-
# 特性
14-
- DNS 上游为腾讯阿里 DoT,备用 DNS 为 Google 和 CloudFlare
15-
- 仅内置[秋风广告规则](https://github.com/TG-Twilight/AWAvenue-Ads-Rule),省电,少误杀
16-
- 可配合第三方软件进行启动停止,通过执行位于 /data/adb/modules/AdGuardHome/bin/ 的 apply_iptables.sh 和 flush_iptables.sh,这里给出Anywhere的快捷导入链接(复制到剪贴板即可导入)
17-
- 在 KernelSU 里可以通过打开按钮来打开管理页面
16+
# Features
17+
- The DNS upstream is Tencent Ali DoT, the backup DNS is Google and CloudFlare
18+
- Only built-in [AWAvenue-Ads-Rule](https://github.com/TG-Twilight/AWAvenue-Ads-Rule), power-saving, less false positives
19+
- Can be started and stopped with third-party software by executing apply_iptables.sh and flush_iptables.sh located in /data/adb/modules/AdGuardHome/bin/, here is the quick import link for Anywhere (copy to clipboard to import)
1820

19-
Anywhere启动链接
21+
Anywhere start link
2022
```
2123
anywhere://share/J2VP8X5qVhbI2sRvhZ6JXLZdx7Y6JLmsCgw9Wd7k7qce3ERvOaJlWHt61Y8oalvceraVdBkTbIymWLyhgxRQLeICFi3/GKuZYkqPJ3A6WQ8+xW4nTvmC9SwzER2X/9PFEtjgZsphvy2R8suN6BOE3Pm10gwmsdoLwCuLxs0uIA2VmP25Ur1GHTCogIgJoWBpJpz0QT1/LvBtNXXdFwkilQNF8VvcKAO3cgKns+I3hUk0T2rbsjVfj4UwxgYxi5Yg9yiV53hOzIzVZ9uZki3uy6TNTnThFXM+Hg88m8dron/cJM9Qg5Y979j0YTVrA9XakpnXKlF7UvaDM85FSjXZpkXCzbn00lWcvQ==
2224
```
23-
Anywhere停止链接
25+
Anywhere stop link
2426
```
2527
anywhere://share/J2VP8X5qVhbI2sRvhZ2hdp4467QzpcHDlkAQil7Mg6oDOLdzYgAJO+9fKKenP2M28XWZ71jveGDq1E/sCmMAhBqd5N04LZkJp0EYtrFp7Vw9xPsYBhlmwlaKWljr9iIAMGWOulpW7Zzhm/tpfaDIKjweOGfIsONgcoWq89Idmb215WTrhfju+OeoNqDicBqrOLI5iyI8fTCQifRm7m7hq53WMgN/BoYbWnyE34AeVO2hq5btVggCTBGunrftXnlweSY4ngaN8CmhTlDWQeyjMJRZMooTPHwcQm3fisvBY6McMaVV5lSLHBe+MNaK1EwnzQ0RjNJh/3eoVGQJgUUyN8swAmtakrwaNA==
2628
```
2729

28-
# 鸣谢
30+
# Acknowledgements
2931
- [AdguardHome_magisk](https://github.com/410154425/AdGuardHome_magisk)
3032
- [akashaProxy](https://github.com/ModuleList/akashaProxy)
3133
- [box_for_magisk](https://github.com/taamarin/box_for_magisk)

README_zh.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# AdGuardHome for Magisk
2+
[English](README.md) | 简体中文
3+
4+
一个通过重定向并过滤 DNS 请求来屏蔽广告的 Magisk/KernelSU 模块
5+
6+
![Static Badge](https://img.shields.io/badge/arm--64-support-blue)
7+
![Static Badge](https://img.shields.io/badge/arm--v7-support-blue)
8+
![GitHub all releases](https://img.shields.io/github/downloads/twoone-3/AdguardHome/total)
9+
10+
加入我们的 [Telegram](https://t.me/adguardhome_for_magisk_release) 频道获取最新信息以及FAQ
11+
12+
# 用法
13+
- 使用前需在设置里关闭 `私人/专用dns`,在 Magisk/KernelSU 刷入后重启即可使用,AdGuardHome 后台管理地址为 http://127.0.0.1:3000,用户名/密码root
14+
- 注意!本模块与可能与代理类模块冲突,同时使用两种模块会导致潜在问题!
15+
16+
# 特性
17+
- DNS 上游为腾讯阿里 DoT,备用 DNS 为 Google 和 CloudFlare
18+
- 仅内置[秋风广告规则](https://github.com/TG-Twilight/AWAvenue-Ads-Rule),省电,少误杀
19+
- 可配合第三方软件进行启动停止,通过执行位于 /data/adb/modules/AdGuardHome/bin/ 的 apply_iptables.sh 和 flush_iptables.sh,这里给出Anywhere的快捷导入链接(复制到剪贴板即可导入)
20+
21+
Anywhere启动链接
22+
```
23+
anywhere://share/J2VP8X5qVhbI2sRvhZ6JXLZdx7Y6JLmsCgw9Wd7k7qce3ERvOaJlWHt61Y8oalvceraVdBkTbIymWLyhgxRQLeICFi3/GKuZYkqPJ3A6WQ8+xW4nTvmC9SwzER2X/9PFEtjgZsphvy2R8suN6BOE3Pm10gwmsdoLwCuLxs0uIA2VmP25Ur1GHTCogIgJoWBpJpz0QT1/LvBtNXXdFwkilQNF8VvcKAO3cgKns+I3hUk0T2rbsjVfj4UwxgYxi5Yg9yiV53hOzIzVZ9uZki3uy6TNTnThFXM+Hg88m8dron/cJM9Qg5Y979j0YTVrA9XakpnXKlF7UvaDM85FSjXZpkXCzbn00lWcvQ==
24+
```
25+
Anywhere停止链接
26+
```
27+
anywhere://share/J2VP8X5qVhbI2sRvhZ2hdp4467QzpcHDlkAQil7Mg6oDOLdzYgAJO+9fKKenP2M28XWZ71jveGDq1E/sCmMAhBqd5N04LZkJp0EYtrFp7Vw9xPsYBhlmwlaKWljr9iIAMGWOulpW7Zzhm/tpfaDIKjweOGfIsONgcoWq89Idmb215WTrhfju+OeoNqDicBqrOLI5iyI8fTCQifRm7m7hq53WMgN/BoYbWnyE34AeVO2hq5btVggCTBGunrftXnlweSY4ngaN8CmhTlDWQeyjMJRZMooTPHwcQm3fisvBY6McMaVV5lSLHBe+MNaK1EwnzQ0RjNJh/3eoVGQJgUUyN8swAmtakrwaNA==
28+
```
29+
30+
# 鸣谢
31+
- [AdguardHome_magisk](https://github.com/410154425/AdGuardHome_magisk)
32+
- [akashaProxy](https://github.com/ModuleList/akashaProxy)
33+
- [box_for_magisk](https://github.com/taamarin/box_for_magisk)

apply_iptables.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ iptables -t nat -A ADGUARD -m owner --uid-owner root --gid-owner net_raw -j RETU
55
iptables -t nat -A ADGUARD -p udp --dport 53 -j REDIRECT --to-ports 5591
66
iptables -t nat -A ADGUARD -p tcp --dport 53 -j REDIRECT --to-ports 5591
77
# apply iptables rules
8-
iptables -t nat -A OUTPUT -j ADGUARD
8+
iptables -t nat -A OUTPUT -j ADGUARD
9+
# block ipv6 DNS requests
10+
ip6tables -t filter -A OUTPUT -p tcp --dport 53 -j REJECT
11+
ip6tables -t filter -A OUTPUT -p udp --dport 53 -j REJECT

bin/AdGuardHome.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dns:
6262
bootstrap_prefer_ipv6: false
6363
upstream_timeout: 10s
6464
private_networks: []
65-
use_private_ptr_resolvers: true
65+
use_private_ptr_resolvers: false
6666
local_ptr_upstreams: []
6767
use_dns64: false
6868
dns64_prefixes: []

flush_iptables.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
iptables -t nat -D OUTPUT -j ADGUARD
22
iptables -t nat -F ADGUARD
3-
iptables -t nat -X ADGUARD
3+
iptables -t nat -X ADGUARD
4+
ip6tables -t filter -D OUTPUT -p tcp --dport 53 -j REJECT
5+
ip6tables -t filter -D OUTPUT -p udp --dport 53 -j REJECT

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=AdGuardHome
22
name=AdGuardHome for Magisk
3-
version=20240721
4-
versionCode=13
3+
version=20240725
4+
versionCode=14
55
author=twoone3
66
description=Filter ads at the DNS level

service.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MODDIR="${0%/*}"
22
ADG_DIR="$MODDIR/bin"
33

4+
sleep 10
45
SSL_CERT_DIR="/system/etc/security/cacerts/" setuidgid root:net_raw "$ADG_DIR/AdGuardHome" >>"$ADG_DIR/AdGuardHome.log" 2>&1 &
56

67
"$MODDIR/apply_iptables.sh"

webroot/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)