Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 27, 2004

A First Look at Windows Firewall


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

After plowing through more than 200 pages of documentation about the extensive changes in Windows XP Service Pack 2 (SP2), I wasn't optimistic about testing the XP SP2 beta. With the introduction of a real firewall; security controls for Distributed COM (DCOM), remote procedure call (RPC), and WWW Distributed Authoring and Versioning (WebDAV) operations; secure wireless networking; the ability to kill pop-ups; and hands-on management of Microsoft Internet Explorer (IE) plug-ins, SP2 has more in common with a new OS than a service pack with bug fixes. The upgrade also changes the open access paradigm to limited or no access, which in theory can wreak havoc with network connectivity and server-based operations.

The monstrous 264MB download expands to consume 323MB of disk space containing 2902 files in 102 directories. You can install the service pack via all the usual methods: Double-click the self-extracting download file, expand the download file on a local or network drive, and run i386\update\update.exe; or deploy the upgrade via Group Policy and the Windows Installer package i386\update\update.msi.

With more than a little trepidation, I skipped the compatibility check and started the upgrade. Much to my surprise, the release candidate (RC) installed without errors in under 40 minutes on a generic XP Professional Edition system. My test system wasn't running Microsoft Office or any client-type applications and wasn't connected to Microsoft Exchange Server or SQL Server. After the mandatory reboot, the system prompted me to enable Automatic Updates before presenting the logon screen. Not wanting to muddy the waters, I enabled Automatic Updates, logged on, and went straight for the firewall.

The firewall in XP SP2 addresses nearly all the shortcomings I uncovered in the Windows Server 2003 original implementation. (You must be logged on as a member of the local Administrator group to configure the firewall). The number-one premise of the Windows firewall in SP2 is that it blocks all unsolicited incoming traffic—period. If you want to offer network services on an XP system, you must specifically enable the services in the firewall by checking one or more of the four preconfigured choices or by adding an application name or port number. By stopping unsolicited incoming traffic, the firewall can effectively stop the spread of most Trojan horses and worms on local networks and the Internet. When you add programs or ports to the permitted list for unsolicited incoming traffic, the firewall opens the allowed port for the time period required to satisfy the incoming request. When the operation is complete, the firewall closes the port.

Even better, you can enable firewall logging of successful and blocked connections, which lets you monitor traffic to the local system. Logging of connections isn't enabled by default, so you need to modify the settings to monitor local connections. The log file is pretty rudimentary—a simple text file with the default location of %systemroot%\pfirewall.log. To avoid cluttering the system folder with log files, you should place the firewall log file in another location.

You can access Windows Firewall via the Windows Firewall Control Panel applet; you can also right-click the network icon in the lower right corner of the screen. When you do so, you’ll see the new Change Windows Firewall settings option. Click this option to open the firewall configuration screen. The General tab controls whether the firewall is enabled—simply select the On or Off check box.

When you check Don’t allow exceptions, XP won't accept incoming connections for network services that appear on the exceptions list. This feature is handy when you suspect your machine is the target of malicious activity, as well as when you’re connected to the Internet using a public, possibly unsecure, connection. So, for example, when you’re connected to the corporate network, you might need to share databases or printers with other employees, but when you’re on the road you don’t want anyone to access these shared resources. When you check Don’t allow exceptions, XP will refuse requests to access applications and ports on the exception list, which effectively blocks access to your applications by Internet users. This mode also is useful when a Trojan or worm attempts to propagate across a network. If detected early, you might be able to prevent a machine from becoming infected by disabling access to local shared resources and services. When the threat has passed, you permit XP to accept incoming requests for applications on the Exception list by clearing the Don’t allow exceptions check box.

To permit server-based applications such as File and Print Sharing and third-party workgroup-style networking applications such as Top Producer to accept unsolicited incoming connection requests, you must add the applications or the ports they use to the Exception list. You should restrict the scope of the four choices on the Exception list, plus any other exceptions you add, to the Local Subnet only. This additional security measure ensures that locally published resources are available only to systems on the same subnet. If you need to share resources with machines not on the same subnet, you can add other subnets and unique addresses to the scope definition.

Use the Advanced tab to adjust the firewall logging options and the location of the log file (Security Logging), to enable incoming Ping requests (ICMP), and to reset the firewall to its default settings. You might need to reset the firewall if you accidentally add a rule that restricts needed incoming connections. If so, I recommend you restart the Windows Firewall service. When you reset the firewall, remember that the default mode doesn't log successful and blocked connections, so you’ll need to enable these options.

Windows Firewall also secures a system reboot against all but necessary startup DNS and DHCP traffic, protects all network connections with the same set of rules, and lets you override the rules for a specific network connection (e.g., one set of rules for wireless and another set for traditional Ethernet). The Windows Firewall on my test system operated flawlessly after the SP2 upgrade and a few modifications. I did encounter some problems with the new netsh firewall commands, but no show-stoppers in the first go round. Although it’s been only a few days, my expectations for the security portion of SP2 are much higher than when I began this exercise.

End of Article



Reader Comments
I am looking forward to hearing more about managing the firewall with group policies. Also...how does it affect other apps (non-microsoft apps especially)

Jay555 July 27, 2004 (Article Rating: )


I'm curious as to whether this firewall is 'friendly' to other firewalls? Since, I'm sure a lot of people already have a firewall on their computers. Will this work with the other firewalls or do you have to disable one of them?

alwayssmilingguy July 27, 2004 (Article Rating: )


alwayssmilingguy, you shouldn't have any problems running another firewall along with the XP SP2 firewall. I'm also running Kerio Personal Firewall to prevent unauthorized application from accessing the internet (XP firewall only protects againts incoming traffic) and so far both firewalls coexist without any problems.

There's one thing I don't understand about the XP SP2 firewall: the ICMP settings. First, there's no way to define a scope (local subnet - internet) as there's with the exception list. Second you can set ICMP settings via the advanced tab of the firewall applet, but in addition you can also set them on each connection seperately. What's the relation between those 2 settings? If the first group of settings is global for all connections, then why isn't this reflected in the user interface?

timo47 July 27, 2004 (Article Rating: )


I just installed SP2 RC2 on a clean install of XP Pro running on MS Virtual PC. The Firewall and Computer Browser Service's will not start. I receive and Event ID: 7023 in the system log.

dandav July 27, 2004 (Article Rating: )


Regarding more info on Group Policy settings for the Windows Firewall - see this doc on the Microsoft website http://www.microsoft.com/downloads/details.aspx?FamilyID=4454e0e1-61fa-447a-bdcd-499f73a637d1&DisplayLang=en
It has a bunch of info as of the RC and I'm hoping they will update when they ship SP2

GPRainer July 28, 2004 (Article Rating: )


Actually, stopping incoming traffic doesn't help with Trojan Horse programs. They typically come in via email, IM file transfers, or other transactions you initiate. Once installed, Trojans call home for instructions. The firewall sees the call home as outgoing traffic, thinks it's from you, and lets it go.
-Fred Wamsley CISSP

Beryllium Sphere LLC July 28, 2004 (Article Rating: )


Tried SP2 on one computer, and the firewall would not prevent accessing local drives/shares. Reformatted that computer and not installing SP2 again at this time.

pctech3 July 28, 2004 (Article Rating: )


I installed the sp2 and i think is was a big mistake. I would want to use it's firewall because ive been using ZA for the past 2 yrs and worked fine. but now i tried to install a new version of ZA and automatically i gor a very rare ip while my router's config was left untouched. 169.256.93.230 was the address and windows would not let me connect for it said it was an unsecure connection. even after allowing that connection i could get no internet access through it so all my attemps were worthless. an clues?

Anonymous User November 15, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

WinInfo Short Takes: 4th of July Special Edition

An often irreverent look at some of the week's other news, including a shortened work week thanks to the 4th of July, expensive Windows 7 pricing, Bing's modest monthly gains, IE 8 heading to work, Steve Jobs back at Apple, and so much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Security Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Security Summit

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 Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing