{"id":7739,"date":"2023-06-29T11:52:26","date_gmt":"2023-06-29T11:52:26","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=7739"},"modified":"2026-02-21T10:14:54","modified_gmt":"2026-02-21T10:14:54","slug":"how-to-install-csf-firewall-via-whm-panel","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-install-csf-firewall-via-whm-panel\/","title":{"rendered":"How To Install CSF Firewall Via WHM Panel?"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,393<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Linux servers may benefit from CSF\u2019s Login\/Intrusion Detection and Security features, as well as its Stateful Packet Inspection (SPI) firewall. Protecting your server from brute force assaults and enhancing security are the primary goals of this program.<\/p>\n\n\n\n<p>WHM users can use this software as a free WHM plugin. To successfully install CSF, follow these instructions:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>STEPS:-<\/strong><\/h3>\n\n\n\n<p>1. Log into your server as root, using SSH.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@server_ip<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"501\" height=\"43\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img1.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7741\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img1.png 501w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img1-300x26.png 300w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p>2. Now, follow these steps to install the CSF firewall.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># cd \/<em>usr<\/em>\/local\/src<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"386\" height=\"23\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img2.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7742\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img2.png 386w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img2-300x18.png 300w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<p>3. Download the tar file of the CSF firewall.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># wget https:\/\/download.configserver.com\/csf.tgz<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"583\" height=\"29\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img3-1.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7744\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img3-1.png 583w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img3-1-300x15.png 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/figure>\n\n\n\n<p>4. Now extract the tar file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># tar -xzf csf.tgz<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"321\" height=\"42\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img4.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7745\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img4.png 321w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img4-300x39.png 300w\" sizes=\"(max-width: 321px) 100vw, 321px\" \/><\/figure>\n\n\n\n<p>5. Now go to the CSF directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cd csf<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"229\" height=\"38\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img5.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7746\"\/><\/figure>\n\n\n\n<p>6. Now run the script.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># sh install.sh<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"34\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img6.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7747\"\/><\/figure>\n\n\n\n<p>Now you can find the Config Security Firewall ( CSF ) option in the \u2018Plugins\u2019 section on the whm panel. From here, you can manage the CSF firewall.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"528\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img7.png\" alt=\"How To Install CSF Firewall Via WHM Panel?\" class=\"wp-image-7748\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img7.png 640w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/csf-img7-300x248.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1,393 Views Linux servers may benefit from CSF\u2019s Login\/Intrusion Detection and Security features, as well as its Stateful Packet Inspection (SPI) firewall. Protecting your server from brute force assaults and enhancing security are the primary goals of this program. WHM users can use this software as a free WHM plugin. To successfully install CSF, follow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[178,179,161,162],"class_list":["post-7739","post","type-post","status-publish","format-standard","hentry","category-web-hosting","tag-configserver-security","tag-csf","tag-csf-firewall","tag-whm"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=7739"}],"version-history":[{"count":3,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7739\/revisions"}],"predecessor-version":[{"id":9602,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7739\/revisions\/9602"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=7739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=7739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=7739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}