A set of related programs, located at a network gateway server, that protects the resources of a network from users from other networks. A firewall determines which information passes in and out of a network. A firewall prevents anyone outside of your network from accessing your computer and possibly damaging or viewing your files. Basically, a firewall, working closely with a router, examines each network packet to determine whether to forward it toward its destination.