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
systemd single handedly disabled rp_filter on all interfaces #32563
Comments
Hmm, that's why drop-ins support ordering? When you add new sysctl.d config, just order it after vendor-supplied ones? |
Yes but if I add
To 01-custom.conf to sysctl.d it is ignored because this patch is setting
So it gets applied to all interfaces too, then i would need to do that too but:
|
Please try to rename the file to e.g. 60-custom.conf. |
The problem is not what to name the file, it is the fact that because you define a value for ALL INTERFACES separately without just using the It is not enough for me to make a
I would have to make it with the same as you
Which is ridiculous, why can't you either not set these kinds of policies, or set the |
I ran into this on Ubuntu 22.04 today - it's quite surprising, since the kernel already provides a safe mechanism to apply the defaults to newly attached interfaces. In my case, there's another app managing network interface sysctls. The globbed sysctls were racing with this app, resulting in wildly non-deterministic outcomes. To disable the globbed sysctls, and override
That seems to work - the wildcard doesn't provide the default, the .defaults key does. But that syntax isn't actually described in sysctl.d(5) - so I'm a little worried it's unsupported. IMO the wildcard sysctls seem like a bit of a footgun :\ |
It's documented. See https://www.freedesktop.org/software/systemd/man/latest/sysctl.d.html Anyway, this is not a bug. Closing. |
@yuwata I don't see where that doc explains how to negate a glob. It shows positive globs and exceptions to instances that a glob would match. But neither is sufficient to prevent racy updates. If negated globs are intentionally supported, it'd be nice to have that documented there. |
systemd version the issue has been seen with
245-255
Used distribution
N/A
Linux kernel version used
N/A
CPU architectures issue was seen on
x86_64
Component
other
Expected behaviour you didn't see
sysctls:
Should work.
Unexpected behaviour you saw
In this commit 5d4fc0e
systemd single handedly disabled rp_filter on all interfaces, making any changes to
all
anddefault
to be ignored.Steps to reproduce the problem
Setup clean Ubuntu 22.04, the file is in
/usr/lib/sysctl.d/50-default.conf
.Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: