添加多个ip出口更高级 #1

Merged
lingling merged 1 commits from lingling-patch-1 into master 2024-08-17 00:42:13 +08:00
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
}
]
}
}