diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-09-20 13:11:54 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-09-20 13:11:54 +0200 |
commit | f0d3885c3542f901dca33e13edba3a27760e9884 (patch) | |
tree | bb81723dc06a8d4ee345ff01ae59d3d310151b9b | |
parent | 667f9a24d8e2ff28b05117bf1c807d027dc64aca (diff) | |
download | vyatta-cfg-system-f0d3885c3542f901dca33e13edba3a27760e9884.tar.gz vyatta-cfg-system-f0d3885c3542f901dca33e13edba3a27760e9884.zip |
Remove source-validation templates, those are also autogenerated.
-rw-r--r-- | templates/interfaces/vxlan/node.tag/ip/source-validation/node.def | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/templates/interfaces/vxlan/node.tag/ip/source-validation/node.def b/templates/interfaces/vxlan/node.tag/ip/source-validation/node.def deleted file mode 100644 index fdd0ef92..00000000 --- a/templates/interfaces/vxlan/node.tag/ip/source-validation/node.def +++ /dev/null @@ -1,34 +0,0 @@ -# rp_filter -# default value - 0 -# conf/all/rp_filter and conf/[interface]/rp_filter both must be set to -# a value greater than 0 to do source validation on the interface - - -type: txt - -help: Policy for source validation by reversed path, as specified in RFC3704 - -val_help: strict; Enable Strict Reverse Path Forwarding as defined in RFC3704 -val_help: loose; Enable Loose Reverse Path Forwarding as defined in RFC3704 -val_help: disable; No source validation - -syntax:expression: $VAR(@) in "strict", "loose", "disable"; "source-validation must be set to 'loose', 'strict' or 'disable'" - -update: - if [ x$VAR(@) == xstrict ]; then - sudo sh -c "echo 1 > \ - /proc/sys/net/ipv4/conf/all/rp_filter" - sudo sh -c "echo 1 > \ - /proc/sys/net/ipv4/conf/$VAR(../../@)/rp_filter" - elif [ x$VAR(@) == xloose ]; then - sudo sh -c "echo 2 > \ - /proc/sys/net/ipv4/conf/all/rp_filter" - sudo sh -c "echo 2 > \ - /proc/sys/net/ipv4/conf/$VAR(../../@)/rp_filter" - else - sudo sh -c "echo 0 > \ - /proc/sys/net/ipv4/conf/all/rp_filter" - fi - -delete: - sudo sh -c "echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/rp_filter" |