MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Proxy Protocol

Open JTrotta opened this issue 2 years ago • 1 comments
trafficstars

Describe the feature request

Would be very useful when using the server behind a reverse proxy. Now it's not possible to read the client endpoint

Which project is your feature request related to?

  • Client
  • ManagedClient
  • Server
  • Generic

Describe the solution you'd like

I think we should implement Proxy Protocol as stated here: Proxy protocol documentation https://www.haproxy.com/blog/use-the-proxy-protocol-to-preserve-a-clients-ip-address/ https://github.com/haproxy/haproxy/blob/master/doc/proxy-protocol.txt

Describe alternatives you've considered

No alternatives are possible

Additional context

JTrotta avatar Jan 06 '23 19:01 JTrotta

Would be very helpful to have Proxy Protocol support especially when the server is hosted behind a Reverse Proxy Server like traefik or Kubernetes.

Proxy Protocol Specs

alberk8 avatar Aug 11 '24 05:08 alberk8