{"id":2659,"date":"2015-05-28T06:28:46","date_gmt":"2015-05-28T06:28:46","guid":{"rendered":"http:\/\/www.esds.co.in\/kb\/?p=2659"},"modified":"2017-12-07T05:47:52","modified_gmt":"2017-12-07T05:47:52","slug":"cpanel-nat-mode","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/","title":{"rendered":"cPanel NAT mode"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2665\" src=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/05\/Ips.png\" alt=\"cPanel NAT mode\" width=\"674\" height=\"260\" srcset=\"https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/05\/Ips.png 674w, https:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/05\/Ips-300x116.png 300w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/>After installing cpanel &amp; WHM, the installer detects for your server on a NAT-configured network. If it is a NAT-configured network, your server will configure itself for NAT mode and attempt to automatically map local IP addresses to public IP addresses\u2019<\/p>\n<p><strong>Enable NAT in cpanel server.<\/strong><\/p>\n<p>File acting as a NAT mode are \/var\/cpanel\/cpnat. In case installer misguidedly detects a NAT-configured network, \/var\/cpanel\/cpnat file can be deleted to disable NAT mode. Cpnat can be rebuilt if needed, to enable it, you can run the following command:<\/p>\n<pre style=\"font-family: monospace; font-size: 0.99em; width: 99%; height: 5%; border: green 2px solid; color: yellow; background-color: #000000;\"> \/scripts\/build_cpnat script<\/pre>\n<p>cPanel tries to attempt to map all non-loopback IP addresses bound to any network interface on the server to a public IP address.<\/p>\n<p>cPanel server then sends an outgoing connection from each local IP address to the <strong>http:\/\/myip.cpanel.net\/v1.0\/<\/strong>\u00a0server.<\/p>\n<p>The build_cpnat script uses http:\/\/myip.cpanel.net\/v1.0\/ to map local IP addresses to public IP addresses.<\/p>\n<p>Following options can be managed for local and remote IP addresses in WHM:<\/p>\n<ul>\n<li>Add a New IP Address<\/li>\n<li>Show or Delete Current IP Address<\/li>\n<li>If multiple local IP addresses match the same public IP address which is NOT recommended, only the first local IP address listed in \/var\/cpanel\/cpnat will be mapped.<\/li>\n<li>If you wish to use a different IP address lookup service, open the \/etc\/cpsources.conf file with your desired editor and add the following link: MYIP=http:\/\/whatismyip.tv\/ip_only<\/li>\n<\/ul>\n<p>Refer with cpanel documentation <a href=\"https:\/\/documentation.cpanel.net\/display\/ALD\/1%3A1+NAT\">https:\/\/documentation.cpanel.net\/display\/ALD\/1%3A1+NAT<\/a> Manage IP Addresses\u00a0and\u00a0Check CPNAT main page for further information.<\/p>\n<p>Image credit: cpanel.net.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After installing cpanel &amp; WHM, the installer detects for your server on a NAT-configured network. If it is a NAT-configured network, your server will configure itself for NAT mode and attempt to automatically map local IP addresses to public IP addresses\u2019 Enable NAT in cpanel server. File acting as a NAT mode are \/var\/cpanel\/cpnat. In&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[624],"tags":[124,436,640,639,312,191],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.9.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>cPanel NAT mode<\/title>\n<meta name=\"description\" content=\"cPanel NAT mode enabling and IP addresses mapping in cpanel is given here.\" \/>\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.esds.co.in\/kb\/cpanel-nat-mode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"cPanel NAT mode\" \/>\n<meta property=\"og:description\" content=\"cPanel NAT mode enabling and IP addresses mapping in cpanel is given here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\" \/>\n<meta property=\"og:site_name\" content=\"ESDS Official Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ESDSdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-28T06:28:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-07T05:47:52+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/05\/Ips.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:site\" content=\"@ESDSDataCenter\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"ESDS Official Knowledgebase\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.esds.co.in\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.esds.co.in\/kb\/wp-content\/uploads\/2015\/05\/Ips.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/#webpage\",\"url\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\",\"name\":\"cPanel NAT mode\",\"isPartOf\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/#primaryimage\"},\"datePublished\":\"2015-05-28T06:28:46+00:00\",\"dateModified\":\"2017-12-07T05:47:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/807313e67c0638369bb6094b4941ae25\"},\"description\":\"cPanel NAT mode enabling and IP addresses mapping in cpanel is given here.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\",\"url\":\"https:\/\/www.esds.co.in\/kb\/cpanel-nat-mode\/\",\"name\":\"cPanel NAT mode\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#\/schema\/person\/807313e67c0638369bb6094b4941ae25\",\"name\":\"Vaishnavi Kulkarni\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.esds.co.in\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7535bc3cc45bc3c067caa9ed33f0f689?s=96&d=mm&r=g\",\"caption\":\"Vaishnavi Kulkarni\"},\"description\":\"Vaishnavi is an Engineer and a blogger with an acute inclination to technology, especially the computing technologies. At ESDS, she explores cases of PaaS and related technologies and gives consultation by means of blogs. Connect with her over Twitter and Facebook\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2659"}],"collection":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/comments?post=2659"}],"version-history":[{"count":6,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2659\/revisions"}],"predecessor-version":[{"id":3459,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/posts\/2659\/revisions\/3459"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/media?parent=2659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/categories?post=2659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/kb\/wp-json\/wp\/v2\/tags?post=2659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}