blob: 03f0bd2a3ec27e8b4755edb50a72d905f82cd7e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# icmp_echo_ignore_broadcasts
# default value - 1
# If set non-zero, then the kernel will ignore all
# ICMP ECHO and TIMESTAMP requests sent to it via broadcast/multicast.
type: txt
help: Set handling of broadcast IPv4 ICMP echo and timestamp requests
comp_help:Possible completions:
disable\tDisable processing of broadcast IPv4 ICMP echo/timestamp requests
enable\tEnable processing of broadcast IPv4 ICMP echo/timestamp requests
default: "disable"
syntax:expression: $VAR(@) in "enable", "disable"; "broadcast-ping must be enable or disable"
update:
if [ x$VAR(@) == xenable ]; then
sudo sh -c "echo 0 > \
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
else
sudo sh -c "echo 1 > \
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
fi
delete:
sudo sh -c "echo 1 > \
/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts"
|