A firewall protects a computer or network by allowing or blocking network traffic based on certain criteria. A Windows firewall can filter traffic by IP address, protocol, and port number. There are public, private, and domain profiles that apply different security levels depending on whether the network is public, private, or part of a domain. The Windows firewall advanced security console allows creating custom inbound and outbound rules to finely control network access.