Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

load balancing for wireguard outbounds

Open Gholamreza29 opened this issue 1 year ago • 2 comments

Integrity requirements

  • [X] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • [X] I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
  • [X] I searched issues and did not find any similar issues.

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

Gholamreza29 avatar Jun 30 '24 13:06 Gholamreza29

I provided the complete config and logs

Fangliding avatar Jun 30 '24 13:06 Fangliding

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.

Gholamreza29 avatar Jun 30 '24 13:06 Gholamreza29

1.8.10

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

RPRX avatar Jul 01 '24 03:07 RPRX

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

Fangliding avatar Jul 01 '24 04:07 Fangliding

same issue.

MrMalekfar avatar Mar 11 '25 12:03 MrMalekfar