{"id":2502,"date":"2014-08-11T11:25:03","date_gmt":"2014-08-11T11:25:03","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=2502"},"modified":"2015-06-22T11:39:15","modified_gmt":"2015-06-22T11:39:15","slug":"installing-csf-firewall-on-linux-server","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/","title":{"rendered":"Installing CSF Firewall on Linux Server"},"content":{"rendered":"<p><a href=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/08\/Installing-CSF-Firewall.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2503\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/08\/Installing-CSF-Firewall.jpg\" alt=\"Installing-CSF-Firewall\" width=\"675\" height=\"296\" \/><\/a>Hello,<\/p>\n<p>Many are asking us to create a tutorial on how to install the CSF Firewall (ConfigServer Security &amp; Firewall), so we created this tutorial so that you know how to install it in simple and easy way.<\/p>\n<p>For those unaware, the CSF (ConfigServer Security &amp; Firewall) is a complete tool that has a firewall, access control, among other features.<\/p>\n<p>The CSF Firewall can be used widely in linux servers, including those that have cPanel \/ WHM installed.<\/p>\n<p><strong>Step 1: Access your server via SSH as root and execute the following commands:<\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #800000;\">rm -fv csf.tgz<\/span>\r\n<span style=\"color: #800000;\">wget http:\/\/www.configserver.com\/free\/csf.tgz<\/span>\r\n<span style=\"color: #800000;\">tar -xzf csf.tgz<\/span>\r\n<span style=\"color: #800000;\">cd csf<\/span>\r\n<span style=\"color: #800000;\">sh install.sh<\/span><\/pre>\n<\/blockquote>\n<p><strong>Step 2: Now let&#8217;s test the iptables modules by typing the following command:<\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #800000;\">perl \/etc\/csf\/csftest.p<\/span><\/pre>\n<\/blockquote>\n<p>Important! to let the CSF Firewall work properly, you should not have other firewall installed on the server. For example, if you have the BFD + APF Firewall installed, you can remove it using the following command:<\/p>\n<blockquote>\n<pre><span style=\"color: #800000;\">sh \/etc\/csf\/remove_apf_bfd.sh<\/span><\/pre>\n<\/blockquote>\n<p><strong>Ready, completed installation!<\/strong><\/p>\n<p>Installation problems? Leave a comment on this post with your trouble we will help you.<\/p>\n<p><strong>More dedicated servers, visit: ESDS <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.esds.co.in\/dedicated-server-hosting.php\" target=\"_blank\">Dedicated Servers<\/a><\/span> for more info&#8230;<br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, Many are asking us to create a tutorial on how to install the CSF Firewall (ConfigServer Security &amp; Firewall), so we created this tutorial so that you know how to install it in simple and easy way. For those unaware, the CSF (ConfigServer Security &amp; Firewall) is a complete tool that has a firewall,&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[69],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing CSF Firewall on Linux Server<\/title>\n<meta name=\"description\" content=\"Tutorial on how to install the CSF Firewall (ConfigServer Security &amp; Firewall).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing CSF Firewall on Linux Server\" \/>\n<meta property=\"og:description\" content=\"Tutorial on how to install the CSF Firewall (ConfigServer Security &amp; Firewall).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-11T11:25:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-22T11:39:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/08\/Installing-CSF-Firewall.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2014\/08\/Installing-CSF-Firewall.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\",\"name\":\"Installing CSF Firewall on Linux Server\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/#primaryimage\"},\"datePublished\":\"2014-08-11T11:25:03+00:00\",\"dateModified\":\"2015-06-22T11:39:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\"},\"description\":\"Tutorial on how to install the CSF Firewall (ConfigServer Security & Firewall).\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/installing-csf-firewall-on-linux-server\/\",\"name\":\"Installing CSF Firewall on Linux Server\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/d951a1b6843822458f3c5f5ee02a74e8\",\"name\":\"ESDS ADMIN\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5618393df3c15e5b6b3b9ef917e83827?s=96&d=mm&r=g\",\"caption\":\"ESDS ADMIN\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2502"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=2502"}],"version-history":[{"count":6,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2502\/revisions"}],"predecessor-version":[{"id":2835,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2502\/revisions\/2835"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=2502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=2502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=2502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}