A firewall is essentially the barrier that stands between a private internal network and the open Internet at its most basic level.
An organization's previously set security policies are used to monitor and filter incoming and outgoing network traffic through a firewall, a network security device.