A firewall selectively denies traffic to a computer or network segment. Firewalls generally work by opening and closing the ports used by various applications. By opening only the required ports on a firewall, you are implementing a restrictive security policy. Any packet not explicitly permitted is denied. In contrast, a permissive security policy permits access through all ports, except those explicitly denied. In the past, software and hardware were shipped with permissive settings. As users neglected to configure their equipment, the default permissive settings left many devices exposed to attackers. Most devices now ship with settings as restrictive as possible, while still allowing easy setup.

Configuring the Windows 7 or Windows Vista firewall can be completed in two ways:

To allow program access through the Windows Firewall in Windows 7, use the following path:

Start > Control Panel > Windows Firewall > Allow a program or feature through Windows Firewall > Allow another program…

To allow program access through the Windows Firewall in Windows Vista, use the following path:

Start > Control Panel > Security Center > Windows Firewall > Change Settings > Continue > Exceptions > Add Program

To allow program access through the Windows Firewall in Windows XP, use the following path:

Start > Control Panel > Security Center > Windows Firewall > Exceptions > Add Program

To disable the Windows Firewall in Windows 7, use the following path:

Start > Control Panel > Windows Firewall > Turn Windows Firewall on or off > Turn off Windows Firewall (not recommended) > OK

To disable the Windows Firewall in Windows Vista, use the following path:

Start > Control Panel > Security Center > Windows Firewall > Turn Windows Firewall on or off > Continue > Off (not recommended) > OK

To disable the Windows Firewall in Windows XP, use the following path:

Start > Control Panel > Security Center > Windows Firewall