-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[求助] 如何利用 sing-box tun mode 全局代理特性, 配合其他工具(如 Charles)实现全局抓包? #2816
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
Labels
Comments
尝试了如下规则: config.json
{
"log": {
"level": "info"
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"interface_name": "tun0",
"address": [
"172.18.0.1/30",
"fdfe:dcba:9876::1/126"
],
"mtu": 9000,
"auto_route": true,
"auto_redirect": false,
"strict_route": true,
"route_address": [
"0.0.0.0/1",
"128.0.0.0/1",
"::/1",
"8000::/1"
],
"route_exclude_address": [
"192.168.0.0/16",
"fc00::/7"
],
"endpoint_independent_nat": false,
"udp_timeout": "5m",
"stack": "gvisor"
}
],
"outbounds": [
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "http",
"tag": "http-out",
"server": "127.0.0.1",
"server_port": 8888
},
{
"type": "direct",
"tag": "direct-out"
}
],
"route": {
"auto_detect_interface": true,
"rules": [
{
"protocol": [
"dns"
],
"outbound": "dns-out"
},
{
"process_name": [
"Charles.exe"
],
"outbound": "direct-out"
},
{
"ip_version": 4,
"protocol": [
"http"
],
"outbound": "http-out"
}
],
"final": "direct-out"
}
} 现象是
|
老哥,你好 这个我看过,它需要启动两个实例,尽管如此我还是尝试了,但也是不行的,和我上面给出的示例类似。我有尝试修正过期的配置方式,并且也用旧版运行,都不行,也许哪里我的方式不对,但这个需求,不应该要用两个实例实现,我想找一个最优的方式。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
自己尝试一圈, 没有成功, 大家有类似的需求吗?
不考虑科学上网需求, 纯抓包, 目前
httpdebug
&proxifier
是可以直接实现的.但还是想用
sing-box
试试.The text was updated successfully, but these errors were encountered: