{"id":11750,"date":"2021-09-28T08:45:51","date_gmt":"2021-09-28T08:45:51","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=11750"},"modified":"2024-04-23T14:36:13","modified_gmt":"2024-04-23T13:36:13","slug":"open-port-csf-firewall-whm-cpanel","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/","title":{"rendered":"How to Open a Port in CSF Firewall via WHM\/cPanel?"},"content":{"rendered":"<p>Ports are centers where the IP addresses and Internet Protocols with the destination or origination address start a communication session. Ports are part of the client-server model and have a 16-digit number for their identification. Needless to say, the CSF firewall needs configuration to open a port considering the security of the server.<\/p>\n<p>If you are a user with a cPanel server, you can customize the port settings of the CSF firewall with WHM. If you want to install and make more customizations to the CSF firewall, please refer to\u00a0<a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/install-csf-firewall-whm-cpanel\/\">How to Install CSF Firewall via WHM\/cPanel?<\/a><\/p>\n<h2>To Open a Port in CSF Firewall<\/h2>\n<p>1. Log into WHM with your root account.<\/p>\n<p>2. Select the <strong>Plugins<\/strong> option from the navigation menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11359\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png\" alt=\"\" width=\"1919\" height=\"865\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png 1919w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins-300x135.png 300w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins-768x346.png 768w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins-1024x462.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>3. Click on <strong>ConfigServer Security &amp; Firewall<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12536\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_configserver_security_firewall.png\" alt=\"\" width=\"601\" height=\"148\" \/><\/p>\n<p>The ConfigServer Security &amp; Firewall\u00a0panel will appear.<\/p>\n<p>4. Go to the <strong>csf<\/strong> tab and click on the <strong>Firewall Configuration<\/strong> button in the <strong>csf-ConfigServer Firewall<\/strong> section.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12539\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_configserverwhm_configserver_security_firewall_csf-min.png\" alt=\"\" width=\"1371\" height=\"963\" \/><\/p>\n<p>Various customization options for the firewall will appear.<\/p>\n<p>5. Select the <strong>IPV4 port Settings<\/strong> section from the dropdown list.<\/p>\n<p>6. Copy\/enter the following port numbers in the <strong>Allow incoming TCP ports<\/strong> and <strong>Allow outgoing TCP ports<\/strong> fields.<\/p>\n<pre class=\"lang:default decode:true \">Allow incoming TCP ports:\n\n20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,26<\/pre>\n<pre class=\"lang:default decode:true \">Allow outgoing TCP ports:\n\n20,21,22,25,37,43,53,80,110,113,443,587,873,2086,2087,2089,2703<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13097\" src=\"https:\/\/www.milesweb.com\/hosting-faqs\/wp-content\/uploads\/2021\/09\/whm_csfirewall_ipv4settings_ports.png\" alt=\"\" width=\"1599\" height=\"1107\" \/><\/p>\n<p>Although we recommend these port numbers, you can enter other port numbers as per the requirement.<\/p>\n<p>7. Click the <strong>Change<\/strong> button at the end.<\/p>\n<p>It will save the changes you made to the firewall configuration.<\/p>\n<p>8. Click on <strong>Restart csf+lfd<\/strong>.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12555\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_restart_csf_ifd.png\" alt=\"\" width=\"387\" height=\"213\" \/>It will restart the csf firewall and apply the changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ports are centers where the IP addresses and Internet Protocols with the destination or origination address start a communication session. Ports are part of the client-server model and have a 16-digit number for their identification. Needless to say, the CSF firewall needs configuration to open a port considering the security of the server. If you [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[867,41,229],"tags":[1287,2384,2374,2495,868,2500,175,1423],"class_list":["post-11750","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-firewall","category-howtos","category-whm","tag-config-server-firewall","tag-configure-csf-firewall","tag-cpanel-server","tag-csf-firewall","tag-firewall","tag-open-port-csf-firewall","tag-whm","tag-whm-root"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Open a Port in CSF Firewall via WHM\/cPanel?<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Open a Port in CSF Firewall via WHM\/cPanel?\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-28T08:45:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-23T13:36:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/\",\"name\":\"How to Open a Port in CSF Firewall via WHM\/cPanel?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png\",\"datePublished\":\"2021-09-28T08:45:51+00:00\",\"dateModified\":\"2024-04-23T13:36:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png\",\"width\":1919,\"height\":865},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Open a Port in CSF Firewall via WHM\/cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Open a Port in CSF Firewall via WHM\/cPanel?","description":"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.","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:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"How to Open a Port in CSF Firewall via WHM\/cPanel?","og_description":"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-09-28T08:45:51+00:00","article_modified_time":"2024-04-23T13:36:13+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png","type":"","width":"","height":""}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/","name":"How to Open a Port in CSF Firewall via WHM\/cPanel?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png","datePublished":"2021-09-28T08:45:51+00:00","dateModified":"2024-04-23T13:36:13+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This tutorial will show you how to open a port in the ConfigServer Security and Firewall (CSF) application from the WHM panel.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/08\/whm_plugins.png","width":1919,"height":865},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/open-port-csf-firewall-whm-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Open a Port in CSF Firewall via WHM\/cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":446,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=11750"}],"version-history":[{"count":6,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11750\/revisions"}],"predecessor-version":[{"id":15514,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/11750\/revisions\/15514"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=11750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=11750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=11750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}