Firewall does not get enabled in CentOS8 install of CWP

Started by rkhyd, August 27, 2021, 01:48:11 AM

Previous topic - Next topic

rkhyd

I have installed CWP on CentOS8. The firewall is not getting enabled.
When i run the commands to enable from the terminal, i get below errors.

[root@server ~]# csf -x; csf -e
*Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26.
Compilation failed in require at /sbin/csf line 21.
BEGIN failed--compilation aborted at /sbin/csf line 21.
*Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26.
Compilation failed in require at /sbin/csf line 21.
BEGIN failed--compilation aborted at /sbin/csf line 21.

Any idea on how to fix them?
Cheers
Ravi Kumar

studio4host

VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Jeff

Quote from: rkhyd on August 27, 2021, 01:48:11 AM
I have installed CWP on CentOS8. The firewall is not getting enabled.

It's because iptables isn't installed.

Just run this command:

yum install iptables

stevendove

Stephen Dove


overseer

You will with CentOS 8 Stream. Better to ELevate to AlmaLinux or start fresh with AlmaLinux 8 or 9.

Starburst

What does line 21 and 26 say in /etc/csf/csf.conf?

CentOS 8 EOL happened long ago.
It's dead.

You want to run either AlmaLinux 8 or 9 for CWP.

JM_Stoorvogel

The same issues here on AlmaLinux 8. Had to manually install iptables and ConfigServer.

The anti spam measures on this forum have a higher quality than the product itself unfortunately...

JM_Stoorvogel

#8
Nevermind.

Don't install firewalld or mask it.

install iptables and bind-tools and run csf -r

Starburst

If only someone posted (several times) a guide for AL8/9 that had all this...   ::)

Purelaise

Quote from: Starburst on March 14, 2025, 12:37:42 AM
If only someone posted (several times) a guide for AL8/9 that had all this...   ::)

Where is the guide please? Just ran a new install today and the Firewall is still disabled. Everything else is fine


Starburst

@Purelaise if you still are having problems, Send me a PM, I can login after you do a fresh install of AL8 and get this setup for you.