mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4761] [Feature Request] TCP转发时能附带真实IP #3760
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3760
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raphaelcheung on GitHub (Apr 20, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4761
Describe the feature request
希望用 FRP 转发 TCP 长连接(非HTTP)时能附带上请求方的真实IP。
类似 NGINX 中 stream 下的的
proxy_protocol on;Describe alternatives you've considered
No response
Affected area
@tonyzhou777 commented on GitHub (Apr 23, 2025):
同求,很多内网服务无法走HTTP,但是需要真实IP来判断。
@xqzr commented on GitHub (Apr 25, 2025):
https://gofrp.org/zh-cn/docs/features/common/realip/#proxy-protocol
@tonyzhou777 commented on GitHub (Apr 26, 2025):
这个需要服务接收端支持才能用,现在需要一个模拟真实IP访问的功能,这样即使服务端不支持proxy-protocol,也能获得用户真实IP。
@xqzr commented on GitHub (Apr 26, 2025):
最新版的 TUN 功能,也许可以
@tonyzhou777 commented on GitHub (Apr 26, 2025):
好的,谢谢,我试试
@raphaelcheung commented on GitHub (Apr 27, 2025):
这个只支持https/http协议,希望非http的所有TCP连接都能支持
@raphaelcheung commented on GitHub (Apr 27, 2025):
能用吗,我没找到这个功能用法
@xqzr commented on GitHub (Apr 27, 2025):
可以支持,但需要本地 TCP 应用支持
@raphaelcheung commented on GitHub (Apr 28, 2025):
我本地应用是支持的,用nginx转发测过proxy_protocol,能正确解析到真实IP。
请问FRPC是这样配置吗:
proxies
name = "xxx"
type = "tcp"
localIP = "192.168.0.2"
localPort = xxxxx
remotePort = xxxxx
transport.proxyProtocolVersion = "v2"
@raphaelcheung commented on GitHub (May 4, 2025):
pls ~
@raphaelcheung commented on GitHub (May 4, 2025):
误操作把本帖关闭了,怎么重开啊