Control Web Panel

Security => CSF Firewall => Topic started by: rkhyd on August 27, 2021, 01:48:11 AM

Title: Firewall does not get enabled in CentOS8 install of CWP
Post by: rkhyd on August 27, 2021, 01:48:11 AM
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.
 
Code: [Select]
[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
Title: Re: Firewall does not get enabled in CentOS8 install of CWP
Post by: studio4host on August 27, 2021, 08:30:02 AM
you can try to check this or google more if that will not help
https://www.knot35.com/how-to-fix-error-the-path-to-iptables-is-either-not-set-or-incorrect-for-iptables-sbin-ip6tables/