{"id":718,"date":"2018-04-09T02:15:28","date_gmt":"2018-04-09T02:15:28","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=718"},"modified":"2019-07-01T15:00:47","modified_gmt":"2019-07-01T15:00:47","slug":"how-to-open-port-numbers-and-country-codes-in-configserver-firewall-via-whm","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/how-to-open-port-numbers-and-country-codes-in-configserver-firewall-via-whm\/","title":{"rendered":"How to Open Port Numbers and Country Codes in ConfigServer Firewall via WHM"},"content":{"rendered":"<h4>Open Port numbers in ConfigServer Firewall<\/h4>\n<p>1. Login to your WHM with the root password.<\/p>\n<div class=\"eds-animate  \" data-eds-entry-animation=\"jello\" data-eds-entry-delay=\"0\" data-eds-entry-duration=\"1.0\" data-eds-entry-timing=\"linear\" data-eds-exit-animation=\"\" data-eds-exit-delay=\"\" data-eds-exit-duration=\"\" data-eds-exit-timing=\"\" data-eds-repeat-count=\"1\" data-eds-keep=\"yes\" data-eds-animate-on=\"scroll\" data-eds-scroll-offset=\"75\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-731 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port1-2.jpg\" alt=\"\" width=\"1342\" height=\"598\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port1-2.jpg 1342w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port1-2-300x134.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port1-2-768x342.jpg 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port1-2-1024x456.jpg 1024w\" sizes=\"(max-width: 1342px) 100vw, 1342px\" \/><\/p>\n<\/div>\n<p>2. Once logged in to WHM, you will find the CSF interface under the Plugins section in the left menu.<\/p>\n<p>Click on ConfigServer Security&amp;Firewall or begin typing \u201cfirewall\u201d into WHM\u2019s search box at the top left to quickly locate the link.<\/p>\n<div class=\"eds-animate  \" data-eds-entry-animation=\"jello\" data-eds-entry-delay=\"0\" data-eds-entry-duration=\"1.0\" data-eds-entry-timing=\"linear\" data-eds-exit-animation=\"\" data-eds-exit-delay=\"\" data-eds-exit-duration=\"\" data-eds-exit-timing=\"\" data-eds-repeat-count=\"1\" data-eds-keep=\"yes\" data-eds-animate-on=\"scroll\" data-eds-scroll-offset=\"75\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-763 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port2-1-1.jpg\" alt=\"\" width=\"1358\" height=\"592\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port2-1-1.jpg 1358w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port2-1-1-300x131.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port2-1-1-768x335.jpg 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port2-1-1-1024x446.jpg 1024w\" sizes=\"(max-width: 1358px) 100vw, 1358px\" \/><\/p>\n<\/div>\n<p>Scroll down and locate Allow incoming TCP ports section. Enter the port you wish to open and click on the Change button at the bottom to save your changes.<\/p>\n<p>You will be editing the fields in the\u00a0<strong>Allow incoming TCP ports<\/strong>\u00a0and\u00a0<strong>Allow outgoing TCP ports<\/strong>\u00a0sections.<\/p>\n<ul>\n<li>To allow incoming connections to a port, add the number to the\u00a0<strong>TCP_IN =<\/strong>\u00a0field.<\/li>\n<li>To block incoming connections to a port, remove the port number from the\u00a0<strong>TCP_IN =<\/strong>\u00a0field.<\/li>\n<li>To allow outgoing connections from a port, add the port number to the\u00a0<strong>TCP_OUT =<\/strong>\u00a0field.<\/li>\n<li>To block outgoing connections from a port, remove the port number from the\u00a0<strong>TCP_OUT =<\/strong>\u00a0field.<\/li>\n<\/ul>\n<div class=\"eds-animate  \" data-eds-entry-animation=\"jello\" data-eds-entry-delay=\"0\" data-eds-entry-duration=\"1.0\" data-eds-entry-timing=\"linear\" data-eds-exit-animation=\"\" data-eds-exit-delay=\"\" data-eds-exit-duration=\"\" data-eds-exit-timing=\"\" data-eds-repeat-count=\"1\" data-eds-keep=\"yes\" data-eds-animate-on=\"scroll\" data-eds-scroll-offset=\"75\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-765 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port3-1.jpg\" alt=\"\" width=\"1109\" height=\"202\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port3-1.jpg 1109w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port3-1-300x55.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port3-1-768x140.jpg 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port3-1-1024x187.jpg 1024w\" sizes=\"(max-width: 1109px) 100vw, 1109px\" \/><\/p>\n<\/div>\n<p>Scroll all the way to the bottom of the Firewall Configuration page and click the Change button to save the settings.<\/p>\n<p>After saving the settings, you will be given the option of restarting the firewall or returning to the settings page to continue editing.<\/p>\n<div class=\"eds-animate  \" data-eds-entry-animation=\"jello\" data-eds-entry-delay=\"0\" data-eds-entry-duration=\"1.0\" data-eds-entry-timing=\"linear\" data-eds-exit-animation=\"\" data-eds-exit-delay=\"\" data-eds-exit-duration=\"\" data-eds-exit-timing=\"\" data-eds-repeat-count=\"1\" data-eds-keep=\"yes\" data-eds-animate-on=\"scroll\" data-eds-scroll-offset=\"75\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-726 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port4.jpg\" alt=\"\" width=\"858\" height=\"254\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port4.jpg 858w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port4-300x89.jpg 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port4-768x227.jpg 768w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/p>\n<\/div>\n<p>Since your changes will not take effect until the firewall is restarted, you will need to click the Restart csf+lfd button to apply the new settings.<\/p>\n<h4>Country Code Lists and Settings<\/h4>\n<p>On the Firewall Configuration page, scroll down to the Country Code Lists and Settings section.<\/p>\n<ul>\n<li><strong>CC_ALLOW<\/strong>\u00a0actually opens the firewall to all traffic on all ports from the listed countries, bypassing any port and protocol rules in place. It should not be used.<\/li>\n<li><strong>CC_ALLOW_FILTER<\/strong>\u00a0allows only traffic from the specified country or countries, but respects the port and packet rules elsewhere in the firewall configuration. This is the preferred method for allowing traffic by country code.<\/li>\n<li><strong>CC_DENY<\/strong>\u00a0you\u2019ll want to enter country codes for countries that you would like to block.. here\u2019s an example blocking Russian Federation and China.<\/li>\n<\/ul>\n<div class=\"eds-animate  \" data-eds-entry-animation=\"jello\" data-eds-entry-delay=\"0\" data-eds-entry-duration=\"1.0\" data-eds-entry-timing=\"linear\" data-eds-exit-animation=\"\" data-eds-exit-delay=\"\" data-eds-exit-duration=\"\" data-eds-exit-timing=\"\" data-eds-repeat-count=\"1\" data-eds-keep=\"yes\" data-eds-animate-on=\"scroll\" data-eds-scroll-offset=\"75\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-729 size-full\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port5.jpg\" alt=\"\" width=\"651\" height=\"184\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port5.jpg 651w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2018\/04\/port5-300x85.jpg 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<\/div>\n<p>Scroll to the bottom of the Firewall Configuration page and click on the Change button.\u00a0On the next screen, click the Restart csf+lfd button to restart the firewall with the new settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open Port numbers in ConfigServer Firewall 1. Login to your WHM with the root password. 2. Once logged in to WHM, you will find the CSF interface under the Plugins section in the left menu. Click on ConfigServer Security&amp;Firewall or begin typing \u201cfirewall\u201d into WHM\u2019s search box at the top left to quickly locate the link. Scroll down and locate Allow incoming TCP ports section. Enter the port you wish to open and click on the Change button at the bottom to save your changes. You will be editing the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/718"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":13,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/718\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}