{"id":16751,"date":"2020-12-29T02:18:57","date_gmt":"2020-12-29T02:18:57","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=16751"},"modified":"2020-12-29T02:18:57","modified_gmt":"2020-12-29T02:18:57","slug":"close-tcp-udp-port-using-windows-firewall","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/close-tcp-udp-port-using-windows-firewall\/","title":{"rendered":"How to Close a TCP \/ UDP Port Using Windows Firewall"},"content":{"rendered":"<p>Is it possible to block telnet access to port 23? Open ports can pose a security risk and it&#8217;s a good practice to close some unused ports. In this tutorial we&#8217;ll walk you through the procedure of closing a TCP or UDP port in Windows 10, without using any third-party software.<\/p>\n<p><strong>How to Close a TCP \/ UDP Port Using Windows Firewall<\/strong><\/p>\n<ol>\n<li>Press the <strong>Windows<\/strong> key and <strong>R<\/strong> to bring up the Run box, enter <strong>wf.msc<\/strong> and hit Enter to open Windows Firewall.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/01\/wf-msc.png\" width=\"401\" height=\"207\" class=\"alignnone size-full\" \/>\n<\/li>\n<li>Right-click on <strong>Inbound Rules<\/strong> in the left pane, and then select <strong>New Rule<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/inbound-rules.png\" alt=\"\" width=\"600\" height=\"324\" class=\"alignnone size-full wp-image-16755\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/inbound-rules.png 600w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/inbound-rules-300x162.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>\n<\/li>\n<li>When the New Inbound Rule Wizard window opens, select <strong>Port<\/strong> as the rule type. Click <strong>Next<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/rule-type.png\" alt=\"\" width=\"595\" height=\"386\" class=\"alignnone size-full wp-image-16756\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/rule-type.png 595w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/rule-type-300x195.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/>\n<\/li>\n<li>Choose the type of connection to apply, either <strong>TCP<\/strong> or <strong>UDP<\/strong>. For safety purposes, I&#8217;m going to block incoming connections through remote desktop services, so I choose TCP and enter the port 3389.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/protocol-and-ports.png\" alt=\"\" width=\"588\" height=\"340\" class=\"alignnone size-full wp-image-16757\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/protocol-and-ports.png 588w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/protocol-and-ports-300x173.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/>\n<\/li>\n<li>Select the <strong>Block the connection<\/strong> option and click <strong>Next<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/block-the-connection.png\" alt=\"\" width=\"586\" height=\"341\" class=\"alignnone size-full wp-image-16758\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/block-the-connection.png 586w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/block-the-connection-300x175.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/>\n<\/li>\n<li>Check all the profiles available (<strong>Domain<\/strong>, <strong>Private<\/strong> and <strong>Public<\/strong>) and click <strong>Next<\/strong>. Generally you should at least ensure &#8220;Public&#8221; is checked.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/apply-rule-to-profile.png\" alt=\"\" width=\"588\" height=\"322\" class=\"alignnone size-full wp-image-16759\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/apply-rule-to-profile.png 588w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/apply-rule-to-profile-300x164.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/>\n<\/li>\n<li>Give a name for this new rule and click on <strong>Finish<\/strong>.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/name-firewall-rule.png\" alt=\"\" width=\"600\" height=\"439\" class=\"alignnone size-full wp-image-16760\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/name-firewall-rule.png 600w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2020\/12\/name-firewall-rule-300x220.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>\n<\/li>\n<li>Now you&#8217;ve successfully blocked \/ closed a port using Windows Firewall. Your system will block all the incoming connections on the port you specified. Whenever you need to open the port again, just delete the firewall rule you&#8217;ve created.<\/li>\n<\/ol>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Is it possible to block telnet access to port 23? Open ports can pose a security risk and it&#8217;s a good practice to close some unused ports. In this tutorial we&#8217;ll walk you through the procedure of closing a TCP or UDP port in Windows 10, without using any third-party software. How to Close a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894],"tags":[4625,4624],"class_list":["post-16751","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","tag-block-ports-in-windows","tag-close-port-windows-10"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=16751"}],"version-history":[{"count":9,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16751\/revisions"}],"predecessor-version":[{"id":16766,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/16751\/revisions\/16766"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=16751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=16751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=16751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}