How to Configure a Firewall on Windows VPS

A firewall is software or firmware that prevents unauthorized access to a system. It employs a set of rules to evaluate incoming and outgoing communications in order to detect and prevent threats.  

Firewalls are used in both personal and business settings. Many devices, including Windows and Linux servers, include one as standard. They are commonly regarded as an important component of network security. 

Is my Windows Server protected by Firewall? 

The administration console for Windows Firewall with Advanced Security stores all Windows Firewall configurations. Windows Firewall is a host-based firewall that comes standard with almost all modern Windows operating systems. 

There are several methods for accessing the Windows Firewall with Advanced Security console. Regardless of which method you use, the Windows Firewall MMC will open, allowing you to make additional firewall configurations for all profiles. 

1. Launch Windows Firewall with Advanced Security from the Run box. To open the console, press Win + R, type wf. msc, and press Enter. This command can also be executed using Command Prompt or Windows PowerShell.

blobid0.png

 

2. Type "firewall with" into the Start menu. As one of the search results, you should notice the Windows Firewall with Advanced Security icon. 

blobid2.png

 

3. Go to the firewall MMC, use the Server Manager. When the window opens, go to Tools in the top-right corner and scroll down to the Windows Firewall with Advanced Security option. 

blobid3.png

 

Using the command line, quickly enable or disable Windows Firewall. 

These commands must be executed from a PowerShell or administrator command prompt. 

1. Turn on the firewall using netsh 

netsh advfirewall set allprofiles state on 

2. Turn off the firewall using netsh 

netsh advfirewall set allprofiles state off 

3. Turn on the firewall using Windows PowerShell 

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True 

4. Turn off the firewall using Windows PowerShell 

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False 
Was this article helpful?
3 out of 3 found this helpful

Comments

0 comments

Article is closed for comments.

Articles in this section

See more