summaryrefslogtreecommitdiff
path: root/templates/firewall/broadcast-ping/node.def
blob: 0a1591467a2226f65f957e0c1f8c4ca2f180416c (plain)
1
2
3
4
5
6
7
8
9
10
11
type: txt
help: ignore all ICMP ECHO and TIMESTAMP requests sent via broadcast/multicast
default: "disable"
syntax:expression: $VAR(@) in "enable", "disable"; "broadcast-ping must be enable or disable"
create:expression: "if [ x$VAR(@) == xenable ]; \
          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:expression: "if [ x$VAR(@) == xenable ]; \
          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:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\""