[GH-ISSUE #4322] [Feature Request] 服务器可以主动断开某个客户端或者某个代理和服务器的链接吗 #3410

Closed
opened 2026-05-05 14:11:42 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @adminxy on GitHub (Jul 8, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4322

Describe the feature request

服务器可以主动断开某个客户端或者某个代理和服务器的链接吗,frps有提供相应的方法或者api么,或者服务器插件可以实现吗?或者有其他办法可以实现这个功能吗,在不影响其他链接的情况下

我要实现的是

例如:frps启动后,1001,1002,1003端口都有客户端链接,我想在不影响1001,1002 正常的链接和使用的情况下,frps主动断开1003的链接

frps有相关接口或者方法可以,让外部程序控制frps断开指定端口的链接吗

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @adminxy on GitHub (Jul 8, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4322 ### Describe the feature request 服务器可以主动断开某个客户端或者某个代理和服务器的链接吗,frps有提供相应的方法或者api么,或者服务器插件可以实现吗?或者有其他办法可以实现这个功能吗,在不影响其他链接的情况下 我要实现的是 例如:frps启动后,1001,1002,1003端口都有客户端链接,我想在不影响1001,1002 正常的链接和使用的情况下,frps主动断开1003的链接 frps有相关接口或者方法可以,让外部程序控制frps断开指定端口的链接吗 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [X] User Experience - [ ] Test and Release - [X] Developer Infrastructure - [ ] Client Plugin - [X] Server Plugin - [X] Extensions - [ ] Others
Author
Owner

@xqzr commented on GitHub (Jul 8, 2024):

https://gofrp.org/zh-cn/docs/features/common/server-plugin/#ping

<!-- gh-comment-id:2213291129 --> @xqzr commented on GitHub (Jul 8, 2024): https://gofrp.org/zh-cn/docs/features/common/server-plugin/#ping
Author
Owner

@adminxy commented on GitHub (Jul 9, 2024):

https://gofrp.org/zh-cn/docs/features/common/server-plugin/#ping

可以麻烦您详细说下吗,这个不是客户端的心跳么,我不太理解,我要实现的是,比如frps启动后,1001,1002,1003端口都有客户端链接,我想在不影响1001,1002 正常的链接和使用的情况下,服务器主动断开1003的链接

frps有相关接口或者方法可以,让外部程序控制frps断开指定端口的链接吗

<!-- gh-comment-id:2216122113 --> @adminxy commented on GitHub (Jul 9, 2024): > https://gofrp.org/zh-cn/docs/features/common/server-plugin/#ping 可以麻烦您详细说下吗,这个不是客户端的心跳么,我不太理解,我要实现的是,比如frps启动后,1001,1002,1003端口都有客户端链接,我想在不影响1001,1002 正常的链接和使用的情况下,服务器主动断开1003的链接 frps有相关接口或者方法可以,让外部程序控制frps断开指定端口的链接吗
Author
Owner

@Developer024 commented on GitHub (Jul 9, 2024):

#4326 可以看下这个issue提供的思路

<!-- gh-comment-id:2216981046 --> @Developer024 commented on GitHub (Jul 9, 2024): #4326 可以看下这个issue提供的思路
Author
Owner

@adminxy commented on GitHub (Jul 10, 2024):

#4326 可以看下这个issue提供的思路

感谢,我看下

<!-- gh-comment-id:2219622220 --> @adminxy commented on GitHub (Jul 10, 2024): > #4326 可以看下这个issue提供的思路 感谢,我看下
Author
Owner

@wuai1024 commented on GitHub (Jul 11, 2024):

#4326 可以看下这个issue提供的思路

这个跟 流量速率限制一样,都是需要修改客户端,用处感觉不大。还是需要frps服务端上支持这样的功能才比较方便。

<!-- gh-comment-id:2222306786 --> @wuai1024 commented on GitHub (Jul 11, 2024): > #4326 可以看下这个issue提供的思路 这个跟 流量速率限制一样,都是需要修改客户端,用处感觉不大。还是需要`frps`服务端上支持这样的功能才比较方便。
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#3410
No description provided.