mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3955] 有没有限制连接的方法 #3139
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#3139
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 @s084088 on GitHub (Jan 26, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3955
Describe the feature request
请问下,有没有限制连接的方法,比如同一个IP只能建立1个连接
Describe alternatives you've considered
No response
Affected area
@xqzr commented on GitHub (Jan 28, 2024):
frp 本身没有。服务端插件 应该可以实现
@lli-debu commented on GitHub (Feb 2, 2024):
https://github.com/fatedier/frp/blob/dev/conf/frps_full_example.toml#L129
服务器端的config有个maxPortsPerClient不知道能否满足你的需求。
@s084088 commented on GitHub (Feb 2, 2024):
请问有参考样例或者文章吗?
@s084088 commented on GitHub (Feb 2, 2024):
多谢,但是这个看起来像是限制每个frpc的最大连接数量,我希望的是单个IP只能对某个frpc指向的服务创建一个连接,按理讲应该在frpc上配置
@fangzr commented on GitHub (Feb 5, 2024):
I wrote a code for your requiement. Just try it.
23 and 24 are Frps opened ports. Shell for Crontab task is given as follows:
@github-actions[bot] commented on GitHub (Feb 27, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@s084088 commented on GitHub (Feb 27, 2024):
多谢,我找到一个其他的转发工具实现了