{"id":792,"date":"2024-05-17T09:07:28","date_gmt":"2024-05-17T09:07:28","guid":{"rendered":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?p=792"},"modified":"2024-05-17T09:07:47","modified_gmt":"2024-05-17T09:07:47","slug":"install-configure-a-csf-firewall-in-a-centos-server","status":"publish","type":"post","link":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html","title":{"rendered":"Install &#038; Configure a CSF Firewall in a CenTOS Server"},"content":{"rendered":"<div class=\"kb-article-content\">\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Overview<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">ConfigServer Security &amp; Firewall (CSF) is a popular firewall configuration script for CentOS servers that offers a high level of security by blocking malicious traffic &amp; allowing only authorized traffic on the server. It is commonly used with the &#8216;Login Failure Daemon&#8217; (LFD), which scans the server for security issues and login failures.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">In this article, we will help you guide you on installing and configuring CSF Firewall on your CentOS server.<\/span><\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Prerequisites<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">\u2794 You need Root or sudo access to the CentOS server.<\/span><\/p>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Steps to Install &amp; Configure a CSF Firewall in a CentOS Server<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">To install the CSF Firewall, you need to execute the commands as follows:<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong><span style=\"font-weight: 400;\">As CSF is based on Perl, you first need to install the Perl library on the server.<\/span><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>yum install wget vim perl-libwww-perl.noarch perl-Time-HiRes<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\"><strong>\u27a2&nbsp;<\/strong>Move into the <\/span><strong>\u2018src\u2019 <\/strong><span style=\"font-weight: 400;\">&amp;<\/span> <span style=\"font-weight: 400;\">download the latest version of CSF from its official website using <\/span><strong>\u2018wget.\u2019<\/strong><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>cd \/usr\/src\/ wget https:\/\/download.configserver.com\/csf.tgz<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>Once installed, you need to extract the downloaded tar archive and run the installed script.<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>tar -xzf csf.tgz cd csf sh install.sh<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>You have to move into the CSF newly extracted folder.<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>cd csf<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>Now, execute the CSF settings file named<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>sh install.sh<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>Once the installation is complete, you will see this line as a message.&nbsp;<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Installation Completed<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>It\u2019s time to check whether the CSF you installed is working properly or not by executing the commands given below.<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>cd\/usr\/local\/csf\/bin<\/strong><\/span><\/p>\n<\/div>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>perl csftest.pl<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">If you are getting a message like the following, it means your CSF is working without any issues.<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ip_tables\/iptable_filter&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_LOG&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_multiport\/xt_multiport&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_REJECT&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_state\/xt_state&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_limit\/xt_limit&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_recent&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing xt_connlimit&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing ipt_owner\/xt_owner&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing iptable_nat\/ipt_REDIRECT&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Testing iptable_nat\/ipt_DNAT&#8230;OK<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>RESULT: csf should function on this server<\/strong><\/span><\/p>\n<\/div>\n<h2><span style=\"font-family: verdana, geneva, sans-serif;\"><strong>Configure the CSF On Your Server<\/strong><\/span><\/h2>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\"><strong>\u27a2&nbsp;<\/strong>Before you start configuring the CSF, you need to know that in CentOS 7, there is a default firewall application called <\/span><strong style=\"font-family: 'Console', monospace;\">\u2018firewalld\u2019<\/strong><span style=\"font-weight: 400;\">.&nbsp;<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">You need to disable it using the following command to prevent it from starting at boot.<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">\u2794 Stop the <\/span><strong style=\"font-family: 'Console', monospace;\">\u2018firewalld\u2019<\/strong><span style=\"font-weight: 400; font-family: 'Console', monospace;\"> service by executing<\/span><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>systemctl stop firewalls<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\">\u2794 Disable the <\/span><strong style=\"font-family: 'Console', monospace;\">\u2018firewalld\u2019&nbsp;<\/strong><span style=\"font-weight: 400;\">service by executing<\/span><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>systemctl disable firewalls<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>Now, go to the csf config directory at\/etc\/csf\/csf.conf and edit the file csf using your desired text editor, such as vim, vi, or nano editor, with the command.<\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\"><strong>\u27a2&nbsp;<\/strong><\/span><span style=\"font-weight: 400;\">After that, You need to edit the testing configuration from 1 to 0. If you don\u2019t edit this, the lfd daemon will fail to start<\/span><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>TESTING = &#8220;0&#8221;<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\"><strong>\u27a2&nbsp;<\/strong>Now, you need to move to line 139. In that, check the entry to tcp underscore and list allowed incoming and outgoing ports as comma-separated.&nbsp;<\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>TCP_IN = &#8220;20,21,22,25,53,80,110,143,443,465,587,993,995&#8221;<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>TCP_OUT = &#8220;20,21,22,25,53,80,110,113,443&#8221;<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>UDP_IN = &#8220;20,21,53&#8221;<\/strong><\/span><\/p>\n<p><span style=\"font-family: 'Console', monospace;\"><strong>UDP_OUT = &#8220;20,21,53,113,123&#8221;<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><strong><span style=\"font-weight: 400;\">\u27a2&nbsp;Now, you have to start the <\/span><span style=\"font-family: 'Console', monospace;\">csf<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-family: 'Console', monospace;\">lfd<\/span><span style=\"font-weight: 400;\"> with the following commands.<\/span><\/strong><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong><span style=\"font-weight: 400;\"><strong>systemctl start csf<\/strong> <\/span><\/strong><\/span><\/p>\n<\/div>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong><span style=\"font-weight: 400;\"><strong>systemctl start lfd<\/strong><\/span><\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-weight: 400;\"><strong>\u27a2&nbsp;<\/strong>After that, enable the <\/span><strong><span style=\"font-family: 'Console', monospace;\">csf<\/span><\/strong><span style=\"font-weight: 400;\"> and <\/span><strong><span style=\"font-family: 'Console', monospace;\">lfd<\/span><\/strong><span style=\"font-weight: 400;\"> services that are started when CentOS starts<\/span><\/span><\/p>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>Systemctl enable csf<\/strong><\/span><\/p>\n<\/div>\n<div class=\"kb_firewall\">\n<p><span style=\"font-family: 'Console', monospace;\"><strong>systemctl enable lfd<\/strong><\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400; font-family: verdana, geneva, sans-serif;\">That\u2019s it; your firewall has been installed &amp; configured on the server!<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview ConfigServer Security &amp; Firewall (CSF) is a popular firewall configuration script for CentOS servers that offers a high level of security by blocking malicious traffic &amp; allowing only authorized traffic on the server. It is commonly used with the &#8216;Login Failure Daemon&#8217; (LFD), which scans the server for security issues and login failures.&nbsp; In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-792","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install &amp; Configure a CSF Firewall in a CenTOS Server<\/title>\n<meta name=\"description\" content=\"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server&#039;s security against malicious traffic.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install &amp; Configure a CSF Firewall in a CenTOS Server\" \/>\n<meta property=\"og:description\" content=\"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server&#039;s security against malicious traffic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-17T09:07:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-17T09:07:47+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\"},\"headline\":\"Install &#038; Configure a CSF Firewall in a CenTOS Server\",\"datePublished\":\"2024-05-17T09:07:28+00:00\",\"dateModified\":\"2024-05-17T09:07:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\"},\"wordCount\":563,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"articleSection\":[\"VPS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\",\"name\":\"Install & Configure a CSF Firewall in a CenTOS Server\",\"isPartOf\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"datePublished\":\"2024-05-17T09:07:28+00:00\",\"dateModified\":\"2024-05-17T09:07:47+00:00\",\"description\":\"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server's security against malicious traffic.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization\",\"name\":\"Host IT Smart Knowledge base\",\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":240,\"height\":80,\"caption\":\"Host IT Smart Knowledge base\"},\"image\":{\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install & Configure a CSF Firewall in a CenTOS Server","description":"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server's security against malicious traffic.","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:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html","og_locale":"en_US","og_type":"article","og_title":"Install & Configure a CSF Firewall in a CenTOS Server","og_description":"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server's security against malicious traffic.","og_url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2024-05-17T09:07:28+00:00","article_modified_time":"2024-05-17T09:07:47+00:00","author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html#article","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html"},"author":{"name":"Admin","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9"},"headline":"Install &#038; Configure a CSF Firewall in a CenTOS Server","datePublished":"2024-05-17T09:07:28+00:00","dateModified":"2024-05-17T09:07:47+00:00","mainEntityOfPage":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html"},"wordCount":563,"commentCount":0,"publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"articleSection":["VPS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html","name":"Install & Configure a CSF Firewall in a CenTOS Server","isPartOf":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website"},"datePublished":"2024-05-17T09:07:28+00:00","dateModified":"2024-05-17T09:07:47+00:00","description":"Learn to configure the CSF firewall on your CentOS server via the command line to ensure your server's security against malicious traffic.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/343\/Install-and-Configure-a-CSF-Firewall-in-a-CenTOS-Server.html"]}]},{"@type":"WebSite","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","publisher":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#organization","name":"Host IT Smart Knowledge base","url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":240,"height":80,"caption":"Host IT Smart Knowledge base"},"image":{"@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/8b538056beea86b043adbd20df3a6ee9","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17348df3a33347d3945161d87b752de1d7a7ec25dcbe15baacbd3b8a35367f66?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=792"}],"version-history":[{"count":1,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/792\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/792\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}