summaryrefslogtreecommitdiff
path: root/templates/firewall/broadcast-ping/node.def
blob: f49831ca297a6321effbf2948561542053ec1464 (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: $(@) 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"
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"