[GH-ISSUE #1592] Socks5 plugin support access ip & port filter #1263

Closed
opened 2026-05-05 12:48:22 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @rainbend on GitHub (Jan 3, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1592

@fatedier 你好, 我想为socks5 plugin增加ip/port过滤功能。

想法如下:

  1. 增加plugin_target_hosts & plugin_target_ports参数
  2. #NewSocks5Plugin()时增加filterChan根据配置参数过滤访问链接

存在问题:

  1. 过滤需要在armon/go-socks5#ServeConn 解码后进行, 但是armon/go-socks5已经不接收PR

是否可以一起讨论一下, 期待回复!

Originally created by @rainbend on GitHub (Jan 3, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1592 @fatedier 你好, 我想为`socks5 plugin`增加`ip/port`过滤功能。 想法如下: 1. 增加`plugin_target_hosts & plugin_target_ports`参数 1. 在[#NewSocks5Plugin()](https://github.com/fatedier/frp/blob/30c246c48889140402943f5aebb04c89b031c708/models/plugin/client/socks5.go#L41-L55)时增加`filterChan`根据配置参数过滤访问链接 存在问题: 1. 过滤需要在[armon/go-socks5#ServeConn](https://github.com/armon/go-socks5/blob/e75332964ef517daa070d7c38a9466a0d687e0a5/socks5.go#L156-L159) 解码后进行, 但是`armon/go-socks5`已经不接收PR 是否可以一起讨论一下, 期待回复!
Author
Owner

@fatedier commented on GitHub (Jan 5, 2020):

复杂的需求场景还是建议使用自己实现的 socks5 的应用来做,frp 内置的只作为一个简单的实现,方便大多数场景下的使用,否则把太多这些插件的细节功能都放在这个项目里维护,会非常臃肿,也缺乏精力去持续跟进。

<!-- gh-comment-id:570843214 --> @fatedier commented on GitHub (Jan 5, 2020): 复杂的需求场景还是建议使用自己实现的 socks5 的应用来做,frp 内置的只作为一个简单的实现,方便大多数场景下的使用,否则把太多这些插件的细节功能都放在这个项目里维护,会非常臃肿,也缺乏精力去持续跟进。
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#1263
No description provided.