pingora icon indicating copy to clipboard operation
pingora copied to clipboard

HAProxy PROXY protocol v1/v2 support

Open thepapanoob opened this issue 1 year ago • 5 comments

What is the problem your feature solves, or the need it fulfills?

its a quite common usecase to have pingora behind a loadbalancer when running inside of cloud infrastructure. They usually implement the PROXY protocol to give information about the TCP session like the connection initiator, connection target, client & server and the proxy. It would be immensly helpful to have those informations on pingora's side.

Describe the solution you'd like

Implement the PROXY protocol as decribed in the docs from HAProxy itself. Otherwise there are some rust based implementations floating around that could speedup the process.

example 1 example 2 example 3 example 4

Describe alternatives you've considered

The other solution would be to use mmproxy but that makes it quite inflexible and brings other challenges in itself.

Thank you for this awesome project. 👍

thepapanoob avatar Mar 11 '24 14:03 thepapanoob

We need this for on premise infrastructure . Currently using HAPROXY with proxy protocol in front of k8s ingresses

kingprimex avatar Mar 12 '24 18:03 kingprimex

Voting on this too.

marcustut avatar May 15 '25 13:05 marcustut

this would be such a gamechanger for quite a few companies... they just have to get more vocal :)

thepapanoob avatar May 29 '25 13:05 thepapanoob

If anyone is interested in this, we would accept PRs adding an implementation of this.

Noah-Kennedy avatar May 30 '25 17:05 Noah-Kennedy

If somebody interested, we developed it ourselves: https://github.com/gen0sec/pingora/blob/main/pingora-core/src/protocols/proxy_protocol.rs

pigri avatar Nov 20 '25 07:11 pigri