mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4109] frpc客户端不能通过X-Forwarded-For获取到 realip #3241
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#3241
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 @acmookey on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4109
Bug Description
外网Nginx<=>frps<=>内网frpc保持以上网络结构以及配置不变的情况下,在
0.55.1和 目前最新版本0.56.0的frpc客户端中,使用X-Forwarded-For不能获取到客户端IP。tcp报文见logs部分frpc Version
0.55.1
frps Version
0.55.1
System Architecture
linux/arm64
Configurations
Logs
使用tcpdump抓取了frpc客户端所在机器中 8092 端口TCP报文
不同版本的frp报文如下:
0.54.0frpc:0.54.00.55.1frpc:0.55.10.56.0frpc:0.56.0Steps to reproduce
1、将frps以及frpc 从
0.54.0版本升级到0.55.1版本,访问代理服务时通过tcpdump抓取报文发现X-Forwarded-For相较0.54.0版本缺少了客户端真实ip 120.230.80.702、当前最新版本
0.56.0也存在该问题Affected area