Disable forced Reverse Path filtering #7

Closed
opened 2020-12-10 18:13:35 +01:00 by jdubois · 1 comment
Member

Minifirewall enable the Reverse Path filtering each time the init script is executed :

# Enable Reverse Path filtering : verify if responses use same network interface
for i in /proc/sys/net/ipv4/conf/*/rp_filter; do
echo 1 > $i
done

But VRRP needs it to be disabled. To simply re-disable it within minifirewall.conf instead of commenting out this part of the init script does not work : the fact that it is enabled, even for one second, is enough to break VRRP.

The problem is that this script is not made to be customized : an update of the init script could remove the comments. Then, a restart of minifirewall would break VRRP.

I think in Debian, the default value is already at 1. This configuration was already there at the first commit in 2009, so I do not know the need, but do we really need to enable Reverse Path filtering ?

Minifirewall enable the Reverse Path filtering each time the init script is executed : ``` # Enable Reverse Path filtering : verify if responses use same network interface for i in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 1 > $i done ``` But [VRRP](https://wiki.evolix.org/HowtoVRRP#utilisation-avec-minifirewall) needs it to be disabled. To simply re-disable it within minifirewall.conf instead of commenting out this part of the init script does not work : the fact that it is enabled, even for one second, is enough to break VRRP. The problem is that this script is not made to be customized : an update of the init script could remove the comments. Then, a restart of minifirewall would break VRRP. I think in Debian, the default value is already at 1. This configuration was already there at the first commit in 2009, so I do not know the need, but do we really need to enable Reverse Path filtering ?
jlecour self-assigned this 2020-12-10 18:20:18 +01:00
gcolpart was assigned by jlecour 2020-12-10 18:20:18 +01:00
Owner

Yes, we need enable it by default.
We should have RP_FILTER variable to force it to 0 in rare case when needed.

Yes, we need enable it by default. We should have RP_FILTER variable to force it to 0 in rare case when needed.
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/minifirewall#7
No description provided.