Author Topic: Cannot enable Firewall  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Cannot enable Firewall
« on: March 17, 2026, 02:41:19 AM »
I ran [root@server ~]# csf -e
and it shows the following error

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 39.
Compilation failed in require at /usr/sbin/csf line 34.
BEGIN failed--compilation aborted at /usr/sbin/csf line 34.

How should I fix it?

Offline
*****
Re: Cannot enable Firewall
« Reply #1 on: March 17, 2026, 10:53:10 PM »
Please advise the following:

What distro are you running CWP on?

New or Existing installation?

What csf version? [csf -v]

Offline
*
Re: Cannot enable Firewall
« Reply #2 on: May 31, 2026, 11:06:16 AM »
Getting the exact same error on a fresh install, almalinux9

Offline
*****
Re: Cannot enable Firewall
« Reply #3 on: May 31, 2026, 02:41:44 PM »
How did you install? Here is Starburst's recommended install method (using the DVD distribution, not minimal):
These are the first steps we do with AL9 servers, should work on AL8, but not guaranteed, as I mentioned this is AL9.

Code: [Select]
dnf update ca-certificates
Code: [Select]
dnf install dnf-plugins-core
Code: [Select]
dnf install elrepo-release epel-release -y
Code: [Select]
dnf config-manager --set-enabled crbThat is the new Power Tools for EL9.

Code: [Select]
dnf --refresh update
Code: [Select]
dnf install nano wget ipset ebtables iptables ipset-service uuid uuid-devel libuuid-devel m4 pcre pcre-devel zlib-devel perl-DBD-MySQL perl-IPC-Cmd perl-Pod-Html perl-Sys-Hostname perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph libtool s-nail htop sysstat python3-perf nmap net-tools make quota cockpit* -y
Code: [Select]
dnf install clamav* clamd
Then proceed to install CWP per their instructions.