Control Web Panel
Security => CSF Firewall => Topic started 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
************
-
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
-
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?
-
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.
-
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
-
Not to worry. Seems the system synced up and it working as per spec now.
Thanks for the replies!
-
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................................
-
Yes, observed behavior -- CWP GUI out of sync. See my post ^ above.