ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

负载均衡TCP转发模式BUG

banyet1 opened this issue · comments

如下用法:
/root/gost -L tcp://:1111/target:2222 -F='mtls://localhost:3333?ip=ip1:3443,ip2:3443,ip3:3443,ip4:3443'

工作开始正常,但是经过一段时间后发现连不上了,经检查后发现是 IP1的流量耗尽,IP2-IP4没有任何流量。
也就是说,负载均衡模式下,流量只分配给了IP1。

再次启动,流量依旧没有给IP2-IP4,还是给IP1,导致最终连接始终失败。

这个问题不容易察觉,因为需要等到相当的时间,才会出现IP1流量 耗尽无法连接的问题。

再加上了&strategy=round&max_fails=1&fail_timeout=3600s后,故障依旧。