From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4ZjynG5sNqz335l for ; Thu, 24 Apr 2025 14:20:50 +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 RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4ZjynC1jfVz336p for ; Thu, 24 Apr 2025 14:20:47 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4ZjynC0DLtzlQ; Thu, 24 Apr 2025 14:20:47 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1745504447; 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=NQBkiPS9Bv5AunQ/fKKlLMLrmy2nGHYBO1159Rp4zqM=; b=btvILT7yDqA7trwc7O2ztWZpHuov2vnTkUtLNA+ez5IHhTj5mrCNMZjdkSpwiTavCkfEuP s9qc9Nj+uUvGt0BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1745504447; 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=NQBkiPS9Bv5AunQ/fKKlLMLrmy2nGHYBO1159Rp4zqM=; b=LfcEqoagawz0mVNpkcPlVp8EdOu6y7eZo7i/K811b9Eprhl8fQ1gdxeeNxY4xe560La0YM OIZfkSHEN94hNL0MbxaDl2B1OoRa5KD2dtn8VqpUBQzl3ydAaXetcLRKS+6KAjgsJiQImu I6I5DS6knGrUcIrH7QOIG5kV2IbrZGO2OJI34ti3lBe4AWsxIBWtKk3PTSVd+46XtmqqzI NMUYmu7KzAeZbSDKjrMy3h7X9hmX1EZxSNz4hLmCDaIJfpFiBgJJdE8RgmEwC1YWtJYCF5 xggvlHn+jy+YDHOBV4cFGVZApD7aElBe6jSn1r0yEptwzjwiMhxZz8hvsMqwnA== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 3/4] update.sh: Core195 - remove any 3coresec ipblocklists during Core Update Date: Thu, 24 Apr 2025 16:20:40 +0200 Message-ID: <20250424142041.3443255-3-adolf.belka@ipfire.org> In-Reply-To: <20250424142041.3443255-1-adolf.belka@ipfire.org> References: <20250424142041.3443255-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - This ensures that any existing 3coresec blocklists that might have been selected when they existed will be removed from users systems. Signed-off-by: Adolf Belka --- config/rootfiles/core/195/update.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/rootfiles/core/195/update.sh b/config/rootfiles/core/195/update.sh index ee9b53497..e934693cd 100644 --- a/config/rootfiles/core/195/update.sh +++ b/config/rootfiles/core/195/update.sh @@ -47,6 +47,21 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# Remove any entry for 3CORESEC_SSH, 3CORESEC_SCAN or 3CORESEC_WEB from the ipblocklist modified file +# and the associated ipblocklist files from the /var/lib/ipblocklist directory +sed -i '/3CORESEC_SSH=/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/3CORESEC_SSH.conf ]; then + rm /var/lib/ipblocklist/3CORESEC_SSH.conf +fi +sed -i '/3CORESEC_SCAN=/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/3CORESEC_SCAN.conf ]; then + rm /var/lib/ipblocklist/3CORESEC_SCAN.conf +fi +sed -i '/3CORESEC_WEB=/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/3CORESEC_WEB.conf ]; then + rm /var/lib/ipblocklist/3CORESEC_WEB.conf +fi + # Start services # This update needs a reboot... -- 2.49.0