{"id":289,"date":"2024-02-09T08:50:36","date_gmt":"2024-02-09T08:50:36","guid":{"rendered":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/?p=289"},"modified":"2024-03-30T12:31:25","modified_gmt":"2024-03-30T12:31:25","slug":"enable-csf-firewall-web-ui","status":"publish","type":"post","link":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/enable-csf-firewall-web-ui\/","title":{"rendered":"How to Enable CSF Firewall Web UI in centos 7"},"content":{"rendered":"<p>CSF Firewall Web UI is used for users to view and mange the firewall dash board.<\/p>\n<p>Config Server Security &amp; Firewall (CSS) is an iptables based firewall for Linux systems.<\/p>\n<p>All server admins they are using csf to manage <a href=\"https:\/\/www.squarebrothers.com\/dedicated-server-india\/\" target=\"_blank\" rel=\"noopener\">server<\/a> for allowing and denying IP address and ports in SSH using commands.<\/p>\n<p>CSF also pr<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/enable-csf-firewall-web-ui\/#Step_1_%E2%80%93_Install_Required_Perl_Modules\" >Step 1 \u2013 Install Required Perl Modules:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/enable-csf-firewall-web-ui\/#Step_2_%E2%80%93_Enable_CSF_Firewall_Web_UI\" >Step 2 \u2013 Enable CSF Firewall Web UI:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/enable-csf-firewall-web-ui\/#Step_3_%E2%80%93_Access_and_Use_Web_UI\" >Step 3 \u2013 Access and Use Web UI:<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"heading1\"><span class=\"ez-toc-section\" id=\"Step_1_%E2%80%93_Install_Required_Perl_Modules\"><\/span>Step 1 \u2013 Install Required Perl Modules:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CSF UI required some of Perl modules to be installed on your system. Use the following commands to install required modules as per your operating system.<\/p>\n<pre>\u00a0yum install perl-IO-Socket-SSL.noarch perl-Net-SSLeay perl-Net-LibIDN \\perl-IO-Socket-INET6 perl-Socket6\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-290 size-large\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI-1024x502.png\" alt=\"\" width=\"1024\" height=\"502\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI-1024x502.png 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI-300x147.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI-768x377.png 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI-1536x753.png 1536w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI.png 1905w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/>\r\n\r\n<\/pre>\n<h2 class=\"heading1\"><span class=\"ez-toc-section\" id=\"Step_2_%E2%80%93_Enable_CSF_Firewall_Web_UI\"><\/span>Step 2 \u2013 Enable CSF Firewall Web UI:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To enable CSF web UI edit \/etc\/csf\/csf.conf file in your favorite text editor and update the following values.<\/p>\n<pre>vim \/etc\/csf\/csf.conf<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-291 size-full\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI1.png\" alt=\"CSF firewall web UI\" width=\"772\" height=\"730\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI1.png 772w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI1-300x284.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-web-UI1-768x726.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><br \/>\nAfter making changes, edit \/etc\/csf\/ui\/ui.allow configuration file and add your public IP to allow access to CSF UI. Change OUR_PUBLIC_IP_ADDRESS with your public IP address.<\/p>\n<pre>sudo echo \"YOUR_PUBLIC_IP_ADDRESS\" &gt;&gt; \/etc\/csf\/ui\/ui.allow<\/pre>\n<p>Web UI works under lfd daemon. So restart the lfd daemon on your system using the following command.<\/p>\n<pre>$ sudo service lfd restart<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_%E2%80%93_Access_and_Use_Web_UI\"><\/span>Step 3 \u2013 Access and Use Web UI:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now, access CSF UI on your browser with the specified port. Here in this tutorial, I have used custom xxxx port. This will prompt for user authentication first.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-292 size-large\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3-1024x352.png\" alt=\"\" width=\"1024\" height=\"352\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3-1024x352.png 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3-300x103.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3-768x264.png 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3-1536x528.png 1536w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-webui3.png 1625w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>After successful login, you will find the screen like below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-293 size-large\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2-1024x527.png\" alt=\"\" width=\"640\" height=\"329\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2-1024x527.png 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2-300x154.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2-768x395.png 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2-1536x790.png 1536w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-web-UI2.png 1911w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Allow IP Address \u2013 You can use below option to allow any IP quickly. This add the entry in \/etc\/csf\/csf.allow file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-294\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-allow-1024x100.jpg\" alt=\"\" width=\"640\" height=\"63\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-allow-1024x100.jpg 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-allow-300x29.jpg 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-allow-768x75.jpg 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/csf-allow.jpg 1274w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Deny IP Address \u2013 You can use below option to deny any IP quickly. This add the entry in \/etc\/csf\/csf.deny file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-295\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-webui12-1024x82.png\" alt=\"\" width=\"640\" height=\"51\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-webui12-1024x82.png 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-webui12-300x24.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-webui12-768x62.png 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/CSF-webui12.png 1296w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Unblock IP Address \u2013 You can use below option to quickly unblocked any IP which is already blocked by CSF.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-296 size-large\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/webui-1024x63.jpg\" alt=\"\" width=\"640\" height=\"39\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/webui-1024x63.jpg 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/webui-300x19.jpg 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/webui-768x47.jpg 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/02\/webui.jpg 1052w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>I hope above article will help you to enable UI for csf in your <a href=\"https:\/\/www.hyderabadwebhosting.co.in\/dedicated-server.html\">server<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSF Firewall Web UI is used for users to view and mange the firewall dash board. Config Server Security &amp; Firewall (CSS) is an iptables based firewall for Linux systems. All server admins they are using csf to manage server for allowing and denying IP address and ports in SSH using commands. CSF also pr [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":5,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/289\/revisions\/301"}],"wp:attachment":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}