Hi there,
I was trying to enable CSF. So, I installed CSF and enabled. Then I tried to visit Firewall and now I see a broken page and an error.
Screenshot: https://i.imgur.com/QqbZ6Yh.png
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 26. Compilation failed in require at /usr/local/csf/lib/ConfigServer/DisplayUI.pm line 20. BEGIN failed--compilation aborted at /usr/local/csf/lib/ConfigServer/DisplayUI.pm line 20. Compilation failed in require at /usr/local/csf/bin/cyberpanel.pl line 14. BEGIN failed--compilation aborted at /usr/local/csf/bin/cyberpanel.pl line 14.
Hi @josephgodwinke bro,
I followed your instruction and got a few errors:
mkdir: cannot create directory ‘/etc/csf’: File exists
mkdir: cannot create directory ‘webmin/csf/images’: File exists
mkdir: cannot create directory ‘ui/images’: File exists
mkdir: cannot create directory ‘da/images’: File exists
mkdir: cannot create directory ‘interworx/images’: File exists
cp: cannot stat 'Geo': No such file or directory
chmod: cannot access '/var/log/lfd.log*': No such file or directory
chmod: cannot access '/etc/csf/*.cgi': No such file or directory
chmod: cannot access '/etc/csf/*.php': No such file or directory
chmod: cannot access '/etc/csf/*.py': No such file or directory
chcon: failed to get security context of '/etc/logrotate.d': No data available
failed to change mode of '/etc/csf/*.cgi' from 0700 (rwx------) to 0700 (rwx------)
failed to change mode of '/etc/csf/*.php' from 0700 (rwx------) to 0700 (rwx------)
failed to change mode of '/etc/csf/*.py' from 0700 (rwx------) to 0700 (rwx------)
mkdir: cannot create directory ‘/home/cyberpanel/plugins’: File exists
When I tried to test it using the command you mentioned I got: $ root@server:~/csf# perl /usr/local/csf/bin/csftest.pl
Testing ip_tables/iptable_filter...open3: exec of /sbin/iptables -I OUTPUT -p tcp --dport 9999 -j ACCEPT failed: No such file or directory at /usr/local/csf/bin/csftest.pl line 144.
And I am getting the same error on Firewall page:
*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 /usr/local/csf/lib/ConfigServer/DisplayUI.pm line 20. BEGIN failed--compilation aborted at /usr/local/csf/lib/ConfigServer/DisplayUI.pm line 20. Compilation failed in require at /usr/local/csf/bin/cyberpanel.pl line 14. BEGIN failed--compilation aborted at /usr/local/csf/bin/cyberpanel.pl line 14.
@josephgodwinke
Yes, that is the CSF settings page(Security > CSF).
But when I try to visit the Firewall page (Security > Firewall) CyberPanel redirects me to ConfigServer Security & Firewall settings page(Security > ConfigServer Services > ConfigServer Security & Firewall).
Yes this is correct firewalld and configserver use case is one and same thing its like having pureftpd and vsftpd. Installing csf replaces firewall url with configserver