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

feat: enable INET_DIAG #1029

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

Preisschild
Copy link
Contributor

@Preisschild Preisschild commented Sep 17, 2024

Fixes: #1028

INET_DIAG_DESTROY is used by CNIs such as Cilium to terminate connections in other containers. KSPP recommends to disable it due to "Prior to v4.1, assists heap memory attacks; best to keep interface disabled.".

Linux 4.1 was almost 10 years ago and Cilium with their eBPF-based kube-proxy replacement is widely used by the community and not having this enabled leads to weird networking issues (e.g. when coredns pods get a different IP due deployment restarts UDP dns clients keep sending connections to the old IP)

This was once already enabled in Talos (98ef073), but was then disabled after updating the kernel-hardening check script (f4335dc), probably because KSPP recommended it.

More References:

@Preisschild Preisschild force-pushed the feat/enable-inet-diag branch 2 times, most recently from 1dd98f6 to 4f7f0e1 Compare September 17, 2024 08:00
Fixes: siderolabs#1028

INET_DIAG_DESTROY is used by CNIs such as Cilium to terminate
connections in other containers. KSPP recommends to disable it due to
"Prior to v4.1, assists heap memory attacks; best to keep interface
disabled.".

Linux 4.1 was almost 10 years ago and Cilium with their eBPF-based
kube-proxy replacement is widely used by the community and not having
this enabled leads to weird networking issues (e.g. when coredns pods
get a different IP due deployment restarts UDP dns clients keep sending
connections to the old IP)

Signed-off-by: Ströger Florian <[email protected]>
Signed-off-by: Noel Georgi <[email protected]>
@frezbo
Copy link
Member

frezbo commented Sep 17, 2024

/m

@talos-bot talos-bot merged commit 79a4f92 into siderolabs:main Sep 17, 2024
14 checks passed
@smira smira mentioned this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

Linux Socket Diag Subsystem
4 participants