A firewall works as a barrier between
networks, e.g. between a Local Area Network and the Internet. The
firewall ensures that only authorized users are allowed to access the
one network from the other. A firewall can be software running on a
computer, or it can be a standalone hardware device.