mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3800] [Feature Request] 能否配置连续多端口? #3023
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @winterant on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3800
Describe the feature request
能否为配置一个连续的端口区间?或者端口序列?例如:
Describe alternatives you've considered
No response
Affected area
@xqzr commented on GitHub (Nov 27, 2023):
0.52.0 及以上 INI 配置格式才支持
d5b41f1e14/conf/legacy/frpc_legacy_full.ini (L194-L202)@superzjg commented on GitHub (Nov 27, 2023):
旧的 ini 格式是支持的。并且作者大佬说在 v0 版会保留 ini 格式支持。
参看:https://github.com/fatedier/frp/issues/3711
@firemakergk commented on GitHub (Dec 22, 2023):
在此请求在新版本配置文件中支持对range的支持,这对于webrtc这类流服务的代理至关重要,它的协商接口不确定且是一个范围。
@scientificworld commented on GitHub (Dec 26, 2023):
同上。可否做成类似于这样的配置?不知道 TOML 有没有单独的 range type 之类的东西。
@superzjg commented on GitHub (Dec 26, 2023):
看上去应该不是这种表达方式,参考 frps 的:
allowPorts = [ { start = 2000, end = 3000 }, { single = 3001 }, { single = 3003 }, { start = 4000, end = 50000 } ]暂时toml不支持肯定是有原因的,目前使用改用ini格式就可以了
@github-actions[bot] commented on GitHub (Jan 25, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@slipperstree commented on GitHub (Jun 26, 2024):
在toml下定义穿透端口的范围,我使用暴力方式一个一个的映射,写几行python小脚本即可批量生成配置,比如
下面这段可以为我生成ftp被动模式需要的100个端口映射。
跑在我的树莓派4b上,目前没发现性能问题。