mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4912] frps直接接收proxy_protocol并转发到frpc #3874
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#3874
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 @zhaocr0523-eng on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4912
Describe the feature request
我先介绍一下我的环境:
内网本地设备使用1panel创建网站使用80端口;
本地又配置了一个4443端口用于反向代理到了80端口;
通过frpc将本地4443端口映射到了公网的30001端口,并在frp中配置了proxy_protocol=v2。
如果通过这样运行外部访问我的30001端口的时候本地日志能够获取到真实的IP。
现在我需要在公网服务器上frps前面再加一个nginx代理配置,将443代理到30001端口,不配置proxy_protocol的情况下,frp传回到内网的真实IP是127.0.0.1,如果我在nginx配置里面也添加了proxy_protocol的时候,业务访问就会失败,然后我nginx日志提示会多一个proxy_protocol相关的头。
目前我也不知道有什么解决的办法
Describe alternatives you've considered
No response
Affected area
@Molyleaf commented on GitHub (Aug 12, 2025):
删掉frp的proxyprotocol配置
@f0re1gnKey commented on GitHub (Aug 20, 2025):
nginx(443接收纯tcp)->nginx(发送proxy_protocol头)->frp(接收并转发纯tcp)->内网后端(接收proxy_protocol头)
@github-actions[bot] commented on GitHub (Sep 4, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.