A firewall is a network security tool that keeps track of and filters incoming and outgoing network traffic in accordance with previously specified security policies for an organization. A firewall, at its most basic level, is essentially the wall that separates a private internal network from the public Internet.