{"id":235,"date":"2009-12-11T15:11:44","date_gmt":"2009-12-11T21:11:44","guid":{"rendered":"http:\/\/www.briandeyo.us\/brd\/wp\/?p=235"},"modified":"2009-12-31T15:14:57","modified_gmt":"2009-12-31T21:14:57","slug":"port-exception-not-showing-in-gui-for-windows-firewall-if-gpo-allows-same-port","status":"publish","type":"post","link":"https:\/\/www.briandeyo.us\/index.php\/2009\/12\/11\/port-exception-not-showing-in-gui-for-windows-firewall-if-gpo-allows-same-port\/","title":{"rendered":"Port Exception not showing in GUI for Windows Firewall if GPO allows same port"},"content":{"rendered":"<address>NOTE: I have only verified this topic with Windows server 2003.\u00a0 I expect the same or similar behavior from Windows XP.\u00a0 It is possible that Windows Vista, 7 , server 2008 and everything after is affected if you use only the simple GUI.\u00a0 I doubt this will be an issue with the &#8220;advanced config&#8221; tool.<\/address>\n<p>There is a scenario with a GPO that allows traffic on lets say port UDP 8081.\u00a0 You computer has the GPO applied and has been restared.\u00a0 Inside the GUI you would see the GPO defined port exception listed.\u00a0 And if your GPO settings allow you to add an additional local exceptions, you could add an additional local exception for UDP 8081.\u00a0 Perhaps\u00a0deviating from the GPO by\u00a0only the scope.\u00a0 The port exception will show up in the GUI in bold and all seems well.\u00a0 But then you restart you computer and the newly added local exception disappears from the GUI.\u00a0 When you try to re-add the exception you receive the error<\/p>\n<p>&#8220;The Port &#8216;EXCEPTION NAME (43)&#8217; cannot be added.\u00a0 An entry for the same port &#8216;EXCEPTION NAME (PROTOCOL PORT)&#8217; already exists.&#8221;<\/p>\n<p style=\"TEXT-ALIGN: center\">\u00a0<img decoding=\"async\" class=\"g2image_centered\" title=\"Windows Firewall GPO Ports only showing\" src=\"http:\/\/www.briandeyo.us\/brd\/gallery2\/main.php?g2_view=core.DownloadItem&amp;g2_itemId=66647\" alt=\"Windows Firewall GPO Ports only showing\" \/><\/p>\n<p>No it doesn&#8217;t&#8230; it&#8217;s not in the GUI!\u00a0 As it turns out the rule does still exist.\u00a0 As you add host-based port exceptions that operate on the same port as the GPO, you will need to look elsewhere for your disappearing rules.<\/p>\n<p>You can try in the registry:<\/p>\n<p>check the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\<br \/>\n(continued)Parameters\\FirewallPolicy\\DomainProfile\\GloballyOpenPorts\\List<\/p>\n<p>Or you can try the command-line interface for the firewall:<\/p>\n<ol>\n<li>open a command prompt and run command &#8220;netsh&#8221;<\/li>\n<li>type &#8220;firewall&#8221; to switch to the firewall interface<\/li>\n<li>type &#8220;show portopening&#8221;<\/li>\n<li>if your port exceptions are already defined\u00a0 you will seem them here.<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"g2image_centered aligncenter\" title=\"Windows Firewall CLI Local Ports showing\" src=\"http:\/\/www.briandeyo.us\/brd\/gallery2\/main.php?g2_view=core.DownloadItem&amp;g2_itemId=66640\" alt=\"Windows Firewall CLI Local Ports showing\" \/><\/p>\n<p>If you like you can delete them here using the command:<\/p>\n<p style=\"padding-left: 30px;\">type &#8220;delete portopening NAME_OF_EXCEPTION&#8221; example &#8220;delete portopening TCP 9898&#8221; and then recreate your port opening in the GUI.<\/p>\n<p>Even if you do recreate your rule in the GUI it will disappear from there the next time you restart.\u00a0 Become familiar with the\u00a0CLI if you plan on using Windows Firewall with GPO&#8217;s and local port exceptions.<\/p>\n<p>This flaw does give me a bit of pause to consider the security ramifications of this. If I were aware of this flaw it would be very easy to hide a firewall rule from the average user under the above circumstances. It&#8217;s a good thing that most people who are part of a domain using GPO&#8217;s do not use Windows Firewall as the sole mechanism blocking malicious traffic. This also shows that Linux admins are right when they talk about needing to know the CLI for your OS.<\/p>\n<address style=\"text-align: center;\">Thanks to DJ JohnnyK for helping on this!<\/address>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: I have only verified this topic with Windows server 2003.\u00a0 I expect the same or similar behavior from Windows XP.\u00a0 It is possible that Windows Vista, 7 , server 2008 and everything after is affected if you use only the simple GUI.\u00a0 I doubt this will be an issue with the &#8220;advanced config&#8221; tool. &hellip;<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":12,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/posts\/235\/revisions\/242"}],"wp:attachment":[{"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.briandeyo.us\/index.php\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}