Firewall is a network security system that monitors and controls the incoming and outgoing network traffic based on the set of security rules.