diff options
author | hagbard <vyosdev@derith.de> | 2018-12-18 11:13:47 -0800 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2018-12-18 11:13:47 -0800 |
commit | 206f85c4426821033f5a31fd22c5b8b0cab9e06d (patch) | |
tree | e0978b67117344538e4eaf1674bf677b78400591 /interface-templates | |
parent | 6d49b646a1cd4840621e9d07a0431c87eeec2482 (diff) | |
download | vyatta-cfg-quagga-206f85c4426821033f5a31fd22c5b8b0cab9e06d.tar.gz vyatta-cfg-quagga-206f85c4426821033f5a31fd22c5b8b0cab9e06d.zip |
Fixes: T1102: Disabling rp_filter don't work
Diffstat (limited to 'interface-templates')
-rw-r--r-- | interface-templates/ip/source-validation/node.def | 4 |
1 files changed, 2 insertions, 2 deletions
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 |