A Firewall is a network security device that monitors incoming and outgoing network traffic and permits or blocks data packets based on a set of security rules.
The purpose of a Firewall is to establish a barrier between your internal network and incoming traffic from external sources in order to block malicious traffic like viruses and hackers.