Skip to content
BENIBIX Learn

Firewall vs Antivirus Software

People think a firewall and antivirus do the same job. A firewall decides which traffic may come in or go out. It looks at ports and addresses, not inside files. Antivirus checks the files and programs on a computer and stops bad ones. One guards the door. The other checks what is already inside.

Infrastructure🔒 Security

Firewall

A filter that lets some network traffic through and blocks the rest.

A firewall is a filter that decides which network traffic may pass. It follows a list of rules. A rule can allow or block traffic by where it comes from, which port it uses or which way it goes. Most firewalls block all traffic coming in unless a rule allows it. A firewall can be a box on the network or a program on one computer.

Example
Jack's web server only needs ports 22, 80 and 443 open. His firewall blocks every other port. So a database left on by mistake cannot be reached from outside.
Why it matters
Every open port is a door. A firewall keeps the doors you did not mean to open shut.
Full entry
Infrastructure🔒 Security

Antivirus Software

A program that looks for bad code on your computer. It stops what it finds.

Antivirus software scans files and programs for malware and stops it. It checks them against a list of known bad code, and that list is updated often. Newer tools also watch what programs do and stop ones that act strangely. It runs on each computer, not at the edge of the network. Most computers today come with one built in.

Example
Jack opens an email file with a hidden trojan in it. His Windows laptop has Microsoft Defender built in. It spots the file and locks it away before it runs.
Why it matters
It catches known malware that slips past email filters and firewalls.
Full entry

In one line

Firewall
A filter that lets some network traffic through and blocks the rest.
Antivirus Software
A program that looks for bad code on your computer. It stops what it finds.