Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] portmap support masquerade-all option #771

Closed
BSWANG opened this issue Sep 16, 2022 · 5 comments
Closed

[feature request] portmap support masquerade-all option #771

BSWANG opened this issue Sep 16, 2022 · 5 comments
Labels

Comments

@BSWANG
Copy link
Contributor

BSWANG commented Sep 16, 2022

When k8s cluster use ipvlan L3/L2, macvlan or other underlay network plugin. The traffic come back from pod to host maybe not go through conntrack in host, and can not un-snat to hostip which client requested.

image

Masquerad all traffic can make sure the pod reply come back to host and go through conntrack in host.

image

@mccv1r0
Copy link
Member

mccv1r0 commented Sep 19, 2022

I'm having trouble understanding what is going on.

What addresses live where?

@dcbw
Copy link
Member

dcbw commented Sep 19, 2022

@BSWANG can you clarify the diagram? What are 1.1.1.1 and 2.2.2.2?

Is the square a node in a cluster? And is 192.168.0.1 and 0.2 NICs on the node?

Is 10.0.0.1 the container?

@dcbw
Copy link
Member

dcbw commented Sep 19, 2022

In your use-case, what is the source-ip and dest-ip of the incoming packet from client -> pod?

When the pod replies, what is the source-ip and dest-ip of hte outgoing packet?

@MikeZappa87
Copy link
Contributor

Are you able to give the output of 'ip r' on the host node?

@dcbw dcbw changed the title [feature request] portmap support masquerad-all option [feature request] portmap support masquerade-all option Oct 10, 2022
@BSWANG
Copy link
Contributor Author

BSWANG commented Oct 25, 2022

@dcbw @MikeZappa87
Thanks for reply. I have updated the description, for some underlay plugins scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants