Remove CSF and LFD in DirectAdmin (Setup Imunify360)

In order for imunify360 to work independtly we must disable csf and remove LFD also.

Follow the steps given below for the set up process:

Log in using SSH

We must be logged in as root using SSH. If we don’t know how to connect, please read this post for details.

Setup the server

DirectAdmin includes CSF (Config Server Firewall, a free and sophisticated firewall for most Linux distributions and Linux-based virtual private servers) and LFD.

It is critical to disable LFD; else, sd will produce false positives. To turn off LFD, use the following commands:

sed -i 's|^LF_DAEMON = "1"|LF_DAEMON = "0"|g' /etc/csf/csf.conf
sed -i '/^lfd=/d' /usr/local/directadmin/data/admin/services.status
service directadmin restart
csf -tf
csf -df
csf -ra

This will help LFD remove from DA so it is not monitored.

Install Imunify

After we have accessed the server run the following command from the command line to register the Imunify360 agent.

wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
bash i360deploy.sh
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments