Conversation
9122630 to
fd1092e
Compare
|
test-me-please |
fd1092e to
d27771b
Compare
|
test-me-please |
d27771b to
9843f41
Compare
|
test-me-please |
joestringer
left a comment
There was a problem hiding this comment.
I took a quick look over the changes, and I'm a bit surprised by some of them, questions below.
There was a problem hiding this comment.
The comment says "ingress proxy" but the code below is setting the mark for egress proxy too..?[0]
There was a problem hiding this comment.
reply direction traffic from an LXC, if going to a local proxy, is for the ingress proxy. Original direction traffic from an LXC, if going to a local proxy, if for the egress proxy :-)
8dbb373 to
c9fd511
Compare
|
test-me-please |
|
Works like a charm in my cluster with egress + ingress HTTP policy. |
|
test-me-please |
|
Using the original source address for the dns proxy may be a stretch. Basic problem that two consecutive requests from the same source address:port will cause two client sockets to be opened, now with the same address:port, and the second one failed with A proper solution would use one socket for each source address:port, and then multiplex multiple queries on top of it. |
|
It may be better to split the DNS proxy changes to a separate follow-on PR, as it seems to be needing more work. |
Add a 'proxy_redirect' bit to the conntrack entry so that the reply direction packets on proxy upstream connections using the original source address and port in addition to the original destination address and port can be redirected back to the local stack for local delivery. iptables rules are added to mark packets matching a transparent socket as going to the host proxy. Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
cc5459c to
ba81061
Compare
|
Split out the DNS proxy changes to a follow-on PR so that the egress Envoy L7 support can be shipped. |
|
test-me-please |
Allow Envoy egress proxies to use the original source address and port in the upstream connections. This allows destination node to map the source IP to the policy ID. Egress Kafka is not supported yet, as Kafka only works for ingress at the moment. DNS proxy (always egress) support for original source address is left for a follow-up PR.
This change is