diff options
Diffstat (limited to 'templates/firewall/ip-src-route/node.def')
-rw-r--r-- | templates/firewall/ip-src-route/node.def | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/ip-src-route/node.def b/templates/firewall/ip-src-route/node.def index eb8bc0a..1eed14d 100644 --- a/templates/firewall/ip-src-route/node.def +++ b/templates/firewall/ip-src-route/node.def @@ -3,9 +3,9 @@ help: "Accept packets with SRR option" default: "disable" syntax: $(@) in "enable", "disable"; "ip-src-route must be enable or disable" create: "if [ x$(@) == xenable ]; \ - then echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route; \ - else echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route; fi" + then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; \ + else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; fi" update: "if [ x$(@) == xenable ]; \ - then echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route; \ - else echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route; fi" -delete: "echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route" + then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; \ + else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; fi" +delete: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"" |