From patchwork Mon Oct 18 10:10:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4791 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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HXt9t0JnHz3wcr for ; Mon, 18 Oct 2021 10:18:10 +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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4HXt9p1nthz17l; Mon, 18 Oct 2021 10:18:06 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HXt9p1D8Kz309W; Mon, 18 Oct 2021 10:18:06 +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 (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4HXt9m5kMLz2yWh for ; Mon, 18 Oct 2021 10:18:04 +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 (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4HXt9m4gHjz1DR; Mon, 18 Oct 2021 10:18:04 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1634552284; 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=ZoPRX6aWjJyuYx0UTLBtrrtbh3v9Ig3wxblaN+FjneI=; b=bbxalA3dGG2jSCWW/6/uvK7qApSbtJzRQILMqeiBzetgt/V5W4ryp7bmczbTdEx+c0cG0p YXydgDfTUyfH/XBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1634552284; 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=ZoPRX6aWjJyuYx0UTLBtrrtbh3v9Ig3wxblaN+FjneI=; b=PrS1rZjIhuozanEwP+yhNecF2KC6wHfEyQhasLJT8imsISgA5V3BY6njtYcsYAfeQNzN8/ qECD8bJyuPXufcPtLKxg9+7FWv1WsnAg3xuaXPywkW+jDET68ddFFl2aixcXtPRttGb17d DtJbEz8i+JmVLRBPdxiAVHJ6tBdsIr2DCM67Gw/U+M2Zgc33+IeCM6jvYkuacSJgKMcTP0 BkvcRHpNHPebYkDYBF+iDKHaftVfuuXUTMnvacEaLbNFJNXg/KJkObzsTGskHx+EYDTIIu GEfTQ2mmEVaX2OwqOPhe8uskg7O2sH3BqWbq5LzBn/lfdHOeQw2RY5OtgbDOjg== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 3/9] suricata: Define bypass mark Date: Mon, 18 Oct 2021 10:10:16 +0000 Message-Id: <20211018101022.15448-3-michael.tremer@ipfire.org> In-Reply-To: <20211018101022.15448-1-michael.tremer@ipfire.org> References: <20211018101022.15448-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer Reviewed-by: Peter Müller Tested-by: Stefan Schantl --- config/suricata/suricata.yaml | 4 ++-- src/initscripts/system/suricata | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index 1ce013dc7..f02b93d76 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -348,8 +348,8 @@ nfq: mode: repeat repeat-mark: 2147483648 repeat-mask: 2147483648 -# bypass-mark: 1 -# bypass-mask: 1 + bypass-mark: 1073741824 + bypass-mask: 1073741824 # route-queue: 2 # batchcount: 20 fail-open: yes diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 111bd9df3..981471c7c 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -37,6 +37,8 @@ enabled_ips_zones=() # Mark and Mask options. REPEAT_MARK="0x80000000" REPEAT_MASK="0x80000000" +BYPASS_MARK="0x40000000" +BYPASS_MASK="0x40000000" # PID file of suricata. PID_FILE="/var/run/suricata.pid"