Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

May 17, 2004 12:00 AM

Access Denied: Using Windows Update with IP Security Policies

Windows IT Pro
InstantDoc ID #42447
Rating: (1)

After reading the Windows Web Solutions article "IPSec Packet Filtering," September 2002, http://www.winnetmag.com, InstantDoc ID 25935, about implementing IP Security (IPSec) packet filters to protect Web servers, I blocked all traffic at my test server, then created exception rules to allow incoming packets to TCP ports 80 (HTTP), 20 and 21 (FTP), and 3389 (Terminal Services) and to let the server send packets back to clients. No other ports are open, and I feel much more secure. However, Windows Update no longer works. When I try to browse to http://windowsupdate.microsoft.com, Microsoft Internet Explorer (IE) fails to connect. How can I keep my system locked down but still let it download Microsoft updates?

Setting up an IP security policy like the one described above prohibits not only incoming packets but also outgoing packets unless they're explicitly allowed. Although static filters (such as those in IP security policies) are great for controlling connections to inbound ports, they don't work well for outgoing connections because client-side port numbers are numerous and unpredictable. This drawback is why stateful inspection firewalls are so important. As powerful as they are, IP security policies fall short in this area because they aren't stateful.

You have at least one alternative: You can create an exception rule in your IP security policy that lets you communicate through port 80 to http://windowsupdate.microsoft.com. Or, if you can upgrade to Windows Server 2003, you can use its built-in firewall to solve your problem.

The first alternative involves creating a filter that looks for inbound packets that have the windowsupdate.microsoft.com source address and source port TCP 80. Then, create a rule that allows traffic through that filter. Configure the rule to include mirror image packets (i.e., outgoing packets to http://windowsupdate.microsoft.com and destination port TCP 80), and you'll be able to download updates from that Web site. However, be aware that this approach opens you up to incoming connections through any port on your server if the attacker can spoof packets to look like they come from http://windowsupdate.microsoft.com.

If you run Windows 2003, you can solve your problem simply by enabling Internet Connection Firewall (ICF) or RRAS's Basic Firewall, depending on which edition of Windows 2003 you have. Evidently, you use IP security policies only for their packet-filtering ability, not for IPSec communications. ICF and Basic Firewall let you easily implement that filtering functionality while letting your computer make outgoing Web requests. First, enable ICF or Basic Firewall. Configure the firewall to publish your public TCP ports 80, 20, 21, and 3389, then disable your current IP security policy. Your private ports will still be blocked, but because ICF and Basic Firewall are both stateful inspection firewalls, your server can make outgoing Web requests.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Mar 10, 2005

    Problem with this approach is that MS change the address - it is now v4.windowsupdate.microsoft.com so the rule has to be changed to include this address as well.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.