diff options
Diffstat (limited to 'templates-cfg/system/conntrack/tcp/half-open-connections/node.def')
-rw-r--r-- | templates-cfg/system/conntrack/tcp/half-open-connections/node.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates-cfg/system/conntrack/tcp/half-open-connections/node.def b/templates-cfg/system/conntrack/tcp/half-open-connections/node.def new file mode 100644 index 0000000..9474463 --- /dev/null +++ b/templates-cfg/system/conntrack/tcp/half-open-connections/node.def @@ -0,0 +1,13 @@ +type: u32 + +help: Maximum number of TCP half-open connections + +default: 512 + +val_help: u32:1-2147483647; Generic connection timeout in seconds + +syntax:expression: ($VAR(@) >= 1 && $VAR(@) <= 2147483647) ; "Value must be between 1 and 2147483647" + +update: sudo sysctl -q -w net/ipv4/tcp_max_syn_backlog=$VAR(@) + +delete: sudo sysctl -q -w net/ipv4/tcp_max_syn_backlog=512 |