{"id":217,"date":"2013-01-14T14:22:27","date_gmt":"2013-01-14T14:22:27","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=217"},"modified":"2021-02-16T11:16:47","modified_gmt":"2021-02-16T11:16:47","slug":"how-to-install-csf-firewall-on-cpanel-server","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/","title":{"rendered":"How to install CSF firewall on cpanel server"},"content":{"rendered":"<p>CSF firewall is famous free firewall solution that\u00a0integrates\u00a0with cPanel very well.\u00a0It is the most user friendly (in my opinion) firewall and takes only two steps to install and configure.<\/p>\n<p>Login to your server as root and run fullowing commands, you can copy paste all of them all togather.<\/p>\n<div class=\"command-sh\">\n<pre class=\"\">rm -fv csf.tgz\r\nwget http:\/\/www.configserver.com\/free\/csf.tgz\r\nOR\r\nwget https:\/\/download.configserver.com\/csf.tgz<\/pre>\n<pre class=\"\">tar -xzf csf.tgz \r\ncd csf \r\nsh install.sh<\/pre>\n<\/div>\n<p>It will download and install ssh and you will get a message looking like this in the end.<\/p>\n<p class=\"success\">*WARNING* TESTING mode is enabled &#8211; do not forget to disable it in the configuration<br \/>\nInstallation Completed<\/p>\n<p>Next test if you have all the packages installed that are used by CSF, I have found that all the required packages are allready there and test shows success.<\/p>\n<div class=\"command-sh\">\n<pre>perl \/etc\/csf\/csftest.pl<\/pre>\n<\/div>\n<p>You will see output like below, ignore all messages and check the last line.<\/p>\n<p class=\"success\">Testing ip_tables\/iptable_filter&#8230;OK<br \/>\nTesting ipt_LOG&#8230;OK<br \/>\nTesting ipt_multiport\/xt_multiport&#8230;OK<br \/>\nTesting ipt_REJECT&#8230;OK<br \/>\nTesting ipt_state\/xt_state&#8230;OK<br \/>\nTesting ipt_limit\/xt_limit&#8230;OK<br \/>\nTesting ipt_recent&#8230;OK<br \/>\nTesting xt_connlimit&#8230;OK<br \/>\nTesting ipt_owner\/xt_owner&#8230;OK<br \/>\nTesting iptable_nat\/ipt_REDIRECT&#8230;OK<br \/>\nTesting iptable_nat\/ipt_DNAT&#8230;OK<\/p>\n<p class=\"success\">RESULT: csf should function on this server<\/p>\n<p>Next login to whm and type &#8220;fire&#8221; in search box, then click &#8220;ConfigServer Security &amp; Firewall&#8221;. Click firewall configuration button in &#8220;csf &#8211; ConfigServer Firewall&#8221; section. Change value of Testing field to &#8220;0&#8221;, scroll down to bottom and hit save.<\/p>\n<p>Thats all, I will write about CSF other options that i set on shared cpanel servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSF firewall is famous free firewall solution that\u00a0integrates\u00a0with cPanel very well.\u00a0It is the most user friendly (in my opinion) firewall and takes only two steps to install and configure. Login to your server as root and run fullowing commands, you can copy paste all of them all togather. rm -fv csf.tgz wget http:\/\/www.configserver.com\/free\/csf.tgz OR wget [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install CSF firewall on cpanel server - cPanel Plesk<\/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:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to install CSF firewall on cpanel server - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"CSF firewall is famous free firewall solution that\u00a0integrates\u00a0with cPanel very well.\u00a0It is the most user friendly (in my opinion) firewall and takes only two steps to install and configure. Login to your server as root and run fullowing commands, you can copy paste all of them all togather. rm -fv csf.tgz wget http:\/\/www.configserver.com\/free\/csf.tgz OR wget [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Farooq Omer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\"},\"author\":{\"name\":\"Farooq Omer\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"headline\":\"How to install CSF firewall on cpanel server\",\"datePublished\":\"2013-01-14T14:22:27+00:00\",\"dateModified\":\"2021-02-16T11:16:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\"},\"wordCount\":257,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif\",\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\",\"name\":\"How to install CSF firewall on cpanel server - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif\",\"datePublished\":\"2013-01-14T14:22:27+00:00\",\"dateModified\":\"2021-02-16T11:16:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif\",\"width\":200,\"height\":200,\"caption\":\"cpanel firewall\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install CSF firewall on cpanel server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/fokado\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install CSF firewall on cpanel server - cPanel Plesk","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:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/","twitter_card":"summary_large_image","twitter_title":"How to install CSF firewall on cpanel server - cPanel Plesk","twitter_description":"CSF firewall is famous free firewall solution that\u00a0integrates\u00a0with cPanel very well.\u00a0It is the most user friendly (in my opinion) firewall and takes only two steps to install and configure. Login to your server as root and run fullowing commands, you can copy paste all of them all togather. rm -fv csf.tgz wget http:\/\/www.configserver.com\/free\/csf.tgz OR wget [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif","twitter_misc":{"Written by":"Farooq Omer","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/"},"author":{"name":"Farooq Omer","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"headline":"How to install CSF firewall on cpanel server","datePublished":"2013-01-14T14:22:27+00:00","dateModified":"2021-02-16T11:16:47+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/"},"wordCount":257,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif","articleSection":["Cpanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/","url":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/","name":"How to install CSF firewall on cpanel server - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif","datePublished":"2013-01-14T14:22:27+00:00","dateModified":"2021-02-16T11:16:47+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2013\/01\/firewall-antivirus-e1441263257656.gif","width":200,"height":200,"caption":"cpanel firewall"},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to install CSF firewall on cpanel server"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/fokado\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/220"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}