Setting up Windows Firewall with Advanced Security on Windows Server 2022

2021-09-23 By Nathan 1370 Views windows firewall security networking
24 reviews

Firewall is an integral part of any system and can be used to protect a server against unauthenticated access from the outside world. It helps to prevent hackers from logging into servers on the network. Firewall can also be used to set up specific rules in-order to restrict access to specific ports of the system based on IP address.


The basic functionality of a firewall is to control the incoming and outgoing traffic and choose whether to block a particular connection or let it through based on the defined set of security rules.


winfirewall16


We can use the below steps for managing Windows 2022 firewall settings.


  1. Log in to the Windows server and open Firewall using the command firewall.cpl in the run dialog box (*Windows key+R will open Run dialog box).

    win22firewall14

  2. Under firewall settings, there are two sections called Private networks and Guest or public networks with green shields to the left of them, which says that the firewall is active. If they are on red shields, then the firewall is disabled.

  3. Click on either of these sections, it will prompt a drop-down menu with details about the current public or private networks.

    win22firewall2

  4. Now select the Advanced settings option from the left-hand side of the page.

    win22firewall3

  • Inbound Rules : Which incoming connections are automatically allowed.

  • Outbound Rules : Which outgoing connections are automatically allowed.

  • Connection Security Rules : Baselines for which connections your computer will allow and which ones it will block.

  • Monitoring : This is an overview of your firewall's basic monitoring guidelines.


Steps to open/limit a port in Windows 2022


  1. Navigate to the Firewall advanced settings page. Now select the Inbound Rules option from the left list options.

    win22firewall4

  2. Now right click on the Inbound Rules and select New Rule option.

    win22firewall5

  3. Upon selection of the new rule, the box appears and select the Port.

    win22firewall6

  4. Click Next and choose the appropriate rule whether it is TCP or UDP and enter your required custom port.

    win22firewall7

  5. Now, the action to be performed in the given firewall rule is defined. Choose whether Allow the connection or Block the connection.

    win22firewall8

  6. To configure the firewall rule i.e specify the profile in which the rule is to be applied, whether it is public, or private, or a particular Domain.

    win22firewall9

  7. Finally the rule is to be named and saved so as to identify with ease. Click Finish.

    win22firewall10


Steps to open/limit a Network in Windows 2022


  1. Come to Advanced Settings of the Windows firewall and select the Inbound Rules from the left pane.

    win22firewall11

  2. Now, right-click the rule you wish to configure and then, choose the Properties.


    Here you would require to select the rule wisely as below:

  • Allow Particular Network : Create a Firewall rule to Allow a port and use that rule’s properties to edit scope.

  • Block Particular Network : Create a Firewall rule to Block a port and use that rule’s properties to edit scope.

  1. Click the Scope Tab and you may be able to add an IP address or a range of IP addresses by clicking Add button.

    win22firewall12

    win22firewall13


    You may please select any of the following 2 options and then click OK.

  • This IP Address or Subnet: Type an IP address (such as 192.168.0.12) or a subnet using Classless Inter Domain Routing (CIDR) notation (such as 192.168.0.0/24) that should be allowed for the firewall rule.

  • This IP Address Range: Using the From and To boxes, type the first and last IP address that should be allowed to use the firewall rule and then click OK.


Related Feature on LayerPanel


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Plans

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.