{"id":393,"date":"2016-11-10T18:58:49","date_gmt":"2016-11-10T18:58:49","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=393"},"modified":"2017-09-01T12:01:07","modified_gmt":"2017-09-01T12:01:07","slug":"install-uninstall-configserver-security-firewall-csf","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/install-uninstall-configserver-security-firewall-csf\/","title":{"rendered":"Install Uninstall ConfigServer Security and Firewall csf"},"content":{"rendered":"<h2>CSF Installation:<\/h2>\n<p>To Install the CSF Login to your server vis SSH root Access and run the following :\n <\/p>\n<div class=\"cmd\">\n<p><span class=\"prompt\">cd \/usr\/src<\/span><\/p>\n<p><span class=\"prompt\">rm -fv csf.tgz<\/span><\/p>\n<p><span class=\"prompt\">wget https:\/\/download.configserver.com\/csf.tgz<\/span><\/p>\n<p><span class=\"prompt\">tar -xzf csf.tgz<\/span><\/p>\n<p><span class=\"prompt\">cd csf<\/span><\/p>\n<p><span class=\"prompt\">sh install.sh<\/span><\/p>\n<\/div>\n<p>Next, test whether you have the required iptables modules:<\/p>\n<div class=\"cmd\">\n<p><span class=\"prompt\">perl \/usr\/local\/csf\/bin\/csftest.pl<\/span><\/p>\n<\/div>\n<p>Don&#8217;t worry if you cannot run all the features, so long as the script doesn&#8217;t<\/p>\n<p>You should not run any other iptables firewall configuration script. For example, if you previously used APF+BFD you can remove the combination (which you will need to do if you have them installed otherwise they will conflict):<\/p>\n<div class=\"cmd\">\n<p><span class=\"prompt\">sh \/usr\/local\/csf\/bin\/remove_apf_bfd.sh<\/span><\/p>\n<\/div>\n<p>After the successful installation of CSF you need to disable the TESTING mode to work the CSF properly on your server.<br \/>\n You can change it from the configuration file itself.\n <\/p>\n<div class=\"cmd\">\n<p><span class=\"prompt\">vi \/etc\/csf\/csf.conf<\/span><\/p>\n<div>Then change the value of &#8216;TESTING&#8217; from 1 to 0<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h2 class=\"h3\">CSF Uninstallation:<\/h2>\n<p>To Uninstall the CSF Login to your server vis SSH root Access and run the following :\n <\/p>\n<p>to Remove csf and lfd :<\/p>\n<div class=\"cmd\">\n<p><span class=\"prompt\">cd \/etc\/csf<\/span><\/p>\n<p><span class=\"prompt\">sh uninstall.sh<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>CSF Installation: To Install the CSF Login to your server vis SSH root Access and run the following : cd \/usr\/src rm -fv csf.tgz wget https:\/\/download.configserver.com\/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Next, test whether you have the required iptables modules: perl \/usr\/local\/csf\/bin\/csftest.pl Don&#8217;t worry if you cannot run all the features, so long [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":354,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41,5],"tags":[178,48,50,74,29],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/393"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":2,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":1429,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/393\/revisions\/1429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/354"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}