Skip to content

Instantly share code, notes, and snippets.

@taesiri
Created June 7, 2023 17:54
Show Gist options
  • Save taesiri/0df71573cc4875c07e1f38205fb1aad8 to your computer and use it in GitHub Desktop.
Save taesiri/0df71573cc4875c07e1f38205fb1aad8 to your computer and use it in GitHub Desktop.
v2ray-loadbalancer
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"tag": "proxy1",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "localhost",
"port": 10808
}
]
}
},
{
"tag": "proxy2",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "localhost",
"port": 10809
}
]
}
},
{
"tag": "proxy3",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "localhost",
"port": 10810
}
]
}
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"network": "tcp,udp",
"balancerTag": "proxyBalancer"
}
],
"balancers": [
{
"tag": "proxyBalancer",
"selector": [
"proxy1",
"proxy2",
"proxy3"
],
"strategy": {
"type": "random"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment