Firewall CFS not enable alma8 - al8 (fixed)

Started by jeffcosta94, March 23, 2025, 02:56:13 AM

Previous topic - Next topic

jeffcosta94

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
************

Netino

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

daowen

QuoteNow, 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?

overseer

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.

Netino

Quote from: daowen on March 24, 2025, 08:07:06 PM
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:
tail -50 /var/log/lfd.log

daowen

Not to worry. Seems the system synced up and it working as per spec now.

Thanks for the replies!

Namaste

Quote from: daowen on March 24, 2025, 08:07:06 PM
QuoteNow, 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................................
Listen to everything Pixelpadre says.

overseer

Yes, observed behavior -- CWP GUI out of sync. See my post ^ above.