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