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安卓版共存? #3

Closed
choein opened this issue Nov 15, 2022 · 2 comments
Closed

请问开启box4magisk后如何与Adguard安卓版共存? #3

choein opened this issue Nov 15, 2022 · 2 comments

Comments

@choein
Copy link

choein commented Nov 15, 2022

使用box4magisk默认配置以clash进行连接时,无论是使用blacklist、whitelist还是core,Adguard都无法正常使用。因为启动了box4magisk后,box4magisk与Adguard存在冲突,Adguard既无法使用“VPN模式”(提示设备不支持VPN)也无法使用“本地http代理模式”(流量实际并不经过Adguard)。
请问box4magisk能否仅监听某个端口(如:7891),而不全局代理手机所有流量、不与VPN产生冲突,设备内的app自行按需选择代理?

@CHIZI-0618
Copy link
Owner

proxy_mode 的值为 core 时即只启动内核,你可以通过各配置文件开启 socks5 或 http 代理入站。
为什么 AdGuard 会提示此设备不支持 VPN 我也不知道。
Box 各内核目前指定 0:3005 ( root:net_admin )用户用户组启动,因此有权限启动 Tun 或接收透明代理流量,据我所知 AdGuard 高级设置中可指定绕过不经过 VPN 的用户,或许可以尝试绕过用户 0。
后续我可能会采用其他赋权方式以支持指定用户用户组启动内核。

sing-box 内核针对 Tun 入站 有一个 override_android_vpn 参数或许可以帮到你,相关文档地址为
https://sing-box.sagernet.org/configuration/inbound/tun/#auto_route
https://sing-box.sagernet.org/configuration/route/#override_android_vpn

@CHIZI-0618 CHIZI-0618 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2022
@a1623382
Copy link

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

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

3 participants