From patchwork Mon Oct 18 10:10:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4789 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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HXt9p4RZfz3wcq for ; Mon, 18 Oct 2021 10:18:06 +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 4HXt9n19zSz1Ts; Mon, 18 Oct 2021 10:18:05 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HXt9n00C7z2yWh; Mon, 18 Oct 2021 10:18:04 +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 4HXt9m4ZRrz2xPS 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 4HXt9l61N3zld; Mon, 18 Oct 2021 10:18:03 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1634552283; 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; bh=2MWCP/AyVx87HXytX08N/SmFLvXSjRxqHXp3oB7ncT8=; b=aPwoQ+5q6qOzhcOR5McBP1ie4uj/ecdp71d+S8c548DOiwy3H2UH3TRYNydQc3HQ9JQ2ao WkIlwwKmALDfKNBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1634552283; 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; bh=2MWCP/AyVx87HXytX08N/SmFLvXSjRxqHXp3oB7ncT8=; b=mgkw6vyKkS78rvDiUsNbzCI1cdioPDoc8oA6bO1cXvdw02ZwckJ+6jY4Tj41TC6ko5aFQu Yr6KihoSbe8ovqhQoSqTk9oTFzbT0FqvHjash0RncCURtTZaeHzJjOTBdGjJM/MK9t+xgD QsFhtdNn686YdEdYbdzEWUHbzggl/uxgKtohSuM+cLfqRwOaklrobxSWdpi3oeglOevLb6 KAF0sRVNRA09WW9g9IlvqjuzyhCSWDGQ2IjNYsORpDuAdxto6ACMJ+rDGwGFYgrIqJ4LYD p2jnT2N1YcsNJAroag7vwqdBmbM7KcFdF6G0dH163ZTFXIriAUh/6feIsD3Fig== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/9] suricata: Set most significant bit as repeat marker Date: Mon, 18 Oct 2021 10:10:14 +0000 Message-Id: <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" I have no idea why some odd value was chosen here, but one bit should be enough. Signed-off-by: Michael Tremer Reviewed-by: Peter Müller Tested-by: Stefan Schantl --- config/suricata/suricata.yaml | 4 ++-- src/initscripts/system/suricata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/suricata/suricata.yaml b/config/suricata/suricata.yaml index 4e9e39967..1ce013dc7 100644 --- a/config/suricata/suricata.yaml +++ b/config/suricata/suricata.yaml @@ -346,8 +346,8 @@ logging: nfq: mode: repeat - repeat-mark: 1879048192 - repeat-mask: 1879048192 + repeat-mark: 2147483648 + repeat-mask: 2147483648 # bypass-mark: 1 # bypass-mask: 1 # route-queue: 2 diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 33633ddf9..e327225d7 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -35,8 +35,8 @@ network_zones=( red green blue orange ovpn ) enabled_ips_zones=() # Mark and Mask options. -MARK="0x70000000" -MASK="0x70000000" +MARK="0x80000000" +MASK="0x80000000" # PID file of suricata. PID_FILE="/var/run/suricata.pid"