Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

box4magisk和adguard for Android 的共存问题 #20

Closed
a1623382 opened this issue Apr 29, 2023 · 3 comments
Closed

box4magisk和adguard for Android 的共存问题 #20

a1623382 opened this issue Apr 29, 2023 · 3 comments

Comments

@a1623382
Copy link

使用clash内核时,能否有办法在core模式下放过adguard的uid?
目前的core模式在adguard使用vpn模式时,用socks5 或 http 代理入站的时候会出现本地回环,在adguard应用列表中排除root和Android系统均不起作用

Originally posted by @a1623382 in #3 (comment)

@CHIZI-0618
Copy link
Owner

CHIZI-0618 commented Apr 29, 2023

使用clash内核时,能否有办法在core模式下放过adguard的uid? 目前的core模式在adguard使用vpn模式时,用socks5 或 http 代理入站的时候会出现本地回环,在adguard应用列表中排除root和Android系统均不起作用

防止回环可以考虑

  1. 使用 adguard 高级设置中的低级设置,绕过 box4 核心的 UID( 默认为 0,但建议自定义核心启动用户为 1001 或其他应该被系统 VPN 服务绕过的 UID,此时需要 setcap 赋权,可参见 https://github.com/CHIZI-0618/box4magisk#更改启动-Box-服务的用户
  2. 使用 sing-tun( Clash.Meta 目前已使用 sing-tun )的 override_android_vpn 功能,参见 https://sing-box.sagernet.org/configuration/inbound/tun/#auto_routehttps://sing-box.sagernet.org/configuration/route/#override_android_vpn

最后,我想说,使用 AdGuard 去广告,如果不过滤 HTTPS,它就是一个 DNS 级别的去广告,就像 AdGuardHome,跟 hosts 差不多,而这些,任意一个代理软件的域名规则就可以处理

@a1623382
Copy link
Author

好的,谢谢

@a1623382
Copy link
Author

emm,还是回环了,但还是谢谢解答

@a1623382 a1623382 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants