blob: 59996ecdde726cc9e61ff9db34913f016b96beb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
type: txt
help: Set receive ICMP redirects (default: disable)
default: "disable"
syntax:expression: $VAR(@) in "enable", "disable"; "receive-redirects must be enable or disable"
create:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_redirects\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects\"; fi"
update:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_redirects\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects\"; fi"
delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects\""
|