Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 2004

Windows Firewall Basics

Defense in depth
RSS
Subscribe to Windows IT Security | See More Antivirus Articles Here | Reprints
Or get the Monthly Online Pass—only $5.95 a month!

Configuring Exceptions
Windows Firewall includes several predefined exceptions that permit common tasks such as remote administration or file and print sharing. Web Table 1 lists the default Windows Firewall communication exceptions and the ports or programs they open.

You can also create your own exceptions locally via the Windows Firewall applet or a GPO. Simply specify the excepted traffic's program name or network characteristics (e.g., its TCP or UDP port) and source address, then tell Windows Firewall to allow that exception.

The predefined exceptions are more flexible than the exceptions that you create because the predefined ones can include multiple ports per rule. For example, the File and Printer Sharing exception service includes ports TCP 139, TCP 445, UDP 137, and UDP 138. However, if you create a custom exception, you can specify only one port, which means if you need to open a range of ports you need to create multiple exceptions. However, you can specify a custom scope (i.e., an IP address or range of IP addresses for which you want to allow traffic) for both the predefined and custom exceptions, as Figure 4 shows.

You can also use a GPO to configure Windows Firewall exceptions. You specify the port (e.g., 80), the transport (e.g., TCP or UDP), the scope, the status (either enabled or disabled), and the name of the connection. The construction looks like this: Port:Transport:Scope:Status:Name.

The GPO scope parameter syntax is a bit different from the scope parameter syntax in the Windows Firewall applet (which might be an inconsistency between RC2 and the final version of SP2). As of RC2, the GPO scope is defined as "*" (all traffic), localsubnet (traffic on only that subnet), and IP address (e.g., 10.0.0.1 or a Classless Inter-Domain Routing--CIDR--subnet shorthand nomenclature that looks like 192.168.0.0/24, where 24 is the number of bits in the subnet mask). For example, the parameters "1433:TCP:10.0.0.1:Enabled:MSSQL" and "23:TCP:192.168.0.0/24:Enabled:Telnet" allow inbound Microsoft SQL Server connections that use TCP port 1433 only from the host 10.0.0.1 and Telnet connections that use TCP port 23 from the 192.168.0.0/24 subnet.

Logging
You can configure Windows Firewall to write log activity to a text file located on the local computer or a remote share. Windows Firewall can log dropped packets as well as successful connections. The logging includes useful data fields to help troubleshoot denied connections or watch allowed connections.

Web Figure 2 shows a sample log file. The first two lines show examples of dropped file share access attempts, and the last line shows a successful RDP connection on TCP port 3389.

By default, Windows Firewall displays a message warning the user that a particular program tried to access a port. However, if you use Group Policy to centrally manage Windows Firewall, you can disable these notifications, if you so desire.

Disabling Windows Firewall
If you currently run a host-based firewall other than Windows Firewall or Windows' built-in IPSec, then you'll likely want to disable Windows Firewall when you install XP SP2. You have several options for doing so. First, if your target computers are members of a domain, then you can simply create a Windows Firewall GPO that disables the feature. Specifically, you'll need to configure the GPO with the following settings:

Disable:
Domain profile--Windows Firewall: Protect all network connections
Standard profile--Windows Firewall: Protect all network connections

Enable:
Prohibit use of Internet Connection Firewall on your DNS domain network

If you don't want to run the Windows Firewall features on computers within your domain (e.g., employee laptops connected to your corporate network over a LAN) but want to protect remote users when they're not on your network, then configure the GPO as follows:

Disable:
Domain profile--Windows Firewall: Protect all network connections

Enable:
Standard profile--Windows Firewall: Protect all network connections
Prohibit use of Internet Connection Firewall on your DNS domain network

If your XP computers aren't members of a Windows 2003 or Win2K domain that supports Group Policy, you can disable Windows Firewall by modifying a configuration text file named netfw.inf and saving that file centrally along with the other XP SP2 installation files. Add the line HKLM,"SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile","EnableFirewall",0x00010001,0 to the ICF.AddReg.StandardProfile section of netfw.inf. Refer to the Microsoft documentation about deploying Windows Firewall for more detailed information about the netfw.inf file.

You can also deploy registry entries that will disable Windows Firewall on target XP computers before you install SP2. Use a registry editor to add the HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FirewallPolicy\DomainProfile\EnableFirewall=0 (DWORD data type) and HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\FirewallPolicy\StandardProfile\EnableFirewall=0 (DWORD data type) registry subkeys.

To implement custom Windows Firewall settings, you can modify the unattend.txt file. For information about this process, refer to the Microsoft document "Deploying Windows Firewall Settings for Microsoft Windows XP with Service Pack 2" (http://download.microsoft.com/download/6/8/a/68a81446-cd73-4a61-8665-8a67781ac4e8/wf_xpsp2.doc).

Firewall for the Masses
The improved Windows Firewall, enabled by default when you install XP SP2, provides a great step toward securing XP computers--benefiting home and corporate users alike. The preconfigured exceptions help less-experienced administrators quickly configure Windows Firewall, but the firewall also supports granular customization to meet many different deployment scenarios. The management integration with Group Policy means that you can define a central policy and apply it to select groups of computers. And the price is right--free--making Windows Firewall a serious contender for the host-based firewall of choice for many organizations.

MICROSOFT RESOURCES

"Deploying Windows Firewall Settings for Microsoft Windows XP with Service Pack 2"
http://www.microsoft.com/downloads/details.aspx?familyid=4454e0e1-61fa-447a-bdcd-499f73a637d1&displaylang=en

"Managing Windows 2000 Networking Components with Netsh"
http://www.microsoft.com/technet/community/columns/cableguy/cg1101.mspx

"Using the Windows Firewall INF File in Microsoft Windows XP Service Pack 2"
http://www.microsoft.com/downloads/details.aspx?familyid=cb307a1d-2f97-4e63-a581-bf25685b4c43&displaylang=en

WINDOWS & .NET MAGAZINE RESOURCES
(http://www.winnetmag.com)
Inside Out, "Meet Windows Firewall," May 2004, InstantDoc ID 42293
"Countdown to XP SP2: More than a Firewall," May 2004 VIP Web Exclusive, InstantDoc ID 42553
"Countdown to XP SP2: Planning Ahead," May 2004 VIP Web Exclusive, InstantDoc ID 42552
"Countdown to XP SP2: Dealing with ICF," April 2004 VIP Web Exclusive, InstantDoc ID 42497
"Countdown to XP SP2: Forced Protection," April 2004 VIP Web Exclusive, InstantDoc ID 42496
"IP Security Filtering," June 2001 Web Exclusive, InstantDoc ID 21546
"Binary Numbers and Subnet Masks," January 2001, InstantDoc ID 16223

End of Article

   Previous  1  2  [3]  Next  


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
VMware and the Future of Virtualization

What's next for virtualization and business IT? Windows IT Pro senior editor Jeff James speaks with VMware President and CEO Diane Greene on the future of virtualization technology. ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

A Great Tool For Making Screencasts

I've started making product demos and have found a tool that has helped make the job easier--Camtasia. ...


Security Whitepapers Anti-Virus Is Dead: The Advent of the Graylist Approach to Computer Protection

Getting the Job Done: Comparing Approaches for Desktop Software Lockdown

Instant Messaging, VoIP, P2P, and games in the workplace: How to take back control

Related Events Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Critical Challenges of ESI & Email Retention
Are you storing too much electronic information? Get expert legal advice and better understanding of what you are required to do as an IT professional.

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Sustainable Compliance: Are You Having a Resource Crisis?
Read this white paper to examine trends in compliance and security management and review approaches to reducing the cost and operational burden of compliance.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.
Windows IT Pro Home Register About Us Affiliates / Licensing Media Kit Contact Us/Customer Service  
SQL Connected Home IT Library SuperSite FAQ Wininfo News
Europe Edition Office & SharePoint Pro Windows Dev Pro Windows Excavator 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing