A firewall is a computer network security based system that monitors and controls incoming and outgoing network traffic based on predefined security rules. A firewall commonly establishes a block between a trusted internal computer network and entrusted computer outside, the network.
They are generally categorized as network- based or host-based. Network based firewalls are positioned on the gateway computers of LAN [Local area Network], WAN [Wide Area Network] and intranets.