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

[12.0 stable candidate] Properly mark DHCP & DNS traffic entering switch NI from outside #3890

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

milan-zededa
Copy link
Contributor

Backport of #3885 into 12.0 branch (LTS candidate).

Signed-off-by: Milan Lenco milan@zededa.com
(cherry picked from commit f7e3dbf)

After a recent change that prevents non-app traffic from being
forwarded between ports based on the assigned mark, it is
important that even implicitly allowed DHCP & DNS traffic
entering switch NI from outside is properly marked.

However, in our implementation we skipped DHCP & DNS marking rules
for ingress direction, assuming that replies would be matched with
their requests in the conntrack table and mark would get propagated.
With such assumption, we only added DHCP & DNS marking rules for
the egress direction (app requests).
But apparently, request-reply conntrack matching does not work for
DHCP, so let's avoid this assumption altogether and install marking
rules for DHCP & DNS for both directions (for switch NI).

Signed-off-by: Milan Lenco <milan@zededa.com>
(cherry picked from commit f7e3dbf)
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit 35e731e into lf-edge:12.0 Apr 26, 2024
27 of 31 checks passed
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.

2 participants