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 1eed14d..46ff9f4 100644 --- a/templates/firewall/ip-src-route/node.def +++ b/templates/firewall/ip-src-route/node.def @@ -1,11 +1,11 @@ type: txt -help: "Accept packets with SRR option" +help: Accept packets with SRR option default: "disable" -syntax: $(@) in "enable", "disable"; "ip-src-route must be enable or disable" -create: "if [ x$(@) == xenable ]; \ +syntax:expression: $VAR(@) in "enable", "disable"; "ip-src-route must be enable or disable" +create:expression: "if [ x$VAR(@) == xenable ]; \ 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 ]; \ +update:expression: "if [ x$VAR(@) == xenable ]; \ 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\"" +delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"" |