How to set up rp_filter on a Linux xNIC¶
WHAT TO EXPECT
In this article, users will learn how to change the rp_filter parameter on the xNIC configuration.
The rp_filter (or reverse path filtering) is a security feature that prevents IP address spoofing. It does so by validating whether incoming network packets arrive on an interface that could be used to route traffic back to the packet's source IP address.
Default: loose rp_filter¶
The xNIC sets rp_filter when it runs (the installer does not change it): loose mode (2) on the data interface and on the virtual interfaces of the xNIC. This allows the xNIC to deliver multicast whose source is not reachable through that interface, for example traffic from another subnet.
Alternative: overrideSrcIp¶
With overrideSrcIp set to true, the xNIC does not change rp_filter. Instead, it rewrites the source IP of the multicast it delivers to an address in the subnet of the interface (.1, or .2 if .1 is the network address). The applications then see that address as the source of the multicast, not the original sender. With High Availability, the source override of the HA stream takes priority.
To turn it on, edit the xNIC configuration file:
Set "overrideSrcIp" in the "component" section to true, save the file and restart the xNIC VM.
Contact support if you need more information regarding this configuration.