A network security firewall works as a barrier that will prevent destructive forces away from the computers on a network that’s behind the firewall. The network firewall is a lot like a physical firewall that prevents a fire from spreading from one place to another. Firewalls will protect against various security threats such as denial of service attacks, worms, viruses, and unauthorized remote logins.