{"id":1277,"date":"2023-09-06T15:21:02","date_gmt":"2023-09-06T14:21:02","guid":{"rendered":"https:\/\/harmonweb.com\/blog\/?p=1277"},"modified":"2023-09-06T15:21:02","modified_gmt":"2023-09-06T14:21:02","slug":"what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel","status":"publish","type":"post","link":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/","title":{"rendered":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel"},"content":{"rendered":"\n<p>Config Server Firewall or CSF is a Stateful Packet Inspection (SPI) firewall that is a powerful and must-install application that you can install via WHM on cPanel. It works as a system for intrusion detection and a prime security application for your Linux server. As a security tool, CSF protects your server against various common threats such as brute force attacks while improving the overall server security.<\/p>\n\n\n\n<p>The CSF application is also available for other control panel applications to install and deploy.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d7182ad840e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d7182ad840e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#To_Install_CSF_Firewall\" >To Install CSF Firewall<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#To_Configure_the_CSF_Firewall\" >To Configure the CSF&nbsp;Firewall<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#1_Settings_for_Port_Filtering_Configuration_%E2%80%93_IPv4_Port\" >1. Settings for Port Filtering Configuration \u2013 IPv4 Port<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#2_Activate_the_Syslog_Monitoring\" >2. Activate the Syslog Monitoring<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#3_Activate_the_Detection_of_Suspicious_Processes\" >3. Activate the Detection of Suspicious Processes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#4_Activate_Spam_Protection_and_Detection_of_Suspicious_Emails\" >4. Activate Spam Protection and Detection of Suspicious Emails<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#5_Save_the_Changes_and_Confirm_the_Status\" >5. Save the Changes and Confirm the Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#Disable_Testing\" >Disable Testing<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"To_Install_CSF_Firewall\"><\/span>To Install CSF Firewall<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To install CSF on cPanel, you have to use your server\u2019s SSH access.<\/p>\n\n\n\n<p>1. Log in to the WHM panel with the root account.<\/p>\n\n\n\n<p>2. Select the<strong>\u00a0Server Configuration<\/strong>\u00a0option from the navigation menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf-1024x383.png?v=1662904601\" alt=\"\" class=\"wp-image-1278\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf-1024x383.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf-300x112.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf-768x287.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf-1536x575.png 1536w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_server_conf.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Click on\u00a0<strong>Terminal<\/strong>\u00a0to open the WHM terminal window.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"344\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_terminal-1024x344.png?v=1662904633\" alt=\"\" class=\"wp-image-1279\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_terminal-1024x344.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_terminal-300x101.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_terminal-768x258.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_terminal.png 1445w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Copy\/enter this code in the\u00a0<strong>Terminal<\/strong>\u00a0window.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/usr\/local\/src\/\r\nwget https:\/\/download.configserver.com\/csf.tgz\r\ntar -xzf csf.tgz\r\ncd csf\r\nsh install.sh<\/code><\/pre>\n\n\n\n<p>WHM will run the command and automatically download the compatible version of CSF for cPanel.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"331\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_install_csf-1024x331.png?v=1662904736\" alt=\"\" class=\"wp-image-1280\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_install_csf-1024x331.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_install_csf-300x97.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_install_csf-768x248.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_install_csf.png 1352w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5. Press&nbsp;<strong>Enter<\/strong>&nbsp;to run the installation.<\/p>\n\n\n\n<p>The WHM panel will begin the installation process of the CSF application and display a success message for the completed installation.<\/p>\n\n\n\n<p>Once you install the CSF application, you will have to configure it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"To_Configure_the_CSF_Firewall\"><\/span>To Configure the CSF&nbsp;Firewall<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>1. Go back to the\u00a0<strong>Home<\/strong>\u00a0of your WHM dashboard and select the\u00a0<strong>Plugins<\/strong>\u00a0option from the navigation menu.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins-1024x462.png?v=1662904779\" alt=\"\" class=\"wp-image-1281\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins-1024x462.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins-300x135.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins-768x346.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins-1536x692.png 1536w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_plugins.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>2. Here, you will see the option\u00a0<strong>ConfigServer Security &amp; Firewall.<\/strong>\u00a0Click on it.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"148\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserver_security_firewall.png\" alt=\"\" class=\"wp-image-1282\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserver_security_firewall.png 601w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserver_security_firewall-300x74.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/figure>\n\n\n\n<p>Here, you will find a variety of options to&nbsp;configure the&nbsp;<strong>ConfigServer Security &amp; Firewall&nbsp;<\/strong>application.<\/p>\n\n\n\n<p>3. Click on the&nbsp;<strong>csf<\/strong>&nbsp;tab.<\/p>\n\n\n\n<p>4. Scroll down a little to the\u00a0<strong>csf \u2013 ConfigServer Firewall<\/strong>\u00a0section and click on the\u00a0<strong>Firewall Configuration<\/strong>\u00a0button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserverwhm_configserver_security_firewall_csf-min-1024x719.png?v=1662904833\" alt=\"\" class=\"wp-image-1283\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserverwhm_configserver_security_firewall_csf-min-1024x719.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserverwhm_configserver_security_firewall_csf-min-300x211.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserverwhm_configserver_security_firewall_csf-min-768x539.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_configserverwhm_configserver_security_firewall_csf-min.png 1371w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You will find all the options for the firewall configurations. We will see a quick rundown on the important settings to get you started.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Settings_for_Port_Filtering_Configuration_%E2%80%93_IPv4_Port\"><\/span>1. Settings for Port Filtering Configuration \u2013 IPv4 Port<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>For the IPv4 Port, you will notice these ports as open by default:<\/p>\n\n\n\n<p>TCP_IN = \u201c20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,26\u201d<\/p>\n\n\n\n<p>TCP_OUT = \u201c20,21,22,25,37,43,53,80,110,113,443,587,873,2086,2087,2089,2703\u201d<\/p>\n\n\n\n<p>UDP_IN 20,21,53<\/p>\n\n\n\n<p>UDP_OUT 20,21,53,113,123,873,6277<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"797\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_ipv4_port-1024x797.png?v=1662904856\" alt=\"\" class=\"wp-image-1284\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_ipv4_port-1024x797.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_ipv4_port-300x233.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_ipv4_port-768x597.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_ipv4_port.png 1364w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once you have changed your SSH port number, add this new port on the&nbsp;<strong>IPv4 Port Settings<\/strong>&nbsp;and\/or&nbsp;<strong>IPv6 Port Settings<\/strong>. You can also&nbsp;add a specific port for a newly&nbsp;installed application on the server from&nbsp;this section.<\/p>\n\n\n\n<p>We recommend the users who deploy the R1soft\/Idera external backup solution to allow the inbound traffic for TCP port 1167 in the port TCP_IN section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Activate_the_Syslog_Monitoring\"><\/span>2. Activate the Syslog Monitoring<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Scroll down to the\u00a0<strong>General Settings<\/strong>\u00a0section and set the\u00a0<strong>SYSLOG_CHECK<\/strong>\u00a0 to\u00a0<strong>1800<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"181\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_syslog_check-1024x181.png?v=1662904876\" alt=\"\" class=\"wp-image-1285\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_syslog_check-1024x181.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_syslog_check-300x53.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_syslog_check-768x135.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_syslog_check.png 1338w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Activate_the_Detection_of_Suspicious_Processes\"><\/span>3. Activate the Detection of Suspicious Processes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Scroll down to the&nbsp;<strong>Process Tracking<\/strong>&nbsp;section.<\/p>\n\n\n\n<p>Set \u201c<strong>PT_ALL_USERS<\/strong>\u201d to \u201c<strong>ON<\/strong>\u201c<\/p>\n\n\n\n<p>Set \u201c<strong>PT_DELETED<\/strong>\u201d to \u201c<strong>ON<\/strong>\u201c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"662\" height=\"551\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_pt_settings-min.png\" alt=\"\" class=\"wp-image-1286\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_pt_settings-min.png 662w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_pt_settings-min-300x250.png 300w\" sizes=\"auto, (max-width: 662px) 100vw, 662px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Activate_Spam_Protection_and_Detection_of_Suspicious_Emails\"><\/span>4. Activate Spam Protection and Detection of Suspicious Emails<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>With CSF, you can secure your server from spams and bulk email activity.<\/p>\n\n\n\n<p>Scroll down to the\u00a0<strong>SMTP Settings<\/strong>\u00a0section.<\/p>\n\n\n\n<p>Switch the\u00a0<strong>SMTP_BLOCK<\/strong>\u00a0to\u00a0<strong>On<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"295\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_smtp_settings.png\" alt=\"\" class=\"wp-image-1287\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_smtp_settings.png 661w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_smtp_settings-300x134.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>Scroll down to the\u00a0<strong>Login Failure Blocking and Alerts<\/strong>\u00a0section<\/p>\n\n\n\n<p>Locate the\u00a0<strong>LF_SCRIPT_LIMIT<\/strong>\u00a0and set it to\u00a0<strong>250<\/strong>. It will detect the scripts sending more than 250 emails in an hour.<\/p>\n\n\n\n<p>Switch the\u00a0<strong>LF_SCRIPT_ALERT<\/strong>\u00a0to\u00a0<strong>On<\/strong>. It will alert the system administrator via email when the\u00a0<strong>LF_SCRIPT_LIMIT\u00a0<\/strong>is breached.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"438\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_script_alert.png\" alt=\"\" class=\"wp-image-1288\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_script_alert.png 645w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_script_alert-300x204.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Save_the_Changes_and_Confirm_the_Status\"><\/span>5. Save the Changes and Confirm the Status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Scroll down to the end of the page and click the\u00a0<strong>Change<\/strong>\u00a0button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"387\" height=\"213\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_restart_csf_ifd.png\" alt=\"\" class=\"wp-image-1289\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_restart_csf_ifd.png 387w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_restart_csf_ifd-300x165.png 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/figure>\n\n\n\n<p>Click the&nbsp;<strong>Return<\/strong>&nbsp;button to go back to the main dashboard of the&nbsp;<strong>ConfigServer Security &amp; Firewall&nbsp;<\/strong>application.<\/p>\n\n\n\n<p>After confirming that you have made all the necessary configurations, you need to:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Disable_Testing\"><\/span>Disable Testing<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Currently, your CSF application is running in the<strong>&nbsp;Test Mode<\/strong>. You have to deactivate the mode.<\/p>\n\n\n\n<p>Reaccess the\u00a0<strong>csf \u2013 ConfigServer Firewall<\/strong>\u00a0section and click the\u00a0<strong>Firewall Configuration<\/strong>\u00a0button.<\/p>\n\n\n\n<p><code>Locate the\u00a0<strong>TESTING<\/strong>\u00a0option in the\u00a0<strong>Initial Settings<\/strong>\u00a0section.<\/code><\/p>\n\n\n\n<p>Click on the\u00a0<strong>Off<\/strong>\u00a0switch.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"191\" src=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_testing-1024x191.png?v=1662905112\" alt=\"\" class=\"wp-image-1290\" srcset=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_testing-1024x191.png 1024w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_testing-300x56.png 300w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_testing-768x143.png 768w, https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/whm_csf_testing.png 1361w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Again, you have to repeat the&nbsp;process to save the configurations. Click the&nbsp;<strong>Change<\/strong>&nbsp;button, and then&nbsp;the&nbsp;<strong>Restart csf+isd<\/strong>&nbsp;button.<\/p>\n\n\n\n<p>With it, you will have successfully installed and activated the\u00a0CSF Firewall on your cPanel server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It works as a system for intrusion detection and a prime security application for your Linux server. As a security tool, CSF protects your server against various common threats such as brute force attacks while improving the overall server security.<\/p>\n","protected":false},"author":1,"featured_media":1291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[158],"tags":[],"class_list":["post-1277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel | HarmonWeb Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel | HarmonWeb Blog\" \/>\n<meta property=\"og:description\" content=\"It works as a system for intrusion detection and a prime security application for your Linux server. As a security tool, CSF protects your server against various common threats such as brute force attacks while improving the overall server security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"HarmonWeb Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-06T14:21:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"625\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"John Adegoke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Adegoke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/\"},\"author\":{\"name\":\"John Adegoke\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/person\\\/e9bc75c3e7e30a261690c47ec872a8fc\"},\"headline\":\"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\\\/cPanel\",\"datePublished\":\"2023-09-06T14:21:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/\"},\"wordCount\":678,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/csf.png\",\"articleSection\":[\"Troubleshooting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/\",\"name\":\"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\\\/cPanel | HarmonWeb Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/csf.png\",\"datePublished\":\"2023-09-06T14:21:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/csf.png\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/csf.png\",\"width\":1200,\"height\":625},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\\\/cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\",\"name\":\"HarmonWeb Blog\",\"description\":\"HarmonWeb\",\"publisher\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#organization\",\"name\":\"HarmonWeb\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/cropped-HARMON-WEB-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/cropped-HARMON-WEB-LOGO-2.png\",\"width\":831,\"height\":172,\"caption\":\"HarmonWeb\"},\"image\":{\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/#\\\/schema\\\/person\\\/e9bc75c3e7e30a261690c47ec872a8fc\",\"name\":\"John Adegoke\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058\",\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058\",\"contentUrl\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058\",\"caption\":\"John Adegoke\"},\"sameAs\":[\"https:\\\/\\\/harmonweb.com\\\/blog\"],\"url\":\"https:\\\/\\\/harmonweb.com\\\/blog\\\/author\\\/harmonweb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel | HarmonWeb Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel | HarmonWeb Blog","og_description":"It works as a system for intrusion detection and a prime security application for your Linux server. As a security tool, CSF protects your server against various common threats such as brute force attacks while improving the overall server security.","og_url":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/","og_site_name":"HarmonWeb Blog","article_published_time":"2023-09-06T14:21:02+00:00","og_image":[{"width":1200,"height":625,"url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png","type":"image\/png"}],"author":"John Adegoke","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Adegoke","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#article","isPartOf":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/"},"author":{"name":"John Adegoke","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/person\/e9bc75c3e7e30a261690c47ec872a8fc"},"headline":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel","datePublished":"2023-09-06T14:21:02+00:00","mainEntityOfPage":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/"},"wordCount":678,"commentCount":0,"publisher":{"@id":"https:\/\/harmonweb.com\/blog\/#organization"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png","articleSection":["Troubleshooting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/","url":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/","name":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel | HarmonWeb Blog","isPartOf":{"@id":"https:\/\/harmonweb.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png","datePublished":"2023-09-06T14:21:02+00:00","breadcrumb":{"@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#primaryimage","url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2022\/09\/csf.png","width":1200,"height":625},{"@type":"BreadcrumbList","@id":"https:\/\/harmonweb.com\/blog\/what-is-csf-firewall-and-how-to-install-it-on-your-vps-server-via-whm-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/harmonweb.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What Is CSF Firewall And How To Install It On Your VPS Server via WHM\/cPanel"}]},{"@type":"WebSite","@id":"https:\/\/harmonweb.com\/blog\/#website","url":"https:\/\/harmonweb.com\/blog\/","name":"HarmonWeb Blog","description":"HarmonWeb","publisher":{"@id":"https:\/\/harmonweb.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/harmonweb.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/harmonweb.com\/blog\/#organization","name":"HarmonWeb","url":"https:\/\/harmonweb.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2020\/06\/cropped-HARMON-WEB-LOGO-2.png","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/uploads\/2020\/06\/cropped-HARMON-WEB-LOGO-2.png","width":831,"height":172,"caption":"HarmonWeb"},"image":{"@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/harmonweb.com\/blog\/#\/schema\/person\/e9bc75c3e7e30a261690c47ec872a8fc","name":"John Adegoke","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058","url":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058","contentUrl":"https:\/\/harmonweb.com\/blog\/wp-content\/litespeed\/avatar\/0843e926db683e41ace2aee54210b841.jpg?ver=1775630058","caption":"John Adegoke"},"sameAs":["https:\/\/harmonweb.com\/blog"],"url":"https:\/\/harmonweb.com\/blog\/author\/harmonweb\/"}]}},"_links":{"self":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/comments?post=1277"}],"version-history":[{"count":1,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1277\/revisions"}],"predecessor-version":[{"id":1292,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/posts\/1277\/revisions\/1292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media\/1291"}],"wp:attachment":[{"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/media?parent=1277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/categories?post=1277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harmonweb.com\/blog\/wp-json\/wp\/v2\/tags?post=1277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}