A firewall is a protective measure that safeguards an individual's or company's computer network. It provides two basic security functions, including packet filtering, which inspects traffic at the packet level, and acting as an application proxy, providing security measures at the application level.