A network firewall is a piece of software that analyses and enforces rules on network traffic. A firewall is designed to prevent malicious and unauthorized traffic on the network. Networks can have varying levels of trust - for instance, your personal LAN is a trusted network while the rest of the internet is untrusted. A firewall will sit between a trusted and untrusted network and try to block malicious traffic from entering the trusted network.