Control Web Panel
Security => CSF Firewall => Topic started 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.
[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
-
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/
-
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