How to add a new rule to the Windows Firewall in Windows Server 2022

When working with a remote desktop or server on Windows, users often encounter moments when for the correct and full work of the software used requires additional rules in the standard security system Widows Firewall, which restricts incoming and outgoing connections to the server thus protecting it from external threats from the network.

Standard Windows Firewall security rules are configured so that access to the device is strictly limited by the network and almost all network ports are protected. But it is not uncommon for a user to need to open an incoming or outgoing port on the Windows Firewall. Let's consider adding a new incoming connection port for the remote desktop service on a non-standard port.

First we need to open the Windows Defender Firewall with Advanced Security control center. There are several ways to do this:

From the Start menu
Open the Start menu and find the corresponding shortcut under Administrative Tools

Start Menu - Windows Administrative Tools - Windows Defender Firewall with Advanced Security

Open Windows Defender Firewall with Advanced Security via start

 

Through the Server Manager console
In the Server Manager console for Windows Server, go to Local Server and then click to change the Microsoft Defender Firewall setting.

Open Windows Defender Firewall with Advanced Security via server manager

Next, click the Advanced Settings link.

Firewall and network protection

 

Via the command line cmd
Use Win+R to open the "Run" window and type in "wf.msc"

Open Windows Defender Firewall with Advanced Security via cmd

We have successfully launched the Windows Defender Firewall with Advanced Security control center. In the window that opens, on the left side, you can see the options navigation, where you can select the rules you want to change (incoming or outgoing connections).

Windows Defender Firewall with Advanced Security

Let's go to the Inbound Connections section and right-click on the Inbound Rule to create a new rule.

Windows Defender Firewall with Advanced Security Add New Rule

Select the type of rule. This can be a program specific permission or a separately configurable rule (custom).
Since we want to allow RDP connections for a specific port, we select "Port".

Windows Firewall Rule Type

Specify the port number. In our case "33892"

Windows Firewall New Rule Port

Enable our rule for the firewall zones.

Windows Firewall Select zones for rule

The choice of a particular zone is determined by which earlier zone the device on which we are making the settings was connected and configured: 

- Domain - the rule applies only when the computer is connected to a network domain.
- Private - the rule applies only when the computer is connected to a trusted private network
- Public - the rule applies only when the computer is connected to an untrusted public network

Allow connections to our rule

Windows Firewall allow connections for rule

Specify the name of the rule to be set to identify it in the list of all firewall rules.

Windows Firewall name of the rule

We have successfully created a new inbound connection rule for our server with you!
Using this method, you can now freely add new rules not only for incoming but also for outgoing connections. Select specific programs and create your own rule variants.

 

How to reset Windows Firewall rules?

Users who are not yet quite familiar with Windows Firewall and Windows Defender Firewall with Advanced Security often have situations where a new added rule can block access to the desired program. And when there are a lot of such rules, you might wonder how to reset all Windows Firewall rules to their default values. This is a very useful tool for those who have not yet mastered the intricacies of Windows Firewall and want to reset all settings to defaults.
It is worth noting that this method is only good for local systems to which you have physical access, because if you are working through a remote desktop, resetting Windows Firewall will block access to the RDP port, since by default this port is limited to network security. 

We strongly advise to use this on dedicated servers, VPS/VDS or remote desktop only if you have physical or virtual access to manage your server system or device over the Internet. This can be IPMI, IP-KVM, VNC services for remote server administration.

To reset Windows Firewall rules, go to the Firewall & network protection settings window using the method described at the beginning of this article and click the "Restore firewalls to default" link.

Restore firewalls to default

In the new window click on "Restore defaults" and then agree with the risks of this operation.

Restore defaults


Anyway, we would like to remind you that we provide remote desktop rental with full access to the virtual server. This means that even if you do something wrong and you lose access to your remote desktop over the network, we can give you access to the VNC console or perform operations on the server ourselves to make it available again. This feature is absolutely free and supported by all our remote desktop services with full administrator access.

Remote desktop rentals in Europe and the US are available at the link below.

https://finerdp.com/rdp-server

Available locations

USA
Ukraine
Netherlands
Poland
Latvia

Click on Flag

Why you should buy RDP server in from us.

The remote desktop protocol is an approach to accessing windows from a remote area without really accessing your device from its actual location. Moreover, the users using the remote desktop protocol can utilize their windows platform anytime and any place they want. The remote desktop protocol is a product from Microsoft Corporation. The protocol came in to deliver the windows server at residence. Using the remote desktop protocol is easy. It is as comfortable as hitting an icon to control your Windows from any other external computer or smart device. The remote desktop control also enables you to share the mouse and keyboard activity with the remote device. Users accessing the remote desktop control can access the Windows/ computer as if they are working on the same computer. It creates an exact ditto environment to work on. The significance of RDP has made it popular among users.

If you still have uncertainties in your mind, you can read out a detailed guide.

If you want to access the RDP, then you need to have the following things. This indulges connecting yourself to the remote. Thus, you need the following things.

  • The system that you want to access remotely should have RDP program in it. However, if it is a windows system, you can get it by default.
  • The user should have a strong and stable internet connection. The minimum upload and download speed should be more than or equivalent to 2 MBPS.

All plans that we offer are exclusively private. That is why every RDP plan comes with full admin access.

In most cases, the RDP details get delivered within an hour after payment. However, in some cases this may take several hours.