Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness
November 09, 2016 02:54PM
On Nov 9, 2016 19:20, "Maxim Dounin" <mdounin@mdounin.ru> wrote:
>
> Hello!
>
> On Thu, Nov 03, 2016 at 08:37:04PM +0100, Bjørnar Ness wrote:
>
> > Maxim: what needs change to get this merged? Followup will be mail pp
> > support, which I saw a patch for today from somone else.
>
> If this was a question to me, then the answer is:
>
> I'm not convinced this should be merged. For the use case of
> PROXY protocol bypass a more logical solution would be to avoid
> removing the PROXY protocol header at all. If one needs to bypass
> it and extract the information at the same time, something similar
> to ssl preread as recently implemented in the stream module might
> be a better solution.

The usecase for getting access to the dst variables is that we have the:

external LB -> nginx -> foo

setup as mentioned earlier, and we want to take decisions based on the
destination inside nginx, this may for example be a multi-brand setup, where
the original destination address is a part of the query key to a database.
This will allow us to just do database changes, and nginx will immediately
be able to "see" for what destination this request was for.

The separate, but related usecase is the "proxy-proxy-protocol" usecase,
where the upstream also needs the original ip/port src/destination data for
logging or decisionmaking.

For this reason, I think it is practical to store the proxy protocol header as
a whole with ptr's in the connection struct, but I am fine with changing this
to inet_addr for example, will be more loc but a little less memory use.

> If you have some ideas on how to properly support PROXY protocol
> in mail - please comment on the relevant patch.

Reason for mentioning it here, is the mail proxy-protocol patch has the
functionality mentioned here as a dependency. Both exim and dovecot
understands proxy-protocol, and I want to pass it on after the auth is done,
hence proxy-proxy-protocol.

Regards,

--
Bjørnar

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 432 September 18, 2016 08:14AM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 209 September 19, 2016 03:50PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Dmitry Volyntsev 208 September 20, 2016 07:18AM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 189 September 20, 2016 08:52AM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Dmitry Volyntsev 233 September 20, 2016 11:20AM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 208 September 20, 2016 01:20PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 177 November 03, 2016 03:38PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Maxim Dounin 155 November 09, 2016 01:22PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 180 November 09, 2016 02:54PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Maxim Dounin 157 November 09, 2016 06:54PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Bjørnar Ness 159 November 09, 2016 07:08PM

Re: [PATCH] proxy-protocol dst variables and proxy-proxy-protocol

Maxim Dounin 187 November 10, 2016 10:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready