A firewall is a network certainty device that detects both incoming and outgoing network traffic and decides allowance or blockage specific traffic based on a finite set of safety rules.