IT tutorials
 
Technology
 

Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 10) - Configuring firewall rules - Configuring rules using Group Policy

10/13/2014 9:46:20 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Configuring rules using Group Policy

Although the Windows Firewall with Advanced Security is useful for configuring firewall rules and settings on the local computer, in managed environments you will want to use Group Policy to deploy firewall rules and settings on targeted computers. To do this, you can follow these steps:

Use the Group Policy Management Editor to open the Group Policy Object (GPO) that targets the computers on which you want to deploy the firewall policy. You will typically do this using the Group Policy Management Console.

  1. Expand the console tree to display the following policy node (as shown in Figure 13):

    Computer Configuration\Policies\Windows Settings\Security Settings\
    Windows Firewall with Advanced Security\Windows Firewall with Advanced Security
  2. In the details pane, click Windows Firewall Properties if you want to deploy settings for firewall profiles to the targeted computers.

  3. To deploy inbound rules to the targeted computers, right-click on Inbound Rules and select New Rule. Then complete the steps in the New Inbound Rule Wizard to configure the new inbound rule.

  4. To deploy outbound rules to the targeted computers, right-click on Outbound Rules and select New Rule. Then complete the steps in the New Inbound Rule Wizard to configure the new outbound rule.

Configuring firewall rules and settings on targeted computers using Group Policy.
Figure 13. Configuring firewall rules and settings on targeted computers using Group Policy.

Note

Connection security rules

You can also use Windows PowerShell to configure firewall rules and settings in a GPO and then use the GPO to deploy the firewall policy to targeted computers. For example, let’s start by using the Get-NetFirewallProfile cmdlet to view the value of the NotifyOnListen policy setting for the domain firewall profile in the Sales GPO of the corp.fabrikam.com domain:
PS C:\> Get-NetFirewallProfile -Name Domain -PolicyStore corp.fabrikam.com\Sales | `
fl NotifyOnListen

NotifyOnListen : NotConfigured

The command output indicates that this firewall policy setting is not configured in the Sales GPO. To enable this setting, you can pipe the output of the preceding command into the Set-NetFirewallProfile command like this:

C:\> Get-NetFirewallProfile -Name Domain -PolicyStore corp.fabrikam.com\Sales | `
Set-NetFirewallProfile -NotifyOnListen True

You can use Get-NetFirewallProfile again to verify the result:

PS C:\> Get-NetFirewallProfile -Name Domain -PolicyStore corp.fabrikam.com\Sales | `
fl NotifyOnListen

NotifyOnListen : True

Now let’s create a new rule to block outgoing traffic over TCP port 80 on computers targeted by the Sales GPO. To begin with, using the Get-NetFirewallRule cmdlet to target the Sales GPO indicates that there are currently no firewall rules configured in this GPO:

PS C:\> Get-NetFirewallRule -PolicyStore corp.fabrikam.com\Sales

You can use the New-NetFirewallRule cmdlet to create the new rule in the GPO as follows:

PS C:\> New-NetFirewallRule -PolicyStore corp.fabrikam.com\Sales `
-DisplayName "Block Outbound Port 80" -Direction Outbound -LocalPort 80 `
-Protocol TCP -Action Block

Name : {0c7a9c6c-af48-4acf-bcdd-adcf8d9790b2}
DisplayName : Block Outbound Port 80
Description :
DisplayGroup :
Group :
Enabled : True
Profile : Any
Platform : {}
Direction : Outbound
Action : Block
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource :
PolicyStoreSourceType : GroupPolicy

Opening the Sales GPO in the Windows Firewall with Advanced Security snap-in will verify that the new rule has been configured as expected in the firewall policy for the GPO.

 
Others
 
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 9) - Configuring firewall rules - Viewing and managing rules
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 8) - Configuring firewall rules - Creating firewall rules using Windows PowerShell, Creating rules for refreshing Group
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 7) - Configuring firewall rules - Creating a predefined rule, Creating a custom rule
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 6) - Configuring firewall rules - Creating firewall rules, Creating a program rule, Creating a port rule
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 5) - Configuring firewall rules - Types of firewall rules, Rules processing, Rule groups
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 4) - Managing firewall profiles - Configuring logging, Configuring profiles using Windows PowerShell
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 3) - Managing firewall profiles - Configuring profiles, Configuring profile settings
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 2) - Managing firewall profiles
- Windows Server 2012 : Configuring Windows Firewall with Advanced Security (part 1) - Understanding Windows Firewall with Advanced Security
- Microsoft Exchange Server 2013 : Addressing Exchange - Hierarchical address book
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us