A firewall is a set of related programs, located at a network gateway server, that are used to prevent unauthorized access to a system or network.
There are four types of firewalls:
There are existing firewall products that incorporate one of the firewall types listed previously. There are many other firewall products that incorporate some combination of the types listed previously.