{"id":462,"date":"2012-11-05T19:02:19","date_gmt":"2012-11-06T00:02:19","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2012\/11\/05\/close-open-ports-for-pci-compliance\/"},"modified":"2025-04-08T11:46:53","modified_gmt":"2025-04-08T15:46:53","slug":"close-open-ports-for-pci-compliance","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/","title":{"rendered":"Close Open Ports for PCI Compliance"},"content":{"rendered":"<p>If you\u2019ve read our previous article on <a href=\"\/support\/security\/how-to-pass-pci-scans\/\">how to pass PCI compliance scans<\/a>, you might have recently failed a PCI scan and are curious about what needs to be done to pass. One of the most common PCI compliance requirements for passing a PCI scan that fails is the use of <a href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/port-scan-with-nmap\/\">open ports<\/a> on the server that have been deemed insecure by your PCI scanning vendor.<\/p>\n\n\n\n<p>In this article we\u2019ll discuss how to use your <a href=\"\/support\/server\/ssh\/root-access-faq\/\">root access<\/a> on your server to <a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\">login with SSH<\/a> to disable specific open ports on the server that could be causing you to fail a PCI compliance scan. It\u2019s also important to mention that just because your PCI compliance vendor fails your website for an open port, it might not necessarily be an actual security risk, and most will allow you to challenge their initial findings as a false positive.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common False Positives<\/h2>\n\n\n\n<p>The following common ports might show up in a failed PCI scan:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>2082<\/strong> \u2013 cPanel<\/li>\n\n\n\n<li><strong>2083<\/strong> \u2013 cPanel SSL<\/li>\n\n\n\n<li><strong>2086<\/strong> \u2013 WHM \u2013 Web Host Manager<\/li>\n\n\n\n<li><strong>2087<\/strong> \u2013 WHM \u2013 Web Host Manager\u00a0SSL<\/li>\n\n\n\n<li><strong>2095<\/strong> \u2013 Webmail<\/li>\n\n\n\n<li><strong>2096<\/strong> \u2013 Webmail SSL<\/li>\n\n\n\n<li><strong>3306<\/strong> \u2013 MySQL Remote Connections<\/li>\n<\/ul>\n\n\n\n<p>These ports are used to access the cPanel, WHM, and webmail interfaces from a web-browser. With the last one being for remote MySQL connections. Sometimes leaving the MySQL port open is fine, since you still have to provide a valid user to login to any databases, but it\u2019s up to your PCI vendor\u2019s discretion on if they\u2019ll allow it to be left open.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Closing a Port in APF (Advanced Policy Firewall)<\/h2>\n\n\n\n<p>Using the steps below we\u2019ll walk you through logging into your server and disabling the remote MySQL port 3306 in your firewall.<\/p>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li><a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\">Login to your server via SSH<\/a> as the root user.<\/li>\n\n\n\n<li>First make a copy of your <strong>apf<\/strong> firewall configration file with the following command:<br><pre class=\"code_block\">cp -frp \/etc\/apf\/conf.apf{,.backup}<\/pre><br><p>This will create a [<strong>\/etc\/apf\/conf.apf.backup<\/strong>] file for you.<\/p><\/li>\n\n\n\n<li>You\u2019ll want to edit the <strong>apf<\/strong> firewall configuration file, which can be done with the following command which will use the <strong>vim<\/strong> text editor:<br><p style=\"clear: both;\"><br><\/p><pre class=\"code_block\">vim \/etc\/apf\/conf.apf<\/pre><br><p style=\"width: 48%; float: left;\">When <strong>vim<\/strong> is first loaded you\u2019ll be in edit mode, meaning if you type something it doesn\u2019t get inserted into the document.<\/p><br><figure><a href=\"\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"842\" height=\"302\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\" class=\"optimized-lcp-image\" alt=\"vim-editing-firewall-edit-mode\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png 842w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode-300x108.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode-768x275.png 768w\"><\/a><\/figure><br><div style=\"clear: both;\"><\/div><br><p style=\"width: 48%; float: left;\">We know that we want to find port <strong>3306<\/strong> so we type in a forward slash <strong>\/<\/strong> which is the <strong>vim<\/strong> command for find and you\u2019ll notice it drops your cursor to the bottom of the screen and now it allows you to type.<\/p><br><figure><a href=\"\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-mode.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"302\" class=\"std_ss\" style=\"width: 48%; float: right;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-mode.png\" alt=\"vim-editing-firewall-find-mode\"><\/a><\/figure><br><div style=\"clear: both;\"><\/div><br><p style=\"width: 48%; float: left;\">Go ahead and enter <strong>3306<\/strong> and press <strong>Enter<\/strong> and you\u2019ll get dropped to the first instance of <strong>3306<\/strong> in the file with it highlighted. This is on the <strong>IG_TCP_CPORTS<\/strong> line of the firewall configuration which are the common allowed inbound TCP ports.<\/p><br><figure><a href=\"\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-results.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"302\" class=\"std_ss\" style=\"width: 48%; float: right;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-results.png\" alt=\"vim-editing-firewall-find-results\"><\/a><\/figure><br><div style=\"clear: both;\"><\/div><br><p style=\"width: 48%; float: left;\">Now because your cursor is right at where <strong>3306<\/strong> begins you can simply hit the <strong>Delete<\/strong> key on your keyboard <strong>5<\/strong> times, 4 of those will get rid of <strong>3306<\/strong> and the 5th will get rid of the extra comma left over.<\/p><br><figure><a href=\"\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-delete.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"302\" class=\"std_ss\" style=\"width: 48%; float: right;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-delete.png\" alt=\"vim-editing-firewall-find-delete\"><\/a><\/figure><br><div style=\"clear: both;\"><\/div><br><p style=\"width: 48%; float: left;\">Now hit the colon <strong>:<\/strong> key to enter command mode, and type in <strong>wq<\/strong> to (w)rite the file and (q)uit the vim editor.<\/p><br><figure><a href=\"\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-save-and-quit.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"302\" class=\"std_ss\" style=\"width: 48%; float: right;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-find-save-and-quit.png\" alt=\"vim-editing-firewall-find-save-and-quit\"><\/a><\/figure><br><div style=\"clear: both;\"><\/div><br><\/li>\n\n\n\n<li>Now restart the <strong>apf<\/strong> firewall service with the following command:<br><pre class=\"code_block\">service apf restart<\/pre><p>You\u2019ll see a long list of information scroll by and at the end of it you should see:<\/p><br><pre>apf(1734): {glob} default (egress) output accept<br>apf(1734): {glob} default (ingress) input drop<br>apf(1673): {glob} firewall initialized<br>apf(1673): {glob} fast load snapshot saved<\/pre><br><p>Port <strong>3306<\/strong> should now be blocked to the outside world.<\/p><\/li>\n<\/ol>\n\n\n\n<p>You should now know how to disable ports on your server\u2019s firewall to help pass PCI compliance scans. It\u2019s important to note that changing your firewall settings could potentially lock you out of your server if done incorrectly, so please take caution when doing these edits yourself and contact us if you run into any problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve read our previous article on how to pass PCI compliance scans, you might have recently failed a PCI scan and are curious about what needs to be done to pass. One of the most common PCI compliance requirements for passing a PCI scan that fails is the use of open ports on the<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4299],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-security"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Close Open Ports for PCI Compliance | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Open ports on your server can cause you to fail a PCI compliance scan. In this article we&#039;ll discuss how to close those open ports.\" \/>\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.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Close Open Ports for PCI Compliance | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Open ports on your server can cause you to fail a PCI compliance scan. In this article we&#039;ll discuss how to close those open ports.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-06T00:02:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-08T15:46:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Close Open Ports for PCI Compliance\",\"datePublished\":\"2012-11-06T00:02:19+00:00\",\"dateModified\":\"2025-04-08T15:46:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\"},\"wordCount\":621,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\",\"articleSection\":[\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\",\"name\":\"How to Close Open Ports for PCI Compliance | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\",\"datePublished\":\"2012-11-06T00:02:19+00:00\",\"dateModified\":\"2025-04-08T15:46:53+00:00\",\"description\":\"Open ports on your server can cause you to fail a PCI compliance scan. In this article we'll discuss how to close those open ports.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png\",\"width\":842,\"height\":302,\"caption\":\"vim-editing-firewall-edit-mode\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Close Open Ports for PCI Compliance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Close Open Ports for PCI Compliance | InMotion Hosting","description":"Open ports on your server can cause you to fail a PCI compliance scan. In this article we'll discuss how to close those open ports.","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.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/","og_locale":"en_US","og_type":"article","og_title":"How to Close Open Ports for PCI Compliance | InMotion Hosting","og_description":"Open ports on your server can cause you to fail a PCI compliance scan. In this article we'll discuss how to close those open ports.","og_url":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2012-11-06T00:02:19+00:00","article_modified_time":"2025-04-08T15:46:53+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Close Open Ports for PCI Compliance","datePublished":"2012-11-06T00:02:19+00:00","dateModified":"2025-04-08T15:46:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/"},"wordCount":621,"commentCount":4,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png","articleSection":["Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/","url":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/","name":"How to Close Open Ports for PCI Compliance | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png","datePublished":"2012-11-06T00:02:19+00:00","dateModified":"2025-04-08T15:46:53+00:00","description":"Open ports on your server can cause you to fail a PCI compliance scan. In this article we'll discuss how to close those open ports.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/11\/website_website-troubleshooting_pci-compliance_vim-editing-firewall-edit-mode.png","width":842,"height":302,"caption":"vim-editing-firewall-edit-mode"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/security\/close-open-ports-for-pci-compliance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Close Open Ports for PCI Compliance"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4299,"name":"Security","slug":"security","link":"https:\/\/www.inmotionhosting.com\/support\/security\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":8,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":129910,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/462\/revisions\/129910"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}