添加多个socks出口设置

This commit is contained in:
lingling 2024-09-26 10:33:01 +08:00
parent 52c6b6a1be
commit 3c7aec4d82
1 changed files with 127 additions and 0 deletions

127
sock_outVmess_in.md Normal file
View File

@ -0,0 +1,127 @@
socks多个出vmess多个入
```
{
"inbounds": [
{
"port": 9002,
"listen": "0.0.0.0",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "2ee57806-f6e4-482a-ef08-7360c04cd3e5",
"alterId": 64
}
]
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/",
"headers": {}
}
},
"tag": "vmess1",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"port": 9003,
"listen": "0.0.0.0",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "2ee57806-f6e4-482a-ef08-7360c04cd3e5",
"alterId": 64
}
]
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/",
"headers": {}
}
},
"tag": "vmess2",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "34.125.84.146",
"port": 2222,
"users": [
{
"user": "us",
"pass": "us"
}
]
}
]
},
"tag": "socks1"
},
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "34.125.252.181",
"port": 3333,
"users": [
{
"user": "936",
"pass": "936"
}
]
}
]
},
"tag": "socks2"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"vmess1"
],
"outboundTag": "socks1"
},
{
"type": "field",
"inboundTag": [
"vmess2"
],
"outboundTag": "socks2"
}
]
}
}
```