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