summaryrefslogtreecommitdiff
path: root/templates/firewall/log-martians/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall/log-martians/node.def')
-rw-r--r--templates/firewall/log-martians/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/log-martians/node.def b/templates/firewall/log-martians/node.def
index 928a23a..f6a7114 100644
--- a/templates/firewall/log-martians/node.def
+++ b/templates/firewall/log-martians/node.def
@@ -3,9 +3,9 @@ help: "Allow syslog logging of packets with impossible addresses"
default: "enable"
syntax: $(@) in "enable", "disable"; "log-martians must be enable or disable"
create: "if [ x$(@) == xenable ]; \
- then echo 1 > /proc/sys/net/ipv4/conf/all/log_martians; \
- else echo 0 > /proc/sys/net/ipv4/conf/all/log_martians; fi"
+ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"; \
+ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/log_martians\"; fi"
update: "if [ x$(@) == xenable ]; \
- then echo 1 > /proc/sys/net/ipv4/conf/all/log_martians; \
- else echo 0 > /proc/sys/net/ipv4/conf/all/log_martians; fi"
-delete: "echo 1 > /proc/sys/net/ipv4/conf/all/log_martians"
+ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"; \
+ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/log_martians\"; fi"
+delete: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\""