Original dst redirection through PROXY protocol

264 views
Skip to first unread message

sum...@apporbit.com

unread,
May 18, 2018, 6:02:08 AM5/18/18
to envoy-users
Hi,

I was looking at how Istio uses Envoy as sidecar proxies in its service mesh by redirecting all incoming and outgoing traffic of an app to Envoy on a particular port using iptables REDIRECT. The corresponding Envoy listener then hands off the connection to the listener for the original destination since "use_original_dst" is enabled. 
Is a similar behavior available for the "use_proxy_proto" option? From the docs, it seems that the PROXY protocol is used only to determine the remote address of the connection. But would the connection be handed off to the appropriate listener based on the original destination communicated via the PROXY protocol as in the case of SO_ORIGINAL_DST above?

Thanks,
Sumeet

Matt Klein

unread,
May 18, 2018, 1:52:46 PM5/18/18
to sum...@apporbit.com, envoy-users, Piotr Sikora
+Piotr

This is not possible today, but it should become possible once full filter chain matching semantics are implemented. (Since the proxy proto listener filter would just change the connection addresses prior to matching).

Thanks,
Matt

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/e0008d71-a282-48a3-9435-8a1b941a9342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

sum...@apporbit.com

unread,
May 24, 2018, 12:27:19 AM5/24/18
to envoy-users
Thanks for the confirmation.

Is full filter chain matching expected in an upcoming release? 


- Sumeet


On Friday, May 18, 2018 at 11:22:46 PM UTC+5:30, Matt Klein wrote:
+Piotr

This is not possible today, but it should become possible once full filter chain matching semantics are implemented. (Since the proxy proto listener filter would just change the connection addresses prior to matching).

Thanks,
Matt
On Fri, May 18, 2018 at 3:02 AM, <sum...@apporbit.com> wrote:
Hi,

I was looking at how Istio uses Envoy as sidecar proxies in its service mesh by redirecting all incoming and outgoing traffic of an app to Envoy on a particular port using iptables REDIRECT. The corresponding Envoy listener then hands off the connection to the listener for the original destination since "use_original_dst" is enabled. 
Is a similar behavior available for the "use_proxy_proto" option? From the docs, it seems that the PROXY protocol is used only to determine the remote address of the connection. But would the connection be handed off to the appropriate listener based on the original destination communicated via the PROXY protocol as in the case of SO_ORIGINAL_DST above?

Thanks,
Sumeet

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users...@googlegroups.com.

To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/e0008d71-a282-48a3-9435-8a1b941a9342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Klein

unread,
May 24, 2018, 1:09:30 PM5/24/18
to Sumeet Kembhavi, envoy-users
There is a lot of work being done on this right now, but I'm not sure if Piotr is planning on also working on destination matching (I think he is but not sure). Assuming he is, probably a few weeks it will be done.

To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.

To post to this group, send email to envoy...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages