[GH-ISSUE #5102] UDP Proxy Protocol不起作用 #4004

Closed
opened 2026-05-05 14:32:43 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @mclk623 on GitHub (Dec 22, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5102

Bug Description

我使用Geyser
https://github.com/GeyserMC/Geyser
且在配置文件和frp都开启Proxy Protocol
经过测试最新版frp 无法连接
而使用一些第三方FRP提供商的魔改客户端可以连接(如SAKURA FRP 服务端仍然使用本项目的最新版)
我确认配置文件没有问题
这是Geyser对Proxy Protocol的解析实现
https://github.com/GeyserMC/Geyser/blob/master/core/src/main/java/org/geysermc/geyser/network/netty/proxy/ProxyProtocolDecoder.java

frpc Version

v0.65.0

frps Version

v0.65.0

System Architecture

linux/amd64

Configurations

serverAddr = "xxxx"
serverPort = 8055

auth.method="token"
auth.token = "xxxx"

proxies
name = "MCBE"
type = "udp"
localIP = "127.0.0.1"
localPort = 19132
remotePort = 32603
transport.proxyProtocolVersion = "v2"

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @mclk623 on GitHub (Dec 22, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5102 ### Bug Description 我使用Geyser [https://github.com/GeyserMC/Geyser](https://github.com/GeyserMC/Geyser) 且在配置文件和frp都开启Proxy Protocol 经过测试最新版frp 无法连接 而使用一些第三方FRP提供商的魔改客户端可以连接(如SAKURA FRP 服务端仍然使用本项目的最新版) 我确认配置文件没有问题 这是Geyser对Proxy Protocol的解析实现 [https://github.com/GeyserMC/Geyser/blob/master/core/src/main/java/org/geysermc/geyser/network/netty/proxy/ProxyProtocolDecoder.java](https://github.com/GeyserMC/Geyser/blob/master/core/src/main/java/org/geysermc/geyser/network/netty/proxy/ProxyProtocolDecoder.java) ### frpc Version v0.65.0 ### frps Version v0.65.0 ### System Architecture linux/amd64 ### Configurations serverAddr = "xxxx" serverPort = 8055 auth.method="token" auth.token = "xxxx" [[proxies]] name = "MCBE" type = "udp" localIP = "127.0.0.1" localPort = 19132 remotePort = 32603 transport.proxyProtocolVersion = "v2" ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [x] Others
Author
Owner

@mclk623 commented on GitHub (Dec 27, 2025):

似乎是因为Geyser只接受首包Proxy Protocol头 而FRP是每包都有Proxy Protocol头

<!-- gh-comment-id:3693651396 --> @mclk623 commented on GitHub (Dec 27, 2025): 似乎是因为Geyser只接受首包Proxy Protocol头 而FRP是每包都有Proxy Protocol头
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#4004
No description provided.