{"id":2150,"date":"2019-10-21T14:19:53","date_gmt":"2019-10-21T06:19:53","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2150"},"modified":"2022-10-08T18:49:17","modified_gmt":"2022-10-08T10:49:17","slug":"how-to-open-ports-in-whm-ssh-firewall","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/how-to-open-ports-in-whm-ssh-firewall","title":{"rendered":"How to open ports in WHM\/SSH firewall?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2150\" class=\"elementor elementor-2150\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4d6c6d05 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4d6c6d05\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6a49364a\" data-id=\"6a49364a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e6ef49b elementor-widget elementor-widget-heading\" data-id=\"e6ef49b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How To Open Ports in WHM\/SSH Firewall<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b77cde elementor-widget elementor-widget-text-editor\" data-id=\"3b77cde\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><strong>Open Port in CSF Firewall through SSH\u00a0<\/strong><\/p><ol><li>Login to your Linux Server through SSH. Open csf.conf file using any text editor.\/etc\/csf\/csf.conf<\/li><li>Add the port you wish to open and restart CSF firewall for the changes to take into effect.# Allow incoming TCP ports<br \/>TCP_IN = &#8220;20,443,465,21,22,587,993,25,53,80,110,143,995&#8221;<br \/># Allow outgoing TCP ports<br \/>TCP_OUT = &#8220;20,21,443,587,22,25,80,110,43,53&#8221;<\/li><li>csf -r \u00a0\/\/ This is to restart CSF firewall<\/li><\/ol><p><strong>Open Port in CSF Firewall through WHM<\/strong><\/p><ol><li>Login to\u00a0<em><strong>WHM<\/strong><\/em>.<\/li><li>Type\u00a0<strong>firewall<\/strong>\u00a0in Find bar and click on\u00a0<em><strong>ConfigServer Security&amp;Firewall<\/strong><\/em>\u00a0link.<br \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2152\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/whm1-300x77.png\" alt=\"\" width=\"300\" height=\"77\" \/><\/li><li>\u00a0Click on the\u00a0<em><strong>Firewall Configuration<\/strong><\/em>\u00a0button.<\/li><li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2153\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/whm2-300x168.png\" alt=\"\" width=\"300\" height=\"168\" \/><\/li><li>Scroll down and locate\u00a0<em><strong>Allow incoming TCP ports<\/strong><\/em>\u00a0section. Enter the port you wish to open and click on the\u00a0<em><strong>Change<\/strong><\/em>\u00a0button at the bottom to save your changes.<\/li><li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2155\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/whm3-300x96.png\" alt=\"\" width=\"300\" height=\"96\" \/><\/li><li>Lastly, you will need to restart csf by clicking on\u00a0<em><strong>Restart csf+lfd<\/strong><\/em>\u00a0button.<\/li><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How To Open Ports in WHM\/SSH Firewall Open Port in CSF Firewall through SSH\u00a0 Login to your Linux Server through SSH. Open csf.conf file using any text editor.\/etc\/csf\/csf.conf Add the port you wish to open and restart CSF firewall for the changes to take into effect.# Allow incoming TCP portsTCP_IN = &#8220;20,443,465,21,22,587,993,25,53,80,110,143,995&#8221;# Allow outgoing TCP &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/how-to-open-ports-in-whm-ssh-firewall\"> <span class=\"screen-reader-text\">How to open ports in WHM\/SSH firewall?<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[44],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2150"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2150"}],"version-history":[{"count":9,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2150\/revisions"}],"predecessor-version":[{"id":18414,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2150\/revisions\/18414"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2150"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2150"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2150"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}