what is a firewall and how it work? A firewall is a network security device that monitors and controls the incoming and outgoing traffic in a computer network.