添加多个ip出口更高级

多个socker入多个ss出
This commit is contained in:
lingling 2024-08-17 00:41:40 +08:00
parent 2ff1ec47ca
commit 3af75d268d
1 changed files with 116 additions and 0 deletions

116
socks Normal file
View File

@ -0,0 +1,116 @@
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "socks2",
"port": 10807,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "118.33.96.200",
"method": "aes-256-gcm",
"ota": false,
"password": "830",
"port": 21674,
"level": 1
}
]
},
"tag": "ip1"
},
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "59.9.252.146",
"method": "aes-256-gcm",
"ota": true,
"password": "901",
"port": 40826
}
]
},
"tag": "ip2"
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "linear",
"rules": [
{
"type": "field",
"inboundTag": [
"socks"
],
"outboundTag": "ip1",
"enabled": true
},
{
"type": "field",
"inboundTag": [
"socks2"
],
"outboundTag": "ip2",
"enabled": true
}
]
}
}