What Are Computer Firewalls?

SafeWise experts have years of firsthand experience testing the products we recommend. Learn how we test and review

A firewall is usually the first line of defense when it comes to protecting private information and keeping out threats like viruses and malware. Firewalls monitor incoming and outgoing traffic on a computer network—whether it’s your home Wi-Fi network or a large shared network at a company.

Thwart hackers with the best internet security tips!
Sign up for our free weekly newsletter.

By signing up, you agree to our Terms and Conditions and Privacy Policy.

What does a firewall do?

Firewalls work as a barrier between your protected network and unauthorized users and networks. But a firewall isn’t foolproof—it may act as a bouncer that checks out individual users before they’re allowed behind the velvet rope, but it may not catch every fake ID, and it won’t hunt down and kick out the riff raff if they do sneak by. That means you shouldn’t rely on a firewall alone to keep the bad element out of your network, files, and info.

How do firewalls work?

You can implement firewalls in either software or hardware form, or as a combo. Once you have a firewall in place, all traffic entering or leaving the protected network must pass through it. The firewall inspects each message or action against specified security criteria. Anything that isn’t up to snuff gets blocked.

Types of firewalls

There are four main types of firewalls. Although each is designed to perform the same basic security function, the way they do their job is different. Many firewalls combine two or more of these types to deliver an extra security punch.

1. Packet filters 

This type of firewall looks at information known as packets. Packets are messages that consist of control information and user data. Packet filters check each packet of information as a whole instead of examining the specific data. Based on the security parameters, the firewall will allow, drop, or reject the packet.

2. Application-level gateways

These firewalls apply security measures to specific applications and protocols, such as File Transfer Protocol (FTP) or Hypertext Transfer Protocol (HTTP). Application firewalls may intercept all packets entering or leaving a specific application, which adds extra security but can also slow down the transfer of data.

3. Circuit-level gateways

A circuit-level gateway controls how information is transmitted over a single network. Once this type of connection is made, packets can pass over the network between designated hosts without any additional review. This prevents the latency issues that application-level gateways can face.

4. Proxy servers

A proxy server is a firewall that hides the network address of the computers on the network. This means the proxy server connects with the internet and handles all communication, protecting the computers and the network behind it. You can set up a proxy server to allow or block everything from certain types of traffic (for example, web pages or HTTP files). Because a proxy server intercepts and analyzes all traffic passing through, it can slow down the entire network.

Firewalls are crucial to any internet security plan. Consider using a firewall in conjunction with other security measures like antivirus software and identity theft protection.


Compare the best internet security products

Brand
Best for
Starting price
Specs
Standout feature
Learn more
Best identity theft protection

$1 million recovery insurance

Two-factor authentication
Best VPNWorks on 6 devices 5,100 servers

60 countries

Best parental control Unlimited devicesEmail and social media monitoring, powerful parental controls
Best antivirus/malware software Protects up to 10 devices Includes VPN and password manager
Best password manager Unlimited devices with Premium plan VPN and dark web monitoring with Premium plan

Amazon.com price as of post date. Offers and availability may vary by location and are subject to change. Read full disclaimer.
*First year only. Regular price $99.48/yr.
**First year only. Regular price $59.99/yr.

Rebecca Edwards
Written by
Rebecca Edwards
Rebecca is the lead safety reporter and in-house expert for SafeWise.com. She has been a journalist and blogger for over 25 years, with a focus on home and community safety for the past decade. Rebecca spends dozens of hours every month poring over crime and safety reports and spotting trends. Her expertise is sought after by publications, broadcast journalists, non-profit organizations, podcasts, and more. You can find her expert advice and analysis in places like NPR, TechCrunch, The Washington Post, The Chicago Tribune, The Miami Herald, HGTV, MSN, Reader's Digest, Real Simple, and an ever-growing library of podcast, radio and TV clips in the US and abroad.

Recent Articles

older-hispanic-couple-hiking
The Best Fall Detection Devices
Find the best medical alert systems with fall detection. Compare equipment, price, accuracy, customer reviews,...
woman adjusting thermostat in bright home
The Best Home Security Systems of 2024
After thousands of hours of tests and research, we picked Vivint and SimpliSafe as the...
medical alert products on an illustrated background
Best Medical Alert Systems
See which medical alert system is the best to keep you and your loved one...
Man and woman couple wife husband set up surveillance security camera
Best Apartment Security Systems
These renter-friendly apartment security systems help keep you safe and require less commitment than your...