summaryrefslogtreecommitdiff
path: root/templates-cfg/system/conntrack/tcp/max-retrans/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates-cfg/system/conntrack/tcp/max-retrans/node.def')
-rw-r--r--templates-cfg/system/conntrack/tcp/max-retrans/node.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates-cfg/system/conntrack/tcp/max-retrans/node.def b/templates-cfg/system/conntrack/tcp/max-retrans/node.def
new file mode 100644
index 0000000..bf56f1f
--- /dev/null
+++ b/templates-cfg/system/conntrack/tcp/max-retrans/node.def
@@ -0,0 +1,13 @@
+type: u32
+
+help: TCP maximum retransmit attempts
+
+default: 3
+
+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/netfilter/nf_conntrack_tcp_max_retrans=$VAR(@)
+
+delete: sudo sysctl -q -w net/netfilter/nf_conntrack_tcp_max_retrans=3