From 410023fd604af49434ed5039c99c7ee6abc99b20 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 4 Nov 2011 04:46:00 +0700 Subject: Initial commit. --- templates/system/conntrack/tcp/max-retrans/node.def | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/system/conntrack/tcp/max-retrans/node.def (limited to 'templates/system/conntrack/tcp/max-retrans') diff --git a/templates/system/conntrack/tcp/max-retrans/node.def b/templates/system/conntrack/tcp/max-retrans/node.def new file mode 100644 index 0000000..bf56f1f --- /dev/null +++ b/templates/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 -- cgit v1.2.3