From: Adolf Belka <adolf.belka@ipfire.org>
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 [thread overview]
Message-ID: <20250220211325.3273650-3-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20250220211325.3273650-1-adolf.belka@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]
- 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 <adolf.belka(a)ipfire.org>
---
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 <info(a)ipfire.org>. #
+# Copyright (C) 2025 IPFire-Team <info(a)ipfire.org>. #
# #
############################################################################
#
@@ -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
--
2.48.1
prev parent reply other threads:[~2025-02-20 21:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 21:13 [PATCH 1/3] sources: Remove ABUSECH_BOTNETC2 from ipblocklist sources Adolf Belka
2025-02-20 21:13 ` [PATCH 2/3] backup.pl: Remove ABUSECH_BOTNETC2 lists from backup during restore Adolf Belka
2025-02-20 21:13 ` Adolf Belka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250220211325.3273650-3-adolf.belka@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox