[GH-ISSUE #2890] [Feature Request] http请求时请求头添加一个proxy_name,然后通过proxy_name找到对应的frpc客户端代理 #2305

Closed
opened 2026-05-05 13:29:14 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ssqf on GitHub (Apr 12, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2890

Describe the feature request

想通frpc客户端主机做http代理,发送实际请求

  • 使用tcp端口,大量设备,需要按端口绑定访问,不好端口和设备对应,
  • 子域名无法实现
  1. 用户http请求frps,在http请求头中加一个proxy_name,proxy_name为设备ID,方便直接找到对应设备
  2. 通过请求头中的proxy_name,找到对应的frpc客户端连接,删除proxy_name,
  3. 将用户的http请求转发到frpc客户端
  4. frpc再将http请求转发给后端的http代理
  5. http代理发送用户请求

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 @ssqf on GitHub (Apr 12, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2890 ### Describe the feature request 想通frpc客户端主机做http代理,发送实际请求 * 使用tcp端口,大量设备,需要按端口绑定访问,不好端口和设备对应, * 子域名无法实现 1. 用户http请求frps,在http请求头中加一个proxy_name,proxy_name为设备ID,方便直接找到对应设备 2. 通过请求头中的proxy_name,找到对应的frpc客户端连接,删除proxy_name, 3. 将用户的http请求转发到frpc客户端 4. frpc再将http请求转发给后端的http代理 5. http代理发送用户请求 ### 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
gitea-mirror 2026-05-05 13:29:14 -06:00
Author
Owner

@fatedier commented on GitHub (Apr 12, 2022):

目前不支持,以后 v2 版本的架构中可以考虑。

<!-- gh-comment-id:1095863121 --> @fatedier commented on GitHub (Apr 12, 2022): 目前不支持,以后 v2 版本的架构中可以考虑。
Author
Owner

@ssqf commented on GitHub (Apr 12, 2022):

好的,期待中

<!-- gh-comment-id:1095894187 --> @ssqf commented on GitHub (Apr 12, 2022): 好的,期待中
Author
Owner

@mrshelly commented on GitHub (May 21, 2022):

http 可以用 nginx 做中转实现。

应该在tcp 上加这个参数。 就通用了。

<!-- gh-comment-id:1133586102 --> @mrshelly commented on GitHub (May 21, 2022): http 可以用 nginx 做中转实现。 应该在tcp 上加这个参数。 就通用了。
Author
Owner

@github-actions[bot] commented on GitHub (May 22, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2899586263 --> @github-actions[bot] commented on GitHub (May 22, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#2305
No description provided.