{"id":2150,"date":"2016-06-30T18:16:59","date_gmt":"2016-06-30T22:16:59","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2150"},"modified":"2018-01-12T14:06:25","modified_gmt":"2018-01-12T19:06:25","slug":"open-ftp-passive-ports-cpanelwhm","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/","title":{"rendered":"How to open FTP passive ports in cPanel\/WHM"},"content":{"rendered":"<h1>How to open FTP passive ports in cPanel\/WHM<\/h1>\n<p>cPanel is a popular proprietary web hosting control panel on Linux systems that provides a host of tools for configuring and managing a hosted web site. It&#8217;s commonly accessed via WebHost Manager, or WHM.<\/p>\n<p>One of the protocols you can configure using cPanel\/WHM is the File Transfer Protocol, or FTP. This protocol is one of the oldest still in use, having first been written in 1971. It&#8217;s typically used by website maintainers to upload data to the server.<\/p>\n<p>Many administrators find it necessary early on to enable passive mode FTP. This is because the default, active mode FTP, isn&#8217;t usable when the client is behind a NAT firewall, due to NAT blocking requests from the server that use different ports than the first connection. Since NAT is in place for the majority of connecting users, you will almost certainly have to enable passive mode FTP yourself.<\/p>\n<p>The following guide will teach you how to enable passive mode FTP using cPanel\/WHM terminal commands.<\/p>\n<h2>Getting started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>)<br \/>\n\u2022 SSH root access on the server.<\/p>\n<h2>Tutorial<\/h2>\n<p>At the installation of cPanel\/WHM, the FTP passive ports are not open by default in either the FTP configuration or in the firewall. This example will show you how to open those ports if you are running the pure-ftp daemon.<\/p>\n<p>First, go ahead and open the pure-ftp config file in an editor. You&#8217;ll have to modify this line:<\/p>\n<p><code>nano \/etc\/pure-ftpd.conf<\/code><\/p>\n<p>Find this line :<\/p>\n<p><code class=\"gris\"> #Port range for passive connections replies. - for firewalling.<br \/>\n #PassivePortRange          30000 50000<\/code><\/p>\n<p>And remove the comment :<\/p>\n<p><code class=\"gris\"> #Port range for passive connections replies. - for firewalling.<br \/>\nPassivePortRange          30000 50000<\/code><\/p>\n<p>Save and exit. Restart the pure-ftp service so it reflects the changes.<br \/>\n<code>\/etc\/init.d\/pure-ftpd restart<\/code><\/p>\n<p>Now, open the ports used by passive mode FTP in your firewall.<br \/>\n<code>iptables -I INPUT 2 -p tcp --dport 30000:50000 -j ACCEPT<\/code><\/p>\n<p>You can now save your firewall rules.<br \/>\n<code>service iptables save<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>Once you&#8217;ve made these changes, passive mode FTP will be working on your server. Clients behind a firewall will be able to connect to your server through FTP without difficulty. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to open FTP passive ports in cPanel\/WHM cPanel is a popular proprietary web hosting control panel on Linux systems that provides a host of tools for configuring and managing a hosted web site. It&#8217;s commonly accessed via WebHost Manager, or WHM. One of the protocols you can configure using cPanel\/WHM is the File Transfer<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":2189,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-2150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to open FTP passive ports in cPanel\/WHM - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now &amp; start managing and configuring you hosted Website.\" \/>\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.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to open FTP passive ports in cPanel\/WHM - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now &amp; start managing and configuring you hosted Website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-30T22:16:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T19:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"333\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/\",\"name\":\"How to open FTP passive ports in cPanel\/WHM - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png\",\"datePublished\":\"2016-06-30T22:16:59+00:00\",\"dateModified\":\"2018-01-12T19:06:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now & start managing and configuring you hosted Website.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png\",\"contentUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png\",\"width\":500,\"height\":333,\"caption\":\"ftp passive ports\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to open FTP passive ports in cPanel\/WHM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to open FTP passive ports in cPanel\/WHM - Globo.Tech","description":"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now & start managing and configuring you hosted Website.","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.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/","og_locale":"en_US","og_type":"article","og_title":"How to open FTP passive ports in cPanel\/WHM - Globo.Tech","og_description":"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now & start managing and configuring you hosted Website.","og_url":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/","og_site_name":"Globo.Tech","article_published_time":"2016-06-30T22:16:59+00:00","article_modified_time":"2018-01-12T19:06:25+00:00","og_image":[{"width":500,"height":333,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/","url":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/","name":"How to open FTP passive ports in cPanel\/WHM - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png","datePublished":"2016-06-30T22:16:59+00:00","dateModified":"2018-01-12T19:06:25+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to open FTP passive ports in your cPanel\/WHM. Read now & start managing and configuring you hosted Website.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/06\/ftppassiveports.png","width":500,"height":333,"caption":"ftp passive ports"},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/open-ftp-passive-ports-cpanelwhm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to open FTP passive ports in cPanel\/WHM"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2150"}],"version-history":[{"count":7,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2150\/revisions"}],"predecessor-version":[{"id":4083,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2150\/revisions\/4083"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media\/2189"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}