Pages

Banner 468

Tuesday 19 July 2016

Manage the Windows Server 2012 Firewall

0 comments
 
This article will detail how to perform the most common tasks with the windows firewall on Windows Server 2012. This includes managing the firewall settings and creating custom inbound and outbound firewall rules.

Manage firewall settings

The Windows Firewall with Advanced Security is a host-based firewall that runs on Windows Server 2012 and is turned on by default. Firewall settings within Windows Server 2012 are managed from within the Windows Firewall MMC (Microsoft Management Console). To review and set Firewall settings perform the following:
  1. Open the Server Manager from the task bar.
  2. In the right-hand side of the top navigation bar, click Tools and select Windows Firewall with Advanced Security.
  3. First review the current configuration settings by selecting Windows Firewall Properties from the MMC landing page. This allows access to modify the settings for each of the three firewall profiles, Domain, Private, and Public, as well as IPSec settings.

Applying Custom Rules

Custom Rules allow the finest level of control over inbound and outbound traffic to your Windows Server 2012.
  1. If you have not already done so, load the Windows Firewall MMC by opening the Server Manager from the task bar, clicking the Tools menu, and selecting Windows Firewall with Advanced Security.
  2. Select either Inbound Rules or Outbound Rules under Windows Firewall with Advanced Security on the left side of the management console.
    Note: This will provide a listing on each of the currently configured firewall rules. Rules that are currently enabled are denoted by green checkbox icon, while disabled rules display a grey checkbox icon. Right-clicking a rule will allow you toggle enable/disable.
  3. From the right side of either the Inbound Rules or Outbound Rules tab click New Rule.
    The new rule wizard launches.
  4. Select Custom from the Rule Type radial button and click Next.
  5. Select the Program association for the Custom Firewall Rule as either All programs or specify the path to a program and click Next.
  6. From the Protocol type field select the protocol type and click Next.
    Note: This walkthrough uses TCP on port 80 (HTTP) for example purposes.

  7. Select an IP address association for both local and remote addresses and click Next.
  8. For traffic matching the IP address(es) you specified in the previous step, select whether to Allow the connection, Allow the connection if it is secure, or Block the connection and click Next.
    Note: If you choose to allow the connection if it is secure, you can customize this further by clicking Customize.
  9. Select which profiles you want to associate with the custom rule, Domain, Public, or Private, and click Next.
  10. Provide a name for your Firewall rule and an optional description and click Finish.
  11. After you finish creating the rule, it is automatically enabled.
The firewall rule can be found on the corresponding Rule tab, either inbound or outbound depending on the type created. To disable or delete the rule find the rule in the MMC, right-click it, and select either Disable Rule or Delet

Leave a Reply