From patchwork Thu Feb 20 21:13:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 8474 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 RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4YzQwf2ct2z3xGq for ; Thu, 20 Feb 2025 21:13:38 +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 RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E5" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4YzQwY5gDQz4fk; Thu, 20 Feb 2025 21:13:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4YzQwY4bBhz33v3; Thu, 20 Feb 2025 21:13:33 +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 "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4YzQwV4YtHz33g7 for ; Thu, 20 Feb 2025 21:13:30 +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 4YzQwV02M0zH4; Thu, 20 Feb 2025 21:13:29 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1740086010; 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=2YMmHGBzLOlHDQUSlKpfqhKq44jKW0aNbFYstNAb5LA=; b=1g4LtZMNMv54VB0ArOc4wP3TnCVKrWMJwV//OfRs+UfybLWPDBm5arL0qoECBMPeeWWuBi gFKLigqgUDLxtvCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1740086010; 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=2YMmHGBzLOlHDQUSlKpfqhKq44jKW0aNbFYstNAb5LA=; b=WUwTKBphp/Rddm8eEENqz6FXGqQQBt0g8y9TCGZ3I23OtPxPEw5lUHTjqtYc/1dA/t6AUA pNNcc7fjUDebVIieEM00IFPd373gDHaUZThlfwuJT/8m7WuU4pmT+2GXe+ErZGXDkutncY mh3+WhEMZ8naChLOqMHz0OBNATeSI3bL2G8u6nOF+G5Y3n0XEu5uVICu6b7gXTBEPHBKZ/ pbC+t+ZR/DTKBxwkjb2m2mBkkIH3b9DKZ7F6g2Q7Zirn0Ug1bUNkpnGtmWIyIoYhQ95ypY A6DllnTO5w4PwOFtiqYAY0K6QbzZhIAhHIXvY3A4Bx6uMi6sZ72JJRwwmXBpAw== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 3/3] update.sh: Remove ABUSECH_BOTNETC2 lists from users systems during update. Date: Thu, 20 Feb 2025 22:13:25 +0100 Message-ID: <20250220211325.3273650-3-adolf.belka@ipfire.org> In-Reply-To: <20250220211325.3273650-1-adolf.belka@ipfire.org> References: <20250220211325.3273650-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: VHSOBVD56TXH5CAZB5I542RT5EURJBQX X-Message-ID-Hash: VHSOBVD56TXH5CAZB5I542RT5EURJBQX X-MailFrom: adolf.belka@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: - This removes ABUSECH_BOTNETC2 from users system during the update in the same way as done previously with ALIENVAULT and SPAMHAUS_EDROP. - As next is still in CU192 I could not add these lines into the CU193 update.sh so I have added it to the CU192 update.sh - If not appropriate then let me know and when the CU193 is created in next I will redo the patch and re-submit it. Signed-off-by: Adolf Belka --- config/rootfiles/core/192/update.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/core/192/update.sh b/config/rootfiles/core/192/update.sh index f81857053..d528a190f 100644 --- a/config/rootfiles/core/192/update.sh +++ b/config/rootfiles/core/192/update.sh @@ -17,7 +17,7 @@ # along with IPFire; if not, write to the Free Software # # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # -# Copyright (C) 2024 IPFire-Team . # +# Copyright (C) 2025 IPFire-Team . # # # ############################################################################ # @@ -159,6 +159,13 @@ rm -rvf \ /var/log/rrd/collectd/localhost/processes* \ /var/log/rrd/collectd/localhost/thermal-cooling_device* +# Remove any entry for ABUSECH_BOTNETC2 from the ipblocklist modified file +# and the associated ipblocklist files from the /var/lib/ipblocklist directory +sed -i '/ABUSECH_BOTNETC2=/d' /var/ipfire/ipblocklist/modified +if [ -e /var/lib/ipblocklist/ABUSECH_BOTNETC2.conf ]; then + rm /var/lib/ipblocklist/ABUSECH_BOTNETC2.conf +fi + # Apply local configuration to sshd_config /usr/local/bin/sshctrl