A Linux firewall is a system that provides network security by filtering incoming and outgoing network traffic based on a set of user-defined rules. In general, the purpose of a firewall is to reduce or eliminate the occurrence of unwanted network. Here we provide you with the brief information about How firewall works and protect your system at different Layers.