CHIZI-0618 / box4magisk

Use sing-box, clash, v2ray, xray tunnel proxy on Android devices.
GNU General Public License v3.0
1.12k stars 113 forks source link

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

Closed a1623382 closed 1 year ago

a1623382 commented 1 year ago

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

Originally posted by @a1623382 in https://github.com/CHIZI-0618/box4magisk/issues/3#issuecomment-1528648604

CHIZI-0618 commented 1 year ago

使用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 commented 1 year ago

好的,谢谢

a1623382 commented 1 year ago

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