blob: e779a8b4db8bd34ac257c52a32bbce987080c369 (
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
|
# 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: Policy for handling broadcast IPv4 ICMP echo and timestamp requests
val_help: disable; Disable processing of broadcast IPv4 ICMP echo/timestamp requests
val_help: enable; Enable 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"
|