Firewall configuration can be done in conjunction with different elements, Firewall, Application Launcher and Group Policy Templates.
With Firewall element:
Enable Firewall
Display a notification when Windows Firewall blocks a program
Enable file and print sharing
Don't allow exceptions (inbound firewall only)
Exceptions
Add exceptions to open TCP port 2000 for any computer
For Advanced options using commands, an application launcher element can be used:
Allow inbound and outbound connections that do not match a rule for Domain, Private and Public profiles.
Turn on firewall for the current network profile(does not matter if it’s domain/private/public network) using the below command.
netsh advfirewall set currentprofile state on
Turn off firewall for the current profile: netsh advfirewall set currentprofile state off
To enable/disable firewall for a specific network profile, you can use the below commands.
Domain network
Turn on Domain network firewall: netsh advfirewall set domainprofile state on
Turn off domain network firewall: netsh advfirewall set domainprofile state off
Private network
Turn on private network firewall: netsh advfirewall set privateprofile state on
Turn off private network firewall: netsh advfirewall set privateprofile state off
Public network
Turn on public network firewall: netsh advfirewall set publicprofile state on
Turn off public network firewall: netsh advfirewall set publicprofile state off
Configure for all networks
Turn on firewall for all networks: netsh advfirewall set allprofiles state on
Turn off firewall for all networks: netsh advfirewall set allprofiles state off
To set configurations with Group policy template elements, using the WINDOWFIREWALL.ADMX template will allow setting local policies for firewall in computers and users.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center