Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2562,"date":"2019-12-06T14:39:00","date_gmt":"2019-12-06T14:39:00","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2562"},"modified":"2019-12-27T07:30:45","modified_gmt":"2019-12-27T07:30:45","slug":"setup-configserver-security-and-firewall-csf-on-centos-7","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setup-configserver-security-and-firewall-csf-on-centos-7\/","title":{"rendered":"Setup ConfigServer Security and Firewall (CSF) on CentOS 7"},"content":{"rendered":"ConfigServer Security & Firewall (CSF)<\/strong>\u00a0is a stateful packet inspection\u00a0firewall (SPI)<\/strong>, login\/intrusion detection, and\u00a0security application for Linux servers<\/strong>. It is a very popular security suite, but isn’t officially supported yet on CentOS 7.<\/p>\nCentOS 7<\/strong>\u00a0uses 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\u00a0CentOS 5 and 6.<\/strong><\/p>\nThis guide shows you how to disable firewalld, install IP tables,\u00a0CSF dependencies, and CSF.<\/strong><\/p>\nInstall CSF<\/strong><\/h3>\nStop and disable firewalld.<\/strong><\/p>\n systemctl disable firewalld\r\n systemctl stop firewalld\r\n<\/code><\/pre>\nInstall iptables.<\/strong><\/p>\n yum -y install iptables-services\r\n<\/code><\/pre>\nCreate files needed by iptables.<\/strong><\/p>\n touch \/etc\/sysconfig\/iptables\r\n touch \/etc\/sysconfig\/iptables6\r\n<\/code><\/pre>\nStart iptables.<\/strong><\/p>\n systemctl start iptables\r\n systemctl start ip6tables\r\n<\/code><\/pre>\nEnable iptables at boot.<\/strong><\/p>\n systemctl enable iptables\r\n systemctl enable ip6tables\r\n<\/code><\/pre>\nInstall the CSF dependencies.<\/strong><\/p>\n yum -y install wget perl unzip net-tools perl-libwww-perl perl-LWP-Protocol-https perl-GDGraph -y\r\n<\/code><\/pre>\nDownload and launch the CSF installer.<\/strong><\/p>\n 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\r\n<\/code><\/pre>\nRemove the installation files.<\/strong><\/p>\n rm -rf \/opt\/csf\r\n rm \/opt\/csf.tgz \r\n<\/code><\/pre>\n(Optional) Webmin integration<\/strong><\/h3>\nIf you use Webmin, then you can install the CSF Webmin module.<\/p>\n
Login to Webmin and navigate to the following page.<\/strong><\/p>\nWebmin > Webmin Configuration > Webmin Modules >\r\n<\/code><\/pre>\nClick “From local file” and insert the following.<\/strong><\/p>\n \/usr\/local\/csf\/csfwebmin.tgz > \r\n<\/code><\/pre>\nInstall the module.<\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[229,231,245],"manual_kb_tag":[355],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2562"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2562"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2562\/revisions"}],"predecessor-version":[{"id":2573,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2562\/revisions\/2573"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2562"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2562"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}