From patchwork Fri Apr 5 19:26:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 7719 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4VB7lr0ZH0z3wZV for ; Fri, 5 Apr 2024 19:27:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VB7lh6rKKz5Yw; Fri, 5 Apr 2024 19:26:56 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4VB7lh3gc8z309N; Fri, 5 Apr 2024 19:26:56 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4VB7lc1DZ6z30S4 for ; Fri, 5 Apr 2024 19:26:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4VB7lb3yQqz17s; Fri, 5 Apr 2024 19:26:51 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1712345211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=20YO6sB+1MuKUGSGp86sbWWAj0BMVy5F+/Iw0FUHNtc=; b=8w1ARQhusG+/rhdPi4h/g00Hm/aZmdACLy5THKFL/UTJwMAyJYXs5BU7nO41NyfsAEnfOE kd6Bcp9vr7JhWkBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1712345211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=20YO6sB+1MuKUGSGp86sbWWAj0BMVy5F+/Iw0FUHNtc=; b=HG4TOHTMZtoT0JKyPgbUsB+TyX52garbwkfYosMJBn6t0mzeXvSLYWxEJCh+I4YubHAkmN v9JVUcIKaKB4Esm5/TxfiezJ6DZKIjxbPldUIqRLF4udx9L2iP0GP6PzJ0Ifiw8TC10+uC Tx1IVrUn3GBmQthj6uwo+hzGXP+fGl8uOGvwVgqTy24Coj7Y7EgeJDMUjeV1iSUZ4t6e64 kX4kN1oqn+WQ8Kf1jEw054X1qJ5of7vliGPR5dLlO3r6/oOUGClYLxiCiO2FjwMaD2wrD/ fDPrHY9eVUIXfVOU+rYooO8PUVln6vyUBe+aKKA7uN/y6aPDbZx9OqqXlGMa5g== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 4/4] suricata: Set midstream-policy to pass-packet Date: Fri, 5 Apr 2024 21:26:40 +0200 Message-Id: <20240405192640.5215-4-stefan.schantl@ipfire.org> In-Reply-To: <20240405192640.5215-1-stefan.schantl@ipfire.org> References: <20240405192640.5215-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: XRVK6ACX3JFLPA46HXTXZ65TR2ANM4EM X-Message-ID-Hash: XRVK6ACX3JFLPA46HXTXZ65TR2ANM4EM X-MailFrom: stefan.schantl@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Set this value to the same as the exception-policy to keep in sync and hopefully have the same behaviour. In case this option is not set an ugly message about a not correctly set value will be logged to syslog during startup. Signed-off-by: Stefan Schantl --- config/suricata/suricata.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index 9c8107429..b8f99c8b5 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -1117,7 +1117,7 @@ stream: #memcap-policy: ignore checksum-validation: yes # reject incorrect csums #midstream: false - #midstream-policy: ignore + midstream-policy: pass-packet inline: auto # auto will use inline mode in IPS mode, yes or no set it statically bypass: yes # Bypass packets when stream.reassembly.depth is reached. reassembly: