I've recently started testing the upgrade of our v8.4 cluster to v9.1 (patched using the nosub repository today). While troubleshooting issues with our EVPN configuration, I found that the previous method for disabling reverse path filtering (rp_filter) was no longer working.
Our method of disabling reverse path filtering in v8 was to create the file /etc/sysctl.d/z-local.conf with the contents
After a rebooting, we found that those parameters were set as expected, but most/all of the interface specific rp_filter settings were 2.
I then temporarily set rp_filter to 0 for all network interfaces via sysctl, then created a new vnet and applied the change. The interface for the new vnet had rp_filter set to 2, even with default, all, and all of the other interfaces still set to 0.
This result gave me the idea that the problem wasn't with the all or default settings, but that something was actively setting rp_filter. I started digging around and found the following entry in /usr/lib/sysctl.d/50-default.conf:
I added
I wanted to make others aware of this issues since having rp_filter unexpectedly enabled can create issues. Also, I'm not sure if this fix is the best way to handle it, it's just what I found first.
Thanks,
Erik
Our method of disabling reverse path filtering in v8 was to create the file /etc/sysctl.d/z-local.conf with the contents
net.ipv4.conf.default.rp_filter=0net.ipv4.conf.all.rp_filter=0After a rebooting, we found that those parameters were set as expected, but most/all of the interface specific rp_filter settings were 2.
I then temporarily set rp_filter to 0 for all network interfaces via sysctl, then created a new vnet and applied the change. The interface for the new vnet had rp_filter set to 2, even with default, all, and all of the other interfaces still set to 0.
This result gave me the idea that the problem wasn't with the all or default settings, but that something was actively setting rp_filter. I started digging around and found the following entry in /usr/lib/sysctl.d/50-default.conf:
net.ipv4.conf.*.rp_filter = 2I added
net.ipv4.conf.*.rp_filter = 0 to /etc/sysctl.d/z-local.conf then rebooted. All of the interfaces had reverse path filter disabled. I added another vnet, and it also had reverse path filter disabled as well.I wanted to make others aware of this issues since having rp_filter unexpectedly enabled can create issues. Also, I'm not sure if this fix is the best way to handle it, it's just what I found first.
Thanks,
Erik