A firewall is similar to the way the word sounds. It acts as a wall inside the computer. In the real word, a firewall would be a strong wall made from materials in a building or house that fireproofs that area. Fire can’t penetrate that wall, so it makes it safer to live in that house. On the other hand, a computer also may have a protective device in the form of a firewall.
This is involved in the network which monitors and observes what messages and other things are allowed into the computer through the network. It also does the opposite because it monitors and observes what messages and other things leave the computer. The firewall protection is necessary today due to all of the computer viruses coming through.