Expand description

An implementation of ProxyProtocol for HAProxy

https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt

Limitations

  • Only supports ProxyProtocol V2
  • Rejects ProxyProtocol V1
  • Only supports IPv4 & IPv6 TCP mode
  • All other valid connections, will just drop the address information and use the proxy’s one
  • Does not interpret TLVs

Interpetations not in the spec

  • An address space that doesn’t match the size expected is rejected e.g. too big for IPv4
  • Address space that’s larger than the current supported requests is rejected

Functions

  • Read a proxy protocol event and unwrap the address information associated.