summaryrefslogtreecommitdiff
path: root/templates/firewall/broadcast-ping/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall/broadcast-ping/node.def')
-rw-r--r--templates/firewall/broadcast-ping/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/broadcast-ping/node.def b/templates/firewall/broadcast-ping/node.def
index f49831c..5b2dbd5 100644
--- a/templates/firewall/broadcast-ping/node.def
+++ b/templates/firewall/broadcast-ping/node.def
@@ -3,9 +3,9 @@ help: "ignore all ICMP ECHO and TIMESTAMP requests sent via broadcast/multicast"
default: "disable"
syntax: $(@) in "enable", "disable"; "broadcast-ping must be enable or disable"
create: "if [ x$(@) == xenable ]; \
- then echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; \
- else echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; fi"
+ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; \
+ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; fi"
update: "if [ x$(@) == xenable ]; \
- then echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; \
- else echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts; fi"
-delete: "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
+ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; \
+ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; fi"
+delete: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\""