summaryrefslogtreecommitdiff
path: root/templates/system/conntrack/timeout/icmp/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/conntrack/timeout/icmp/node.def')
-rw-r--r--templates/system/conntrack/timeout/icmp/node.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/system/conntrack/timeout/icmp/node.def b/templates/system/conntrack/timeout/icmp/node.def
new file mode 100644
index 0000000..952178e
--- /dev/null
+++ b/templates/system/conntrack/timeout/icmp/node.def
@@ -0,0 +1,13 @@
+type: u32
+
+help: ICMP timeout in seconds
+
+default: 30
+
+val_help: u32:1-21474836; ICMP 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_icmp_timeout=$VAR(@)
+
+delete: sudo sysctl -q -w net/netfilter/nf_conntrack_icmp_timeout=30