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

Add an iptables rule to drop packets that conntrack considers invalid. #957

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mccv1r0
Copy link
Member

@mccv1r0 mccv1r0 commented Jan 30, 2023

Add an iptables rule to drop packets that conntrack considers invalid.

One rule for the life of CNI vs one for ipMasq, portmap etc.

This is an alternative to adding an unique container IP specific rules every cniADD for ipMasq, portmap and then removing when cniDel is called.

Fixes plugins 816

Signed-off-by: Michael Cambria mcambria@redhat.com

@mccv1r0 mccv1r0 force-pushed the invalid-conntrack branch 2 times, most recently from 72ef7d2 to 246489a Compare January 30, 2023 19:04
@mccv1r0
Copy link
Member Author

mccv1r0 commented Feb 6, 2023

The existing conntrack entry should stick around for 2*MSL to address any in flight packets from needing such a rule.

    One rule for the life of CNI vs one for ipMasq, portmap etc.

    This is an alternative to adding an unique container IP specific rules
    every cniADD for ipMasq, portmap and then removing when cniDel is called.

    Fixes plugins containernetworking#816

    gofumpt
    Keep lint happy?

Signed-off-by: Michael Cambria <mcambria@redhat.com>
@mccv1r0 mccv1r0 force-pushed the invalid-conntrack branch 2 times, most recently from 6686e4b to 7ee6987 Compare February 8, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop invalid conntrack packets
1 participant