<div dir="ltr">I was curious if anyone had set up undertow to work with a layer-4 proxy server with undertow. I&#39;m looking at using undertow behind an AWS ELB, but it&#39;s layer-7 load balancing logic kills any shot I have of taking advantage of undertow&#39;s awesome HTTP/2 &amp; SPDY support.<div><br></div><div>ELB supports layer-4 load balancing, which would just multiplex inbound TCP connections (with an added bonus of offloading TLS), but I&#39;m concerned about losing client IP addresses. ELB actually has a way to address this with HAProxy&#39;s PROXY protocol: <a href="http://www.haproxy.org/download/1.6/doc/proxy-protocol.txt">http://www.haproxy.org/download/1.6/doc/proxy-protocol.txt</a></div><div><br></div><div>However, I haven&#39;t found a place for setting up the PROXY protocol support in undertow. Has anyone done this? Is there a way I should be going about it?</div><div><br></div><div>It feels like I&#39;d just need to wrapper the existing Listener implementation with some kind of delegate that first parsed the PROXY header, extracted the client address/port/protocol/etc., and then passed on the rest of the logic to the HTTP2 handler. Is that about right?<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Chris</div>
</div></div>