summaryrefslogtreecommitdiff
path: root/templates/firewall/syn-cookies/node.def
blob: 9521f12f6c3e0e67263c7bf65ed4afccfdd61a35 (plain)
1
2
3
4
5
6
7
8
type: txt
help: Set use TCP syn cookies (default: enable)
default: "enable"
syntax:expression: $VAR(@) in "enable", "disable"; "syn-cookies must be enable or disable"
update:expression: "if [ x$VAR(@) == xenable ]; \
                 then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/tcp_syncookies\"; \
                 else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/tcp_syncookies\"; fi"
delete:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/tcp_syncookies\""