Information Technology Reference
In-Depth Information
1-17. Enabling or Disabling the Windows Firewall
Problem
You want to enable or disable the built-in firewall on a Windows Server 2003 Service Pack 1
computer.
Solution
Using a Graphical User Interface
1.
Open the Network Connections applet.
2.
Double-click on the Local Area Connection icon.
3.
From the Advanced tab, click Settings. This will launch the Windows Firewall Control
Panel applet.
4.
To enable the Windows Firewall, click the On radio button. To disable the Windows
Firewall, click the Off radio button.
Using a Command-Line Interface
The following command disables the Windows Firewall on a Windows Server 2003 Service
Pack 1 computer:
> netsh firewall set opmode mode=disable exceptions=disable profile=all
The following command enables the Windows Firewall on a Windows Server 2003 computer:
> netsh firewall set opmode mode=enable profile=all
Using Group Policy
Table 1-5 contains the Group Policy setting that enables or disables the Windows Firewall.
Table 1-5. Windows Firewall Settings
Path
Computer Configuration\Administrative Templates\Network\
Network Connections\Windows Firewall\Domain Profile
Policy name
Windows Firewall: Protect all network connections
Enabled to turn on the Windows Firewall; Disabled to turn it off
Value
Using the Registry
To enable the Windows Firewall on a Windows Server 2003 computer, configure the following
Registry values:
Search WWH ::




Custom Search