- 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 <[email protected]>
---
 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


Reply via email to