[GH-ISSUE #4911] [Feature Request] Simple Proxy Protocol for UDP #3876

Closed
opened 2026-05-05 14:28:35 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @akaboydeve on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4911

Describe the feature request

like cloudflare spectrum implement this feature
https://developers.cloudflare.com/spectrum/reference/simple-proxy-protocol-header/
we can get proxy protocol in UDP and supported service can use them

struct {
    uint16_t magic;
    uint8_t  client_addr[16];
    uint8_t  proxy_addr[16];
    uint16_t client_port;
    uint16_t proxy_port;
};

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 @akaboydeve on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4911 ### Describe the feature request like cloudflare spectrum implement this feature https://developers.cloudflare.com/spectrum/reference/simple-proxy-protocol-header/ we can get proxy protocol in UDP and supported service can use them ``` struct { uint16_t magic; uint8_t client_addr[16]; uint8_t proxy_addr[16]; uint16_t client_port; uint16_t proxy_port; }; ``` ### Describe alternatives you've considered _No response_ ### Affected area - [x] Docs - [x] Installation - [x] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:28:35 -06:00
Author
Owner

@fatedier commented on GitHub (Aug 7, 2025):

Could you describe your requirements in more detail?

<!-- gh-comment-id:3162179684 --> @fatedier commented on GitHub (Aug 7, 2025): Could you describe your requirements in more detail?
Author
Owner

@akaboydeve commented on GitHub (Aug 7, 2025):

@fatedier , i am running an UDP service lets say Minecraft Bedrock server and i want to protect it with udp reverse proxy but surrent udp dosenot have proxy protocol and i cannot get users real ip in the udp service

so using UDP Simple Proxy Protocol
backend can get users real ip ,
this is like tcp proxy protocol

you can refer to this https://developers.cloudflare.com/spectrum/reference/simple-proxy-protocol-header/

<!-- gh-comment-id:3163062138 --> @akaboydeve commented on GitHub (Aug 7, 2025): @fatedier , i am running an UDP service lets say Minecraft Bedrock server and i want to protect it with udp reverse proxy but surrent udp dosenot have proxy protocol and i cannot get users real ip in the udp service so using UDP Simple Proxy Protocol backend can get users real ip , this is like tcp proxy protocol you can refer to this https://developers.cloudflare.com/spectrum/reference/simple-proxy-protocol-header/
Author
Owner

@fatedier commented on GitHub (Aug 7, 2025):

https://github.com/fatedier/frp?tab=readme-ov-file#proxy-protocol

<!-- gh-comment-id:3163080250 --> @fatedier commented on GitHub (Aug 7, 2025): https://github.com/fatedier/frp?tab=readme-ov-file#proxy-protocol
Author
Owner

@akaboydeve commented on GitHub (Aug 7, 2025):

tcp only supports transport.proxyProtocolVersion = "v2"
udp dose not have proxy protocol
that is why i am requesting this feature

<!-- gh-comment-id:3163089383 --> @akaboydeve commented on GitHub (Aug 7, 2025): tcp only supports transport.proxyProtocolVersion = "v2" udp dose not have proxy protocol that is why i am requesting this feature
Author
Owner

@github-actions[bot] commented on GitHub (Aug 22, 2025):

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

<!-- gh-comment-id:3212576391 --> @github-actions[bot] commented on GitHub (Aug 22, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#3876
No description provided.