From patchwork Sun May 8 13:23:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5599 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 4Kx4kJ01Hyz3x1v for ; Sun, 8 May 2022 13:23:19 +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 4Kx4kF6FWdz4QR; Sun, 8 May 2022 13:23:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Kx4kF5MFwz2xfn; Sun, 8 May 2022 13:23:17 +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 4Kx4kF1k9gz2xSd for ; Sun, 8 May 2022 13:23:17 +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 4Kx4kD3zk1z1cf; Sun, 8 May 2022 13:23:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1652016196; 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=pBgMPc1osLktiZNUUiFeibm0MF6knJ17JJUUz+/A+do=; b=f7n36LwIq3NrWJOM9RW9GPd+3dxVe9cnT7qATlwY/DRKbLd51tw2o1azvwV1cf0vJkZnGX CgG40+sUxCoXPpBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1652016196; 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=pBgMPc1osLktiZNUUiFeibm0MF6knJ17JJUUz+/A+do=; b=JDOty7X8jkEPq6gjISNSUgapbQmhw/SCEwLfVx6tngy8TBjytWvY8DcVimOlsdfdZaxoIc l5wS7Fz+tpy58y3rbitYnxQmlPGAUC3F7Kx+jpdD2hXUt8+9pFdLvsk7TxZkm71I6CeOWz xL+JLSxXHw6EME8mxRGHjd9I4HNhp2stH2XVJcYELGeU+FwAgaTCiQJVExdkMXWbhJ3HAU MIjzzknJqZtwH7uJXCdabYBW24ByJH5VPhw1B4SExSM4Fs45EFanLlWzCJvm2XXWox6qGb wbHsSOLNJdEPtmozU3j3zFr3ik3VEpfntAZfQXXJ0EhWHAKxixdMN/N/X4ImOw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] suricata: Perform ruleset update every 12 hours. Date: Sun, 8 May 2022 15:23:03 +0200 Message-Id: <20220508132303.4175-1-stefan.schantl@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: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl Reviewed-by: Peter Müller --- config/cron/crontab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cron/crontab b/config/cron/crontab index d61d26619..c42104626 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -62,8 +62,8 @@ HOME=/ # Update location database %hourly,random * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-location-database >/dev/null 2>&1 -# Update surciata rules. -%daily,random * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-ids-ruleset >/dev/null 2>&1 +# Perform a surciata rules update every 12 hours. +@ 12h [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-ids-ruleset >/dev/null 2>&1 # Retry sending spooled mails regularly %hourly * /usr/sbin/dma -q