A firewall is a division between a private network and an outer network, often the internet, that manages traffic passing between the two networks. It is a combination of both, software and hardware devices that permit network transmission based on set of rules. It is frequently used to protect a computer network from unauthorised access.