{"id":606,"date":"2012-04-03T02:53:31","date_gmt":"2012-04-03T08:53:31","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=606"},"modified":"2018-10-04T05:24:40","modified_gmt":"2018-10-04T11:24:40","slug":"how-to-install-csf","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/how-to-install-csf\/","title":{"rendered":"How to install CSF?"},"content":{"rendered":"<p>You can install CSF by downloading the package from www.configserver.com.<\/p>\n<p>#wget www.configserver.com\/free\/csf.tgz<\/p>\n<p>Extract the package<\/p>\n<p>#tar -zxvf csf.taz<br \/>\n#cd csf<\/p>\n<p>[CSF firewall requires to remove any currently running IP based firewall]<\/p>\n<p>If any IP based firewall is running. Remove it<\/p>\n<p>#.\/remove_apf_bfd.sh<\/p>\n<p>Install script<\/p>\n<p>#.\/install.sh<\/p>\n<p>we can start the firewall in testing mode using this commands.<\/p>\n<p>#csf -s<br \/>\n\/\/start the firewall<\/p>\n<p>Configuration file of csf is \/etc\/csf\/csf.conf<\/p>\n<p>It is very important to check the firewall on which ports to open and close all remaining port numbers. Open the \/etc\/csf\/csf.conf and edit the following line with port numbers.<\/p>\n<p>#Incoming TCP ports<br \/>\nTCP_IN = &#8220;20,21,22,25,53,80,110,143,443,953,993,995,2082,2083,2087,2086.2089&#8221;<br \/>\n# Allow outgoing TCP ports<br \/>\nTCP_OUT = &#8220;20,21,22,25,37,43,53,80,110,443.953,2087,2089&#8221;<br \/>\n#Incoming UDP ports<br \/>\nUDP_IN = &#8220;20,21,53,953&#8221;<br \/>\n#Outgoing UDP ports<br \/>\nUDP_OUT = &#8220;20,21,53,113,123,953<\/p>\n<p>Disable the Testing mode and start the firewall<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can install CSF by downloading the package from www.configserver.com. #wget www.configserver.com\/free\/csf.tgz Extract the package #tar -zxvf csf.taz #cd csf [CSF firewall requires to remove any currently running IP based&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=606"}],"version-history":[{"count":4,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/606\/revisions"}],"predecessor-version":[{"id":3280,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/606\/revisions\/3280"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}