A firewall acts as a barrier between a trusted internal network and untrusted external networks (like the internet), monitoring and controlling incoming and outgoing traffic based on defined security rules. This lesson covers how firewalls work at a conceptual level, the difference between hardware and software firewalls, and why they’re considered a foundational layer of network defense — though not sufficient on their own against more sophisticated attacks.