From: Adolf Belka Date: Thu, 20 Feb 2025 21:13:25 +0000 (+0100) Subject: update.sh: Remove ABUSECH_BOTNETC2 lists from users systems during update. X-Git-Tag: v2.29-core193~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efcb7aae267a006836f290468e6d2cff8c14fac7;p=ipfire-2.x.git update.sh: Remove ABUSECH_BOTNETC2 lists from users systems during update. - 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 Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/193/update.sh b/config/rootfiles/core/193/update.sh index 0f4a4c5a4..5a5f83444 100644 --- a/config/rootfiles/core/193/update.sh +++ b/config/rootfiles/core/193/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 . # # # ############################################################################ # @@ -49,6 +49,13 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# 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 # Start services