{"id":33462,"date":"2020-03-25T11:25:44","date_gmt":"2020-03-25T07:55:44","guid":{"rendered":"https:\/\/airoserver.com\/?p=2503"},"modified":"2022-03-29T16:34:27","modified_gmt":"2022-03-29T12:04:27","slug":"csf-installation-on-linux","status":"publish","type":"post","link":"https:\/\/airoserver.com\/fa\/dedicated\/csf-installation-on-linux\/","title":{"rendered":"CSF Installation on Linux"},"content":{"rendered":"<p>When you buy a <a href=\"https:\/\/airoserver.com\/fa\/airo-vps\/what-is-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"VPS  (opens in a new tab)\">VPS <\/a>or a <a href=\"https:\/\/airoserver.com\/fa\/blog\/dedicated-server\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"dedicated server  (opens in a new tab)\">dedicated server<\/a>, before installing a <a href=\"https:\/\/airoserver.com\/fa\/airoserver\/what-is-a-hosting-control-panel\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"control panel (opens in a new tab)\">control panel<\/a>, WHM or anything else on that <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/different-types-of-servers-in-web-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"server (opens in a new tab)\">server<\/a>, you need to make sure the server is secured. Some people think that just because their server is brand new and doesn&#8217;t have that much data on it, hackers won&#8217;t attack them. However, you should know that sometimes hackers don&#8217;t care about data and all they want are your server&#8217;s resources. For example, hackers can attack your CPU or bandwidth with a DDoS attack or etc. There lots of ways to secure a <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/the-distributions-of-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Linux (opens in a new tab)\">Linux<\/a> server. The most famous way is installing CSF which is a type of <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/everything-about-firewall\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"firewall (opens in a new tab)\">firewall<\/a>. CSF stands for Config Server Firewall and it is a free software with lots of tools to help you secure the server. In this post, we are going to show you how you can install CSF on your Linux Server.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2504\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/CSF.png\" alt=\"Configure Server Firewall\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>CSF Installation Guide<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Installing software on servers is different from installing software on a PC. Since you don&#8217;t have access to the server physically, you need to connect to the server remotely. SSH or Secure Shell is the best way to connect to a Linux server. A Linux server is a server that has Linux as its operating system. SSH is a command-line without GUI that helps you send commands to your server. To establish an SSH connection you need <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"PuTTY (opens in a new tab)\">PuTTY<\/a> software on your computer. After opening the PuTTY program, enter the server&#8217;s <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-ip-versions-and-structure\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"IP (opens in a new tab)\">IP<\/a> and the port. The default port for an SSH connection is 22 so only enter the port if you have changed it before. After clicking on open, enter the username and the password to log in. <strong>* <\/strong>You won&#8217;t see anything when you are typing the password but don&#8217;t worry just type it and press &#8220;Enter&#8221; <strong>*<\/strong>.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2507\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/PuTTY.jpg\" alt=\"PuTTY\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Now enter this command to start the CSF installation:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cd \/usr\/src &amp;&amp; rm -fv csf.tgz &amp;&amp; wget https:\/\/download.configserver.com\/csf.tgz &amp;&amp; tar -xzf csf.tgz &amp;&amp; cd csf &amp;&amp; sh install.sh<\/pre>\r\n\r\n\r\n\r\n<p>This is what you see before the command:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2508\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/Before-CSF-Installation.png\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>And here is the message you&#8217;ll see after the installation is complete:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2509\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/After-CSF-Installation.png\" alt=\"\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>As the last step, you need to install iptables on your server. To do that, enter this command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">perl \/usr\/local\/csf\/bin\/csftest.pl<\/pre>\r\n\r\n\r\n\r\n<p>You will see the message above again when the installation is complete.<\/p>\r\n\r\n\r\n\r\n<p>With these a few easy steps, you have installed CSF on your server. Now you can log into your WHM and from the Configserver Security &amp;Firewall section, config CSF however you want.<\/p>\r\n\r\n\r\n\r\n<p>Hope you enjoyed this post if you did, you can visit our <a href=\"https:\/\/airoserver.com\/fa\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"blog  (opens in a new tab)\">blog <\/a>for more!<\/p>","protected":false},"excerpt":{"rendered":"<p>When you buy a VPS or a dedicated server, before installing a control panel, WHM or anything else on that server, you need to make sure the server is secured. Some people think that just because their server is brand new and doesn&#8217;t have that much data on it, hackers won&#8217;t attack them. However, you [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33607,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,178],"tags":[85,177,142,180,71],"class_list":["post-33462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-airo-vps","tag-airoserver","tag-dedicated-server","tag-linux","tag-security","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSF Installation on Linux<\/title>\n<meta name=\"description\" content=\"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/fa\/dedicated\/csf-installation-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSF Installation on Linux\" \/>\n<meta property=\"og:description\" content=\"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/fa\/dedicated\/csf-installation-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-25T07:55:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-29T12:04:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/csf_firewall.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"333\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"CSF Installation on Linux\",\"datePublished\":\"2020-03-25T07:55:44+00:00\",\"dateModified\":\"2022-03-29T12:04:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/\"},\"wordCount\":417,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\",\"Dedicated Server\",\"Linux\",\"Security\",\"VPS\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"VPS\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/\",\"name\":\"CSF Installation on Linux\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2020-03-25T07:55:44+00:00\",\"dateModified\":\"2022-03-29T12:04:27+00:00\",\"description\":\"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSF Installation on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/fa\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSF Installation on Linux","description":"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.","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:\/\/airoserver.com\/fa\/dedicated\/csf-installation-on-linux\/","og_locale":"fa_IR","og_type":"article","og_title":"CSF Installation on Linux","og_description":"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.","og_url":"https:\/\/airoserver.com\/fa\/dedicated\/csf-installation-on-linux\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2020-03-25T07:55:44+00:00","article_modified_time":"2022-03-29T12:04:27+00:00","og_image":[{"width":750,"height":333,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/03\/csf_firewall.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"SEO Team","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"2 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"CSF Installation on Linux","datePublished":"2020-03-25T07:55:44+00:00","dateModified":"2022-03-29T12:04:27+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/"},"wordCount":417,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver","Dedicated Server","Linux","Security","VPS"],"articleSection":["AiroServer","Dedicated","VPS"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/","url":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/","name":"CSF Installation on Linux","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2020-03-25T07:55:44+00:00","dateModified":"2022-03-29T12:04:27+00:00","description":"Establish an SSH connection using PuTTY.Type in your username and password to login.Now copy and paste this command to install CSF.","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/csf-installation-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"CSF Installation on Linux"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/fa\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/comments?post=33462"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33462\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media\/33607"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media?parent=33462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/categories?post=33462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/tags?post=33462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}