Author Topic: Firewall Disabled  (Read 13460 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Firewall Disabled
« on: June 20, 2017, 07:27:21 AM »
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.

« Last Edit: June 20, 2017, 07:43:38 AM by jeniha »

Offline
***
Re: Firewall Disabled
« Reply #1 on: August 26, 2017, 11:48:41 AM »
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
« Last Edit: August 26, 2017, 11:50:51 AM by locvfx »