Solved

firewall status 2008 R2

Posted on 2013-12-20
4
322 Views
Last Modified: 2014-01-02
is there a command you can run on a windows 2008 R2 server to determine if the local firewall is enabled?
0
Comment
Question by:pma111
4 Comments
 
LVL 10

Expert Comment

by:Monica P
ID: 39731273
You can turn on firewall for the current network profile

netsh advfirewall set currentprofile state on

Turn off firewall for the current profile:

netsh advfirewall set  currentprofile state off

For more refer below links'

http://www.windows-commandline.com/enable-disable-firewall-command-line/

http://www.winhelponline.com/blog/enable-and-disable-windows-firewall-quickly-using-command-line/
0
 
LVL 3

Author Comment

by:pma111
ID: 39731277
rather than turn it on or off, how can you tell if it is currently turned on or not
0
 
LVL 35

Expert Comment

by:Mahesh
ID: 39731341
Just run below command to check current state of private profile, public profile and domain profile for windows firewall

netsh advfirewall show allprofiles state

You can enable or disable firewall for all profiles with below command through elevated command prompt

netsh advfirewall set allprofiles state off  - disable firewall for all profiles
netsh advfirewall set allprofiles state on  - enable firewall for all profiles

Mahesh
0
 
LVL 6

Accepted Solution

by:
Aditya Arora earned 500 total points
ID: 39731418
hello,

please use the below command

>netsh advfirewall show allprofiles

and u get result as below

Domain Profile Settings:
----------------------------------------------------------------------
State                                 ON
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pfirewall.lo
g
MaxFileSize                           4096


Private Profile Settings:
----------------------------------------------------------------------
State                                 ON
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pfirewall.lo
g
MaxFileSize                           4096


Public Profile Settings:
----------------------------------------------------------------------
State                                 ON
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pfirewall.lo
g
MaxFileSize                           4096

Ok.
0

Featured Post

Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now