{"id":1527,"date":"2025-06-29T10:00:23","date_gmt":"2025-06-29T04:30:23","guid":{"rendered":"https:\/\/lookouthost.com\/blog\/?p=1527"},"modified":"2025-06-29T10:00:53","modified_gmt":"2025-06-29T04:30:53","slug":"remove-csf-and-lfd-in-directadmin-setup-imunify360","status":"publish","type":"post","link":"https:\/\/lookouthost.com\/blog\/remove-csf-and-lfd-in-directadmin-setup-imunify360\/","title":{"rendered":"Remove CSF and LFD in DirectAdmin (Setup Imunify360)"},"content":{"rendered":"<p>In order for imunify360 to work independtly we must disable csf and remove LFD also. <\/p><p>Follow the steps given below for the set up process:<\/p><h4 class=\"wp-block-heading\"><strong>Log in using SSH<\/strong><\/h4><p>We must be logged in as root using SSH. If we don\u2019t know how to connect, please read this post for details.<\/p><h4 class=\"wp-block-heading\"><strong>Setup the server<\/strong><\/h4><p>DirectAdmin includes CSF (Config Server Firewall, a free and sophisticated firewall for most Linux distributions and Linux-based virtual private servers) and LFD.<\/p><p>It is critical to disable LFD; else, sd will produce false positives. To turn off LFD, use the following commands:<\/p><pre class=\"wp-block-code\"><code>sed -i 's|^LF_DAEMON = \"1\"|LF_DAEMON = \"0\"|g' \/etc\/csf\/csf.conf\nsed -i '\/^lfd=\/d' \/usr\/local\/directadmin\/data\/admin\/services.status\nservice directadmin restart\ncsf -tf\ncsf -df\ncsf -ra\n\nThis will help LFD remove from DA so it is not monitored.<\/code><\/pre><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"793\" src=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image-1024x793.png\" alt=\"\" class=\"wp-image-1528\" srcset=\"https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image-1024x793.png 1024w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image-300x232.png 300w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image-768x595.png 768w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image-600x465.png 600w, https:\/\/lookouthost.com\/blog\/wp-content\/uploads\/2025\/06\/image.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><h4 class=\"wp-block-heading\"><strong>Install Imunify<\/strong><\/h4><p>After we have accessed the server run the following command from the command line to register the Imunify360 agent.<\/p><pre class=\"wp-block-code\"><code>wget https:\/\/repo.imunify360.cloudlinux.com\/defence360\/i360deploy.sh -O i360deploy.sh\nbash i360deploy.sh\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>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\u2019t 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: Install Imunify After we&hellip; <\/p>\n","protected":false},"author":1,"featured_media":1528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-directadmin"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/1527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/comments?post=1527"}],"version-history":[{"count":1,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/1527\/revisions"}],"predecessor-version":[{"id":1529,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/posts\/1527\/revisions\/1529"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media\/1528"}],"wp:attachment":[{"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/media?parent=1527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/categories?post=1527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookouthost.com\/blog\/wp-json\/wp\/v2\/tags?post=1527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}