-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add net.ipv4.conf.all.log_martians=1 in /usr/lib/sysctl.d/50-default.conf ? #21550
Description
Is your feature request related to a problem? Please describe.
Linux distributions with systemd has rp_filter enabled in /usr/lib/sysctl.d/50-default.conf
https://github.com/systemd/systemd/blob/main/sysctl.d/50-default.conf#L24-L27
this could cause container networking issue like cilium/cilium#10645
Sometime it is very time consuming to trouble shoot the container networking issue without any clue, without kernel logging of source route verification when rp_filter enabled
Describe the solution you'd like
Since systemd enable rp_filter by default, I suggest systemd also enable net.ipv4.conf.all.log_martians right after rp_filter in /usr/lib/sysctl.d/50-default.conf
Describe alternatives you've considered
The systemd version you checked that didn't have the feature you are asking for
systemd 248 (v248-13.oe1)