Firewall policies are designed to protect computer networks from unauthorized access while allowing communication and access to authorized users and resources. They work by examining incoming and outgoing network traffic and blocking or allowing passage based on a defined set of rules. Effective firewall policies should be carefully planned, implemented, and monitored to ensure they allow appropriate access while preventing security threats.