Firewalls separate internal and external network traffic and control access based on rules. There are hardware, software, and combination firewalls. Network firewalls sit between the internal and external networks, while host-based firewalls protect individual devices. Firewalls can allow or deny traffic based on port numbers, protocols, and IP addresses. Using multiple firewall layers and an OS firewall provides additional security. VPNs extend a private network over a public network and allow remote access through encryption.