[GH-ISSUE #4783] [Feature Request] 希望支持 转发TCP流量时附带真实IP #3776

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

Originally created by @raphaelcheung on GitHub (May 4, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4783

Describe the feature request

希望用 FRP 转发 TCP 长连接(非HTTP)时能附带上请求方的真实IP。

类似 NGINX 中 stream 下的的proxy_protocol on;

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 @raphaelcheung on GitHub (May 4, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4783 ### Describe the feature request 希望用 FRP 转发 TCP 长连接(非HTTP)时能附带上请求方的真实IP。 类似 NGINX 中 stream 下的的proxy_protocol on; ### 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 14:25:10 -06:00
Author
Owner

@gesangtome commented on GitHub (May 7, 2025):

@raphaelcheung 你好,你可能需要这个。请参阅go-mmproxy,然后你就可以在本地解析由frp服务器传入的proxy_protocol头中的真实访问者ip地址,并由go-mmproxy转发到你的后端服务。祝好!

<!-- gh-comment-id:2856896831 --> @gesangtome commented on GitHub (May 7, 2025): @raphaelcheung 你好,你可能需要这个。请参阅[go-mmproxy](https://github.com/kzemek/go-mmproxy),然后你就可以在本地解析由frp服务器传入的proxy_protocol头中的真实访问者ip地址,并由go-mmproxy转发到你的后端服务。祝好!
Author
Owner

@raphaelcheung commented on GitHub (May 9, 2025):

@raphaelcheung 你好,你可能需要这个。请参阅go-mmproxy,然后你就可以在本地解析由frp服务器传入的proxy_protocol头中的真实访问者ip地址,并由go-mmproxy转发到你的后端服务。祝好!

感谢回答!我本地的服务是支持proxy_protocol的,但frp转发的没有带上proxy_protocol头

<!-- gh-comment-id:2866057192 --> @raphaelcheung commented on GitHub (May 9, 2025): > [@raphaelcheung](https://github.com/raphaelcheung) 你好,你可能需要这个。请参阅[go-mmproxy](https://github.com/kzemek/go-mmproxy),然后你就可以在本地解析由frp服务器传入的proxy_protocol头中的真实访问者ip地址,并由go-mmproxy转发到你的后端服务。祝好! 感谢回答!我本地的服务是支持proxy_protocol的,但frp转发的没有带上proxy_protocol头
Author
Owner

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

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

<!-- gh-comment-id:2906113723 --> @github-actions[bot] commented on GitHub (May 24, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Author
Owner

@dengxiwang commented on GitHub (Jun 27, 2025):

有好的解决办法吗

<!-- gh-comment-id:3013263428 --> @dengxiwang commented on GitHub (Jun 27, 2025): 有好的解决办法吗
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#3776
No description provided.