fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
82.22k stars 12.91k forks source link

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

Open ssqf opened 2 years ago

ssqf commented 2 years ago

Describe the feature request

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

  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

fatedier commented 2 years ago

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

ssqf commented 2 years ago

好的,期待中

mrshelly commented 2 years ago

http 可以用 nginx 做中转实现。

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