[undertow-dev] Proxy Protocol v2 support

Ulrich Herberg ulrich.herberg at oath.com
Mon Dec 10 21:13:41 EST 2018


Here is the Pull Request: https://github.com/undertow-io/undertow/pull/699

Let me know if you have questions or propose changes. Currently, TCP over
IPv4 and IPv6 and the LOCAL protocol is supported. UDP and Unix sockets
aren't. I tested this successfully on AWS with a Network Load Balancer and
Proxy Protocol v2 enabled. It would be good to test with Proxy protocol v1
as well, just to make sure I didn't break that. The code will automatically
determine which version is used.

On Mon, Dec 10, 2018 at 3:47 PM Ulrich Herberg <ulrich.herberg at oath.com>
wrote:

> Great! Let me clean up the code a bit and then create a PR (assuming that
> is the process?)
>
> On Mon, Dec 10, 2018 at 3:32 PM Stuart Douglas <sdouglas at redhat.com>
> wrote:
>
>> This sounds great, we would definitely be interested in supporting
>> version 2 as well.
>>
>> Stuart
>>
>> On Tue, Dec 11, 2018 at 9:26 AM Ulrich Herberg <ulrich.herberg at oath.com>
>> wrote:
>>
>>> Hi,
>>>
>>> We want to use Undertow in our company (Oath/Yahoo/Verizon) in an AWS
>>> environment. Since we plan to use AWS Network Load Balancers (NLB) using
>>> Fargate, we need the proxy protocol in order to get the source IP address
>>> of an incoming HTTP(S) packet. However, Undertow only supports Proxy
>>> Protocol Version 1. I have implemented version 2 (for IPv4 and IPv6),
>>> including unit tests and it works fine. I wonder if I can contribute the
>>> code to the open source release of Undertow.
>>>
>>> Let me know if you are interested, then I can provide the code.
>>>
>>> Best regards
>>> Ulrich
>>> _______________________________________________
>>> undertow-dev mailing list
>>> undertow-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/undertow-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20181210/159dd640/attachment.html 


More information about the undertow-dev mailing list