[GH-ISSUE #802] 负载均衡不支持range #625

Closed
opened 2026-05-05 12:24:24 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @fyhong on GitHub (Jun 2, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/802

如果批量影射端口
[range:test]
type = tcp
local_ip = x.x.x.x
local_port = 8001,8002,8003
remote_port = 8001,8002,8003
group = 123
group_key = 123

如果用上面这样的参数运行,启动frpc会报错。
start error: group params invalid

Originally created by @fyhong on GitHub (Jun 2, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/802 如果批量影射端口 [range:test] type = tcp local_ip = x.x.x.x local_port = 8001,8002,8003 remote_port = 8001,8002,8003 group = 123 group_key = 123 如果用上面这样的参数运行,启动frpc会报错。 start error: group params invalid
Author
Owner

@fatedier commented on GitHub (Jun 2, 2018):

负载均衡要求 remote_port 相同,所以确实不支持。

<!-- gh-comment-id:394105462 --> @fatedier commented on GitHub (Jun 2, 2018): 负载均衡要求 `remote_port` 相同,所以确实不支持。
Author
Owner

@fyhong commented on GitHub (Jun 3, 2018):

能不能做成以下形式?

[range:test]
type = tcp
local_ip = x.x.x.x
local_port = 8001,8002,8003
remote_port = 8001,8002,8003
group = 123,222,333
group_key = 123,222,333

[test222]
type = tcp
local_ip = x.x.x.x
local_port = 8002
remote_port = 8002
group = 222
group_key = 222

<!-- gh-comment-id:394127368 --> @fyhong commented on GitHub (Jun 3, 2018): 能不能做成以下形式? [range:test] type = tcp local_ip = x.x.x.x local_port = 8001,8002,8003 remote_port = 8001,8002,8003 group = 123,222,333 group_key = 123,222,333 [test222] type = tcp local_ip = x.x.x.x local_port = 8002 remote_port = 8002 group = 222 group_key = 222
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#625
No description provided.