From 206f85c4426821033f5a31fd22c5b8b0cab9e06d Mon Sep 17 00:00:00 2001 From: hagbard Date: Tue, 18 Dec 2018 11:13:47 -0800 Subject: Fixes: T1102: Disabling rp_filter don't work --- debian/changelog | 6 ++++++ interface-templates/ip/source-validation/node.def | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8acdee3f..d2e5012d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyatta-cfg-quagga (0.19.1+vyos2+current6) unstable; urgency=low + + * bugfix: T1102 - Disabling rp_filter don't work + + -- hagbard Tue, 18 Dec 2018 11:13:06 -0800 + vyatta-cfg-quagga (0.19.1+vyos2+current5) unstable; urgency=medium * Move IPv4-specific BGP options to "address-family ipv4-unicast" subtrees. diff --git a/interface-templates/ip/source-validation/node.def b/interface-templates/ip/source-validation/node.def index 2c8523d2..89aab874 100644 --- a/interface-templates/ip/source-validation/node.def +++ b/interface-templates/ip/source-validation/node.def @@ -34,12 +34,12 @@ update: fi echo "Global value is $global" fi - if [ -d /sys/class/net/$VAR(../@) ] ; then + if [ -d /sys/class/net/$VAR(../../@) ] ; then sudo sh -c "echo $new > \ /proc/sys/net/ipv4/conf/$IFNAME/rp_filter" fi delete: - if [ -d /sys/class/net/$VAR(../@) ] ; then + if [ -d /sys/class/net/$VAR(../../@) ] ; then sudo sh -c "echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/rp_filter" fi -- cgit v1.2.3