Firewall Disabled

Started by jeniha, June 20, 2017, 07:27:21 AM

Previous topic - Next topic

jeniha

Hello, i notic today my firewall on CWP 7 is disabled and i cant Enabled.Stays disabled.
Quote[root@server ~]# systemctl status lfd.service
● lfd.service - ConfigServer Firewall & Security - lfd
   Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-06-20 09:31:41 EEST; 1h 11min ago

Jun 20 09:31:41 cbox.biz systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Jun 20 09:31:41 cbox.biz lfd[2214]: *Error* Invalid configuration line [PORTS_sshd = "29] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/GetIPs.pm line 22.
Jun 20 09:31:41 cbox.biz lfd[2214]: Compilation failed in require at /usr/sbin/lfd line 21.
Jun 20 09:31:41 cbox.biz lfd[2214]: BEGIN failed--compilation aborted at /usr/sbin/lfd line 21.
Jun 20 09:31:41 cbox.biz systemd[1]: lfd.service: control process exited, code=exited status=255
Jun 20 09:31:41 cbox.biz systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
Jun 20 09:31:41 cbox.biz systemd[1]: Unit lfd.service entered failed state.
Jun 20 09:31:41 cbox.biz systemd[1]: lfd.service failed.


locvfx

#1
Base on your error log
*Error* Invalid configuration line [PORTS_sshd = "29] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/GetIPs.pm line 22.

Have a look on it, then some extra steps:




In Centos 7 you must disable firewalld
Quote
systemctl disable firewalld
systemctl stop firewalld

Restart csf
Quote
csf -x
csf -e


if you can't restart csf, delete the error log, then everything will be fine
Quote
rm /etc/csf/csf.error
csf -x
csf -e