{"id":6034,"date":"2023-07-24T15:36:35","date_gmt":"2023-07-24T15:36:35","guid":{"rendered":"https:\/\/www.webhi.com\/how-to\/?p=6034"},"modified":"2023-07-24T15:36:37","modified_gmt":"2023-07-24T15:36:37","slug":"how-to-configure-windows-2016-2019-2022-server-firewall","status":"publish","type":"post","link":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/","title":{"rendered":"How to configure Windows Server Firewall"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en.jpg\" alt=\"Configuration of Windows Server 2019 Firewall\" class=\"wp-image-6128\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en.jpg 1200w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en-300x169.jpg 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en-1024x576.jpg 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en-768x432.jpg 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en-150x84.jpg 150w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>Firewalls are a critical component of securing modern networks with internet access. Without firewalls in place, malicious actors could easily access and infect devices on a network. Properly configured firewalls substantially reduce undesirable communications.<\/p>\n\n\n\n<p>This article explains\u00a0<strong>how to create firewall rules using the Windows Firewall with Advanced Security console and Windows PowerShell on Windows Server 2016 \/ 2019 \/ 2022<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-firewall\">What is a Firewall?<\/h2>\n\n\n\n<p>A firewall controls the flow of data packets in and out of a network. It acts like a barrier, similar to how a physical firewall prevents the spread of fire between compartments. The firewall allows or blocks connections according to configured firewall rules.<\/p>\n\n\n\n<p>Computers behind a firewall cannot receive data until it passes the filters. This greatly enhances security and reduces unauthorized access risks. Benefits of firewalls:<\/p>\n\n\n\n<ul>\n<li>Protect devices by blocking undesired traffic<\/li>\n\n\n\n<li>Notify administrators of connection attempts<\/li>\n\n\n\n<li>Log activity for monitoring<\/li>\n\n\n\n<li>Prevent spread of infections<\/li>\n\n\n\n<li>Reduce hacking risks<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-windows-server-2019-firewalls-work\">How Windows Server 2016 \/ 2019 \/ 2022 Firewalls Work<\/h2>\n\n\n\n<p>The Windows firewall acts as a barrier between local network devices and external networks. When a connection is attempted to a server, the firewall intercepts the traffic and evaluates it against the defined rules.<\/p>\n\n\n\n<p>Only network packets that match the configured rules are allowed through. For example, a rule could allow TCP traffic on port 80 while blocking other ports. Carefully configured rules optimize security while allowing desired connections.<\/p>\n\n\n\n<p>Windows provides inbound rules to control incoming traffic and outbound rules to filter outgoing traffic. Rules can be tailored for each network profile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"windows-firewall-with-advanced-security\">Windows Firewall with Advanced Security<\/h2>\n\n\n\n<p>Windows Firewall with Advanced Security provides the management interface for configuring Windows firewall settings. It comes built-in to Windows Server without needing additional licensing or hardware.<\/p>\n\n\n\n<p>There are three default firewall profiles:<\/p>\n\n\n\n<ul>\n<li><strong>Domain<\/strong>&nbsp;&#8211; For corporate networks with detected domain controllers<\/li>\n\n\n\n<li><strong>Private<\/strong>&nbsp;&#8211; For home or office networks behind a gateway device<\/li>\n\n\n\n<li><strong>Public<\/strong>&nbsp;&#8211; For untrusted public networks with internet access<\/li>\n<\/ul>\n\n\n\n<p>Profiles allow custom rules per network type. You can enable, disable, or configure profiles independently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"accessing-the-firewall-console\">Accessing the Firewall Console<\/h2>\n\n\n\n<p>To open the Windows Firewall with Advanced Security console:<\/p>\n\n\n\n<ul>\n<li>Open&nbsp;<strong>Server Manager<\/strong>&nbsp;&gt;&nbsp;<strong>Tools<\/strong>&nbsp;&gt;&nbsp;<strong>Windows Firewall with Advanced Security<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1068\" height=\"714\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1.png\" alt=\"Windows Firewall with Advanced Security\" class=\"wp-image-6042\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1.png 1068w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1-300x201.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1-1024x685.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1-768x513.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/1-150x100.png 150w\" sizes=\"(max-width: 1068px) 100vw, 1068px\" \/><\/figure>\n\n\n\n<ul>\n<li>Search for \u201cfirewall\u201d in the Start menu and launch the&nbsp;<strong>Windows Firewall<\/strong>&nbsp;shortcut<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1230\" height=\"696\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2.png\" alt=\"Windows Firewall with Advanced Security in search windows\" class=\"wp-image-6043\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2.png 1230w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2-300x170.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2-1024x579.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2-768x435.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/2-150x85.png 150w\" sizes=\"(max-width: 1230px) 100vw, 1230px\" \/><\/figure>\n\n\n\n<ul>\n<li>Run&nbsp;<strong>wf.msc<\/strong>&nbsp;in the Run command (Win + R)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"425\" height=\"236\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/3.png\" alt=\"wf.msc Windows Firewall with Advanced Security windows\" class=\"wp-image-6044\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/3.png 425w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/3-300x167.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/3-150x83.png 150w\" sizes=\"(max-width: 425px) 100vw, 425px\" \/><\/figure>\n\n\n\n<p>The left menu allows configuring inbound rules, outbound rules, connection security, and monitoring.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configuring-firewall-rules\">Configuring Firewall Rules<\/h2>\n\n\n\n<p>Firewall rules control whether to allow or block specific network connections. Rules can filter by:<\/p>\n\n\n\n<ul>\n<li>Program path<\/li>\n\n\n\n<li>Port and protocol<\/li>\n\n\n\n<li>Predefined service<\/li>\n\n\n\n<li>Source\/destination IP<\/li>\n\n\n\n<li>Network interface<\/li>\n\n\n\n<li>And more&#8230;<\/li>\n<\/ul>\n\n\n\n<p>Follow these steps to create an inbound firewall rule:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Open the Firewall console and select&nbsp;<strong>Inbound Rules<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1046\" height=\"785\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4.png\" alt=\"Windows server Defender Firewall with Advanced Security inbound rules\" class=\"wp-image-6045\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4.png 1046w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4-300x225.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4-1024x768.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4-768x576.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/4-150x113.png 150w\" sizes=\"(max-width: 1046px) 100vw, 1046px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2. Click&nbsp;<strong>New Rule<\/strong>&nbsp;to launch the rule wizard<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1046\" height=\"785\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5.png\" alt=\"Windows server Defender Firewall with Advanced Security inbound rules new rules\" class=\"wp-image-6046\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5.png 1046w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5-300x225.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5-1024x768.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5-768x576.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/5-150x113.png 150w\" sizes=\"(max-width: 1046px) 100vw, 1046px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">3. Select the rule type &#8211; Program, Port, Predefined, or Custom<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1055\" height=\"789\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6.png\" alt=\"Windows Defender Firewall with Advanced Security new inbound rule\" class=\"wp-image-6047\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6.png 1055w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6-300x224.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6-1024x766.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6-768x574.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/6-150x112.png 150w\" sizes=\"(max-width: 1055px) 100vw, 1055px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">4. Choose All Programs or a Program path<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"714\" height=\"581\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/7.png\" alt=\"Windows Defender Firewall with Advanced Security new inbound rule program select\" class=\"wp-image-6048\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/7.png 714w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/7-300x244.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/7-150x122.png 150w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/7-220x180.png 220w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">5. Choose Action (allow or block) or allow if connection is secured<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"716\" height=\"593\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/8.png\" alt=\"Windows Defender Firewall with Advanced Security new inbound rule allow and block\" class=\"wp-image-6049\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/8.png 716w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/8-300x248.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/8-150x124.png 150w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">6. Choose profiles<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"715\" height=\"584\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/9.png\" alt=\"Windows Defender Firewall with Advanced Security new inbound rule profiles\" class=\"wp-image-6050\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/9.png 715w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/9-300x245.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/9-150x123.png 150w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/9-220x180.png 220w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">7. Name the rule and click&nbsp;<strong>Finish<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"714\" height=\"580\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/10.png\" alt=\"Windows Defender Firewall with Advanced Security new inbound rule name and description\" class=\"wp-image-6051\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/10.png 714w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/10-300x244.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/10-150x122.png 150w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/10-220x180.png 220w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<p>Repeat the wizard for outbound rules. Once created, rules can be edited or disabled from the console.<\/p>\n\n\n\n<p>Rules can also be created from PowerShell. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">PS C:\\Users\\Administrator&gt; New-NetFirewallRule -DisplayName \"Allow SSH\" -Enabled True -Direction Inbound -Action Allow -Protocol TCP -LocalPort 22<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1057\" height=\"428\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11.png\" alt=\"Firewall Rules created from PowerShell\" class=\"wp-image-6052\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11.png 1057w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11-300x121.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11-1024x415.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11-768x311.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/11-150x61.png 150w\" sizes=\"(max-width: 1057px) 100vw, 1057px\" \/><\/figure>\n\n\n\n<p>Monitor active connections under the&nbsp;<strong>Monitoring<\/strong>&nbsp;tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1503\" height=\"783\" src=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12.png\" alt=\"Windows Defender Firewall with Advanced Security Monitoring\u00a0tab\" class=\"wp-image-6053\" srcset=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12.png 1503w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12-300x156.png 300w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12-1024x533.png 1024w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12-768x400.png 768w, https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/12-150x78.png 150w\" sizes=\"(max-width: 1503px) 100vw, 1503px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>The Windows Firewall provides a flexible and granular rule-based firewall solution for Windows Server 2016, 2019 and 2022. The advanced interface allows creating detailed rules to filter incoming and outgoing traffic as needed. Monitor activity to verify your rules are working correctly. Careful configuration enhances security while allowing desired connections.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Firewalls are a critical component of securing modern networks with internet access. Without firewalls in place, malicious actors could easily access and infect devices on a network. Properly configured firewalls substantially reduce undesirable communications. This article explains\u00a0how to create firewall rules using the Windows Firewall with Advanced Security console and Windows PowerShell on Windows ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,53],"tags":[],"yoast_head":"\n<title>How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations<\/title>\n<meta name=\"description\" content=\"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.\" \/>\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.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"og:description\" content=\"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHi Tutorials &amp; Documentations\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhi.technology\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-24T15:36:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-24T15:36:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en.jpg\" \/>\n<meta name=\"author\" content=\"webhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:site\" content=\"@WebHiTechnology\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\"},\"author\":{\"name\":\"webhi\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\"},\"headline\":\"How to configure Windows Server Firewall\",\"datePublished\":\"2023-07-24T15:36:35+00:00\",\"dateModified\":\"2023-07-24T15:36:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\"},\"wordCount\":584,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"articleSection\":[\"Security\",\"Windows system administration\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\",\"name\":\"How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\"},\"datePublished\":\"2023-07-24T15:36:35+00:00\",\"dateModified\":\"2023-07-24T15:36:37+00:00\",\"description\":\"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webhi.com\/how-to\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure Windows Server Firewall\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#website\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"name\":\"WebHi Tutorials &amp; Documentations\",\"description\":\"System administration and knowledge base\",\"publisher\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#organization\",\"name\":\"WebHi Technology\",\"url\":\"https:\/\/www.webhi.com\/how-to\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png\",\"width\":288,\"height\":95,\"caption\":\"WebHi Technology\"},\"image\":{\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webhi.technology\",\"https:\/\/twitter.com\/WebHiTechnology\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54\",\"name\":\"webhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"contentUrl\":\"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743\",\"caption\":\"webhi\"},\"sameAs\":[\"https:\/\/www.webhi.com\/how-to\"],\"url\":\"https:\/\/www.webhi.com\/how-to\/author\/webhi\/\"}]}<\/script>\n","yoast_head_json":{"title":"How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations","description":"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.","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.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/","og_locale":"en_US","og_type":"article","og_title":"How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations","og_description":"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.","og_url":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/","og_site_name":"WebHi Tutorials &amp; Documentations","article_publisher":"https:\/\/www.facebook.com\/webhi.technology","article_published_time":"2023-07-24T15:36:35+00:00","article_modified_time":"2023-07-24T15:36:37+00:00","og_image":[{"url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2023\/07\/firewall_win2019_en.jpg"}],"author":"webhi","twitter_card":"summary_large_image","twitter_creator":"@WebHiTechnology","twitter_site":"@WebHiTechnology","twitter_misc":{"Written by":"webhi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#article","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/"},"author":{"name":"webhi","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54"},"headline":"How to configure Windows Server Firewall","datePublished":"2023-07-24T15:36:35+00:00","dateModified":"2023-07-24T15:36:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/"},"wordCount":584,"commentCount":0,"publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"articleSection":["Security","Windows system administration"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/","url":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/","name":"How to configure Windows Server Firewall - WebHi Tutorials &amp; Documentations","isPartOf":{"@id":"https:\/\/www.webhi.com\/how-to\/#website"},"datePublished":"2023-07-24T15:36:35+00:00","dateModified":"2023-07-24T15:36:37+00:00","description":"Learn how to create detailed firewall rules on Windows Server 2019 using the Windows Firewall with Advanced Security interface and PowerShell.","breadcrumb":{"@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhi.com\/how-to\/how-to-configure-windows-2016-2019-2022-server-firewall\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhi.com\/how-to\/"},{"@type":"ListItem","position":2,"name":"How to configure Windows Server Firewall"}]},{"@type":"WebSite","@id":"https:\/\/www.webhi.com\/how-to\/#website","url":"https:\/\/www.webhi.com\/how-to\/","name":"WebHi Tutorials &amp; Documentations","description":"System administration and knowledge base","publisher":{"@id":"https:\/\/www.webhi.com\/how-to\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhi.com\/how-to\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhi.com\/how-to\/#organization","name":"WebHi Technology","url":"https:\/\/www.webhi.com\/how-to\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","contentUrl":"https:\/\/www.webhi.com\/how-to\/gilrogre\/2022\/07\/logo.png","width":288,"height":95,"caption":"WebHi Technology"},"image":{"@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhi.technology","https:\/\/twitter.com\/WebHiTechnology"]},{"@type":"Person","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/b31e76e2311cdc0bb90f5e2733059a54","name":"webhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhi.com\/how-to\/#\/schema\/person\/image\/","url":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","contentUrl":"https:\/\/www.webhi.com\/how-to\/ahuphiph\/litespeed\/avatar\/e20da107d0f4c765ead2eef88ad019d8.jpg?ver=1781214743","caption":"webhi"},"sameAs":["https:\/\/www.webhi.com\/how-to"],"url":"https:\/\/www.webhi.com\/how-to\/author\/webhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6034"}],"collection":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/comments?post=6034"}],"version-history":[{"count":26,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6034\/revisions"}],"predecessor-version":[{"id":6159,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/posts\/6034\/revisions\/6159"}],"wp:attachment":[{"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/media?parent=6034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/categories?post=6034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhi.com\/how-to\/wp-json\/wp\/v2\/tags?post=6034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}