From patchwork Fri Mar 1 01:28:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2117 Return-Path: Received: from mail01.ipfire.org (mail01.i.ipfire.org [172.28.1.200]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail01.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web07.i.ipfire.org (Postfix) with ESMTPS id D1A4088B0B9 for ; Thu, 28 Feb 2019 14:30:06 +0000 (GMT) Received: from mail01.i.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 449FM22DL6z5KgVw; Thu, 28 Feb 2019 14:30:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1551364206; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:list-id:list-unsubscribe:list-subscribe:list-post; bh=WWB9FZCpigrTh0BoZa7+/wk5pHtg0XuXqUGfEc/91u4=; b=h1xrUVCLDIDLkNuEZR0rCM8JE71Mef0gkTDZBrNs1AOeV8XK39G2hld5nG4gr+AMJEHxtC cY3khg3s5U0Paaj4t3Xs4n+Icq3jhES823gUhZOrW63ioxUO5XB56iUIGjFbu+AxMoNUZu 9/aNn7d2CR8cDUkRS1VJMQ9qRcN+OMtGCVqUrEZSDGrJiQ7GS27UgV+19/VsqS83+UA3jh WjTbeVBl7STRSmpauHmshbh3N6JQoDVJjr+euyIUG6SPJnk4j+U+w5Tp5rOzJ05Ca7lruj RtB8XkxXIaCJjD07SejaFl0r08BXyfP5YCLGrdi62WV2p/w3PSsMej0hOAuk2w== Received: from ipfire.tremer.co.uk (unknown [88.215.19.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 449FKZ0zB8z5KvHm; Thu, 28 Feb 2019 14:28:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201801; t=1551364131; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=WWB9FZCpigrTh0BoZa7+/wk5pHtg0XuXqUGfEc/91u4=; b=hzt6tGnnix8pCNyrSFfTFhEvtYMd/pmS3ROZqpBa72AWBSllWwDkSgj0wD+L6DREAeTSyI ZDmP5Ia1mZlzKjQrB9R1fMUdYv5BFjbAzH9SGEhtoEuIhQ84EDpMhnRyXMSsCcWRdfQfE2 NpujmkjhRtvKWp1erNqjclbTuNyNJ194NNNudG/elZTA3i6FXC3iLClQttyLgVI5kr/+OZ RIFhXn4A6nQRlZG+MUTBFySvPyBFKfBviX9Lvfz+LkGVTgc+C9Ud7X2GDzTAp9QSUT4w0E XIdTBGM5pcLx08IXCUExZwU+RlaXw3gSxYmoc22LZTOQLcOEE3L9v/yeYbgbxw== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 17/20] suricata: Increase memory size for the stream engine Date: Thu, 28 Feb 2019 14:28:22 +0000 Message-Id: <20190228142825.5153-18-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20190228142825.5153-1-michael.tremer@ipfire.org> References: <20190228142825.5153-1-michael.tremer@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=ms smtp.mailfrom=michael.tremer@ipfire.org X-Spamd-Result: default: False [-8.81 / 11.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-2.71)[-0.903,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31655, ipnet:88.215.0.0/18, country:GB]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-8.81 X-Rspamd-Server: mail01.i.ipfire.org Cc: Michael Tremer X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This change also ensures that suricata has a decent number of streams preallocated to be able to handle any bursts in traffic. Signed-off-by: Michael Tremer --- config/suricata/suricata.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index 9537e9e12..40777f3ad 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -537,7 +537,8 @@ flow-timeouts: # # is used in a rule. # stream: - memcap: 64mb + memcap: 256mb + prealloc-sessions: 4k checksum-validation: yes # reject wrong csums inline: auto # auto will use inline mode in IPS mode, yes or no set it statically reassembly: @@ -546,10 +547,9 @@ stream: toserver-chunk-size: 2560 toclient-chunk-size: 2560 randomize-chunk-size: yes - #randomize-chunk-range: 10 - #raw: yes - #segment-prealloc: 2048 - #check-overlap-different-data: true + raw: yes + segment-prealloc: 2048 + check-overlap-different-data: true # Host table: #