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/timeout/tcp/time-wait/node.def | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/system/conntrack/timeout/tcp/time-wait/node.def (limited to 'templates/system/conntrack/timeout/tcp/time-wait/node.def') diff --git a/templates/system/conntrack/timeout/tcp/time-wait/node.def b/templates/system/conntrack/timeout/tcp/time-wait/node.def new file mode 100644 index 0000000..f6bd1c8 --- /dev/null +++ b/templates/system/conntrack/timeout/tcp/time-wait/node.def @@ -0,0 +1,13 @@ +type: u32 + +help: TCP TIME-WAIT timeout in seconds + +default: 120 + +val_help: u32:1-21474836; TCP TIME-WAIT timeout in seconds + +syntax:expression: ($VAR(@) >= 1 && $VAR(@) <= 21474836) ; "Value must be between 1 and 21474836" + +update: sudo sysctl -q -w net/netfilter/nf_conntrack_tcp_timeout_time_wait=$VAR(@) + +delete: sudo sysctl -q -w net/netfilter/nf_conntrack_tcp_timeout_time_wait=120 -- cgit v1.2.3