Control Web Panel

Security => CSF Firewall => Topic started by: jeffcosta94 on March 23, 2025, 02:56:13 AM

Title: Firewall CFS not enable alma8 - al8 (fixed)
Post by: jeffcosta94 on March 23, 2025, 02:56:13 AM
Today I had a problem installing a new server with alma8, the firewall was not activating, I managed to solve this using the commands below, I hope this helps


*************
dnf update
sudo dnf install perl-libwww-perl unzip net-tools iptables firewalld perl-CPAN tar nano -y

cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

#restart CFS

sudo csf -r
************
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: Netino on March 23, 2025, 05:42:15 PM
Perhaps you check there are a 'install.cwp.sh' script in ./csf directory?

Now, as you did run normal installation script, run 'uninstall.sh' (the normal uninstallation script), and install again, now running 'install.cwp.sh'.

Regards,
Netino
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: daowen on March 24, 2025, 08:07:06 PM
Quote
Now, as you did run normal installation script, run 'uninstall.sh' (the normal uninstallation script), and install again, now running 'install.cwp.sh'.

Did that and CWP install. CWP is showing the firewall is off but when I run the enable from the panel it says the firewall is already running. Will it still handle the tables?
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: overseer on March 24, 2025, 09:31:43 PM
Sometimes the CWP web GUI gets out of sync if you do things behind its back in the CLI. Either reboot the whole server and start CSF from the web GUI, or try stopping in the CLI and then starting it up in the web GUI.
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: Netino on March 25, 2025, 02:45:25 AM
Did that and CWP install. CWP is showing the firewall is off but when I run the enable from the panel it says the firewall is already running. Will it still handle the tables?

Try to post here the last part of the file /var/log/lfd.log, right after you try to restart csf:
Code: [Select]
tail -50 /var/log/lfd.log
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: daowen on March 26, 2025, 10:14:18 AM
Not to worry. Seems the system synced up and it working as per spec now.

Thanks for the replies!
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: Namaste on April 17, 2025, 04:46:06 PM
Quote
Now, as you did run normal installation script, run 'uninstall.sh' (the normal uninstallation script), and install again, now running 'install.cwp.sh'.

Did that and CWP install. CWP is showing the firewall is off but when I run the enable from the panel it says the firewall is already running. Will it still handle the tables?

confirmed.  CWP icon says disabled but when I enable it, it says its already running................................
Title: Re: Firewall CFS not enable alma8 - al8 (fixed)
Post by: overseer on April 17, 2025, 05:11:29 PM
Yes, observed behavior -- CWP GUI out of sync. See my post ^ above.