{"id":81,"date":"2015-12-25T14:31:17","date_gmt":"2015-12-25T19:31:17","guid":{"rendered":"http:\/\/216.162.77.24\/wordpress\/?p=81"},"modified":"2024-03-28T10:14:03","modified_gmt":"2024-03-28T14:14:03","slug":"installing-config-security-firewall-csf-on-centos-7-and-webmin","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2015\/12\/25\/installing-config-security-firewall-csf-on-centos-7-and-webmin\/","title":{"rendered":"Installing (CSF) on CentOS 7"},"content":{"rendered":"<p><strong>Installing Config Security Firewall (CSF) on CentOS 7 and Webmin<\/strong><\/p>\n<p>ConfigServer Security &amp; Firewall (CSF) is a stateful packet inspection firewall (SPI), login\/intrusion detection, and security application for Linux servers. It is a very popular security suite, but isn&#8217;t officially supported yet on CentOS 7.<\/p>\n<p>CentOS 7 uses firewalld rather than iptables. A quick internet search will show that many faithful CentOS users find firewalld far too complicated for their needs and are reverting back to iptables. Iptables was the standard firewall for CentOS 5 and 6.<\/p>\n<p>This guide shows you how to disable firewalld, install IP tables, CSF dependencies, and CSF.<\/p>\n<h3>Install CSF<\/h3>\n<p>Stop and disable firewalld.<\/p>\n<pre><code>   systemctl disable firewalld\r\n   systemctl stop firewalld<\/code><\/pre>\n<p>Install iptables.<\/p>\n<pre><code> yum -y install iptables-services<\/code><\/pre>\n<p>Create files needed by iptables.<\/p>\n<pre><code>  touch \/etc\/sysconfig\/iptables\r\n  touch \/etc\/sysconfig\/iptables6<\/code><\/pre>\n<p>Start iptables.<\/p>\n<pre><code>  systemctl start iptables\r\n  systemctl start ip6tables<\/code><\/pre>\n<p>Enable iptables at boot.<\/p>\n<pre><code>  systemctl enable iptables\r\n  systemctl enable ip6tables<\/code><\/pre>\n<p>Install the CSF dependencies.<\/p>\n<pre><code>  yum -y install wget perl unzip net-tools perl-libwww-perl perl-LWP-Protocol-https perl-GDGraph -y<\/code><\/pre>\n<p>Download and launch the CSF installer.<\/p>\n<pre><code>  cd \/opt\r\n  wget https:\/\/download.configserver.com\/csf.tgz\r\n  tar -xzf csf.tgz\r\n  cd csf\r\n  sh install.sh<\/code><\/pre>\n<p>Remove the installation files.<\/p>\n<pre><code> rm -rf \/opt\/csf\r\n rm \/opt\/csf.tgz <\/code><\/pre>\n<h3>(Optional) Webmin integration<\/h3>\n<p>If you use Webmin, then you can install the CSF Webmin module.<\/p>\n<p>Login to Webmin and navigate to the following page.<\/p>\n<pre><code>Webmin &gt; Webmin Configuration &gt; Webmin Modules &gt;<\/code><\/pre>\n<p>Click &#8220;From local file&#8221; and insert the following.<\/p>\n<pre><code>  \/usr\/local\/csf\/csfwebmin.tgz &gt; <\/code><\/pre>\n<p>Install the module &amp; enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Config Security Firewall (CSF) on CentOS 7 and Webmin ConfigServer Security &amp; Firewall (CSF) is a stateful packet inspection firewall (SPI), login\/intrusion detection, and security application for Linux servers. It is a very popular security suite, but isn&#8217;t officially supported yet on CentOS 7. CentOS 7 uses firewalld rather than iptables. A quick internet &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2015\/12\/25\/installing-config-security-firewall-csf-on-centos-7-and-webmin\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing (CSF) on CentOS 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":3448,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media\/3448"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}