Enhancement: Support for Proxy Protocol v1 and v2 #94

Closed
opened 2025-12-29 09:22:58 +01:00 by adam · 2 comments
Owner

Originally created by @baltazartroisville on GitHub (Aug 2, 2025).

Hi there!

First, I want to thank you for all the effort and work you've put into godoxy. It's been a really helpful and easy-to-use reverse proxy, especially with the Docker integration!

I like the idea of having support for the Proxy Protocol (v1 and/or v2) in godoxy, which would help in scenarios where preserving the original client's IP address is important when running behind another proxy or load balancer or for raw TCP proxying.

This feature would make godoxy even more versatile and attractive for a wider range of use cases and prevent the reliance on HTTP proxying for having HTTP headers.

Helpful information:

Best regards! ❤️

Originally created by @baltazartroisville on GitHub (Aug 2, 2025). Hi there! First, I want to thank you for all the effort and work you've put into godoxy. It's been a really helpful and easy-to-use reverse proxy, especially with the Docker integration! I like the idea of having support for the Proxy Protocol (v1 and/or v2) in godoxy, which would help in scenarios where preserving the original client's IP address is important when running behind another proxy or load balancer or for raw TCP proxying. This feature would make godoxy even more versatile and attractive for a wider range of use cases and prevent the reliance on HTTP proxying for having HTTP headers. **Helpful information:** - [Actively developed Go Library of Proxy Protocol 1 and 2](https://github.com/pires/go-proxyproto) - [go.dev package page of the same Go Library](https://pkg.go.dev/github.com/pires/go-proxyproto) - [Proxy Protocol specification (from the inventors at HAProxy)](https://www.haproxy.org/download/3.2/doc/proxy-protocol.txt) - [HAProxy: Understanding PROXY Protocol](https://www.haproxy.com/blog/haproxy/proxy-protocol/) Best regards! ❤️
adam added the enhancement label 2025-12-29 09:22:58 +01:00
adam closed this issue 2025-12-29 09:22:58 +01:00
Author
Owner

@MrOwen commented on GitHub (Aug 27, 2025):

Seconding this one. There are projects like frp (https://gofrp.org/en/docs/features/common/realip/) and rathole (sort of.. there's a fork of rathole with proxy protocol support added here: c013a20e52 (diff-3d0f0f96e2b1cfdd5e6796aff8141648114a917d7ff1de53a0d8f88248418088)) which could make use of this feature.

@MrOwen commented on GitHub (Aug 27, 2025): Seconding this one. There are projects like frp (https://gofrp.org/en/docs/features/common/realip/) and rathole (sort of.. there's a fork of rathole with proxy protocol support added here: https://github.com/shshekhar93/rathole/commit/c013a20e52f092fd87c47f54015fa282567ef6ad#diff-3d0f0f96e2b1cfdd5e6796aff8141648114a917d7ff1de53a0d8f88248418088) which could make use of this feature.
Author
Owner

@yusing commented on GitHub (Sep 19, 2025):

Implemented in v0.18.5

@yusing commented on GitHub (Sep 19, 2025): Implemented in v0.18.5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#94