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

这个有没有可能加入APP规则。有些APP他也走了代理。好烦。 #107

Open
wyongmin opened this issue Dec 18, 2024 · 5 comments

Comments

@wyongmin
Copy link

这个有没有可能加入APP规则。有些APP他也走了代理。好烦。

@RyanRaw
Copy link

RyanRaw commented Dec 18, 2024

我觉得黑白名单给规则好用,直接控制要翻的APP就行了.

@wyongmin
Copy link
Author

我觉得黑白名单给规则好用,直接控制要翻的APP就行了.

我不是很明白,我想问一下。怎么加入黑白名单。我该把走代理的APP包名放那里。其他不放的默认不走代理

@RyanRaw
Copy link

RyanRaw commented Dec 18, 2024

box.config文件里

proxy_mode="blacklist"

blacklist / whitelist / core

#默认blacklist模式,所有APP经过代理后分流.
#whitelist 只允许特定APP经过代理,

#黑白名单会根据user_packages_list跳过指定的APP
user_packages_list=("0:com.tencent.android" "0:com.youtube.android" "0:com.chrome.android")

APP的包名,包名格式: 0:com.tencent.android,0为root用户ID

==============================
config.yaml 文件

mode: Rule
#分流模式默认为"Rule",用whitelist 模式建议分流规则设置为"Global" 全局
#这样就不用考虑规则的事,user_packages_list里面的APP全局出墙.

enhanced-mode: fake-ip
#用黑白名单的话要把fake-ip 改成redir-host
#这是一个陈年老BUG,黑白名单fake-ip可能会导致网络连接失败,不知道现在修复了没有.

更详细配置说明见:https://wiki.metacubex.one/config/dns/

@RyanRaw
Copy link

RyanRaw commented Dec 18, 2024

默认(blacklist)配置情况下把不想走代理的APP加到user_packages_list里.
但是翻墙的APP手指就能数出来, 所以用白名单更好.

@wyongmin
Copy link
Author

好的,谢谢,我消化研究一下。

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