The following modification on /etc/network/if-up.d/ip makes it work.
*** 13,18 **** --- 13,20 ---- if [ -n "$IF_IP_RP_FILTER" ]; then if [ "$IF_IP_RP_FILTER" -eq "0" ]; then echo 0 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter" + elif [ "$IF_IP_RP_FILTER" -eq "2" ]; then + echo 2 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter" else echo 1 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter" fi
The following modification on /etc/network/ if-up.d/ ip makes it work.
*** 13,18 **** sys/net/ ipv4/conf/ $IFACE/ rp_filter" sys/net/ ipv4/conf/ $IFACE/ rp_filter" sys/net/ ipv4/conf/ $IFACE/ rp_filter"
--- 13,20 ----
if [ -n "$IF_IP_RP_FILTER" ]; then
if [ "$IF_IP_RP_FILTER" -eq "0" ]; then
echo 0 > "/proc/
+ elif [ "$IF_IP_RP_FILTER" -eq "2" ]; then
+ echo 2 > "/proc/
else
echo 1 > "/proc/
fi