From HostThyself
A Firewall is a security device that implements security policies entering or leaving a network through it.
Firewalls can be implemented as hardware and/or software and are typically setup at the point where one network connects to another.