Welcome! Log In Create A New Profile

Advanced

Possibility to modify PROXY protocol header

Posted by [email protected] 
Hi,

is there any possibilty to modify the client ip in the PROXY Protocol
header before it is send to a backend server?

My use case is a local integration/functional testing suite (multiple local
docker containers for testing the whole stack - haproxy, cache layer,
webserver, etc.).

I would like to test functionalities which are dependent of/need specific
IP ranges or IP addresses.

----------------------------------------------------------------
Best Regards / Mit freundlichen Grüßen

Bjoern
James Brown
Re: Possibility to modify PROXY protocol header
July 31, 2018 06:10PM
I think if you use the `http-request set-src` directive it'll populate the
PROXY headers in addition to the internal logging &c.

On Fri, Jul 27, 2018 at 7:05 AM bjunity@gmail.com <[email protected]> wrote:

> Hi,
>
> is there any possibilty to modify the client ip in the PROXY Protocol
> header before it is send to a backend server?
>
> My use case is a local integration/functional testing suite (multiple
> local docker containers for testing the whole stack - haproxy, cache layer,
> webserver, etc.).
>
> I would like to test functionalities which are dependent of/need specific
> IP ranges or IP addresses.
>
> ----------------------------------------------------------------
> Best Regards / Mit freundlichen Grüßen
>
> Bjoern
>


--
James Brown
Engineer
2018-07-31 17:56 GMT+02:00 James Brown <[email protected]>:
> I think if you use the `http-request set-src` directive it'll populate the
> PROXY headers in addition to the internal logging &c.
>
> On Fri, Jul 27, 2018 at 7:05 AM bjunity@gmail.com <[email protected]> wrote:
>>
>> Hi,
>>
>> is there any possibilty to modify the client ip in the PROXY Protocol
>> header before it is send to a backend server?
>>
>> My use case is a local integration/functional testing suite (multiple
>> local docker containers for testing the whole stack - haproxy, cache layer,
>> webserver, etc.).
>>
>> I would like to test functionalities which are dependent of/need specific
>> IP ranges or IP addresses.
>>
>> ----------------------------------------------------------------
>> Best Regards / Mit freundlichen Grüßen
>>
>> Bjoern
>
>
>
> --
> James Brown
> Engineer

Hi James,


thanks, that worked like a charm. Didn't know that "set-src" works in
combination with PROXY protocol.


----------------------------------------------------------------
Best Regards / Mit freundlichen Grüßen

Bjoern
Sorry, only registered users may post in this forum.

Click here to login