XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
24.61k stars 3.84k forks source link

load balancing for wireguard outbounds #3488

Closed Gholamreza29 closed 3 months ago

Gholamreza29 commented 3 months ago

Integrity requirements

Version

1.8.10

Description

I have three WireGuard configurations that I have used as outbounds. I have tried using the LeastPing load balancer, but it seems my traffic does not go through WireGuard and goes directly instead.

Reproduction Method

"balancers": [ { "tag": "windsbal", "selector": [ "man1", "down2", "disp1" ], "strategy": { "type": "leastPing" } } ] }, "stats": {}, "observatory": { "subjectSelector": [ "windsbal" ], "probeURL": "http://www.google.com/gen_204", "probeInterval": "10m", "enableConcurrency": true } }

Client config


"balancers": [
      {
        "tag": "windsbal",
        "selector": [
          "manchester",
          "custard",
          "biscutis"
        ],
        "strategy": {
          "type": "leastPing"
        }
      }
    ]
  },
  "stats": {},
  "observatory": {
    "subjectSelector": [
      "windsbal"
    ],
    "probeURL": "http://www.google.com/gen_204",
    "probeInterval": "10m",
    "enableConcurrency": true
  }
}

Server config


"balancers": [
      {
        "tag": "windsbal",
        "selector": [
          "manchester",
          "custard",
          "biscutis"
        ],
        "strategy": {
          "type": "leastPing"
        }
      }
    ]
  },
  "stats": {},
  "observatory": {
    "subjectSelector": [
      "windsbal"
    ],
    "probeURL": "http://www.google.com/gen_204",
    "probeInterval": "10m",
    "enableConcurrency": true
  }
}

Client log


nothing

Server log


nothing
Fangliding commented 3 months ago

I provided the complete config and logs

Gholamreza29 commented 3 months ago

There is nothing abnormal in my logs and configs. The balancer works correctly when I'm using Round-robin but, when I'm changing it to Leastping it is not working.

RPRX commented 3 months ago

1.8.10

看到就头痛,@Fangliding issue 模板加一个必须针对最新版,但可以测试旧版有无问题

Fangliding commented 3 months ago

那我把version去掉加一个打钩的好了