summaryrefslogtreecommitdiff
path: root/templates/firewall/ip-src-route
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-12-09 15:57:41 -0800
committerBob Gilligan <gilligan@vyatta.com>2008-12-09 15:57:41 -0800
commita1079991df0425d8338686053602c0c5fe1e62fb (patch)
tree755aa679099075d3ae0d8584da1aed49c7f9f5ba /templates/firewall/ip-src-route
parenta8cd93d29719ad2aab005ebbf401df23ba5754c7 (diff)
downloadvyatta-cfg-firewall-a1079991df0425d8338686053602c0c5fe1e62fb.tar.gz
vyatta-cfg-firewall-a1079991df0425d8338686053602c0c5fe1e62fb.zip
Cleanup firewall templates for readability. Update help strings to reflect IPv4.
Diffstat (limited to 'templates/firewall/ip-src-route')
-rw-r--r--templates/firewall/ip-src-route/node.def37
1 files changed, 29 insertions, 8 deletions
diff --git a/templates/firewall/ip-src-route/node.def b/templates/firewall/ip-src-route/node.def
index 1f813dc..c9e777c 100644
--- a/templates/firewall/ip-src-route/node.def
+++ b/templates/firewall/ip-src-route/node.def
@@ -1,11 +1,32 @@
type: txt
-help: Set acceptance for packets with SRR option (default: disable)
+
+help: Set policy for handling IPv4 packets with source route option
+
+comp_help:Possible completions:
+ enable\tEnable processing of IPv4 packets with source route option
+ disable\tDisable processing of IPv4 packets with source route option
+
default: "disable"
+
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: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:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\""
+
+create:
+ 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$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"