关于客户端直接使用配置文件与系统流量的疑惑
#1325
-
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"tag": "inbound-10700", // 1
"port": 10700,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"tag": "direct-out", // 2
"protocol": "freedom"
},
{
"tag": "some-vps", // 3
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "example.com",
"port": 443,
"users": [
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"encryption": "none",
"level": 0
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "example.com"
},
"wsSettings": {
"path": "/xxxx/"
}
}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field", // 4
"ip": ["geoip:private", "geoip:cn", "223.5.5.5"],
"outboundTag": "direct-out"
},
{
"type": "field", // 5
"protocol": ["bittorrent"],
"outboundTag": "direct-out"
},
{
"type": "field", // 6
"domain": ["geosite:cn"],
"outboundTag": "direct-out"
},
{
"type": "field", // 7
"inboundTag": ["inbound-10700"],
"outboundTag": "some-vps"
}
]
}
}
上面是一个示例的客户端配置文件,当使用
希望能有大佬帮忙解惑,感谢~~ |
Beta Was this translation helpful? Give feedback.
Answered by
zxbiao
Nov 11, 2022
Replies: 2 comments
-
突然想到,假如我不配置 |
Beta Was this translation helpful? Give feedback.
0 replies
-
请去xtls.github.io看一下关于路由规则的解释。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chshouyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请去xtls.github.io看一下关于路由规则的解释。
当请求目标是内网ip和中国ip时会触发4
当协议是bt协议时,会触发5
当访问geosite:cn中涵盖的网址时会触发6
所谓的全局并不是真的全局,只有支持设置代理的软件才能使用,系统层的程序并不能走代理。
2的意思是在没有触发到4-7的规则时,默认走2
假如你不配置7,则按上面所说的默认按2处理。