Skip to content
BENIBIX Learn

Firewall vs VPN

People think a VPN and a firewall do the same job, and they do not. A firewall is a filter at the edge of a network. It lets some traffic in and blocks the rest. A VPN is a locked tunnel that carries your traffic across the internet so nobody on the way can read it. Many networks use both.

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

Virtual Private Network (VPN)

A locked tunnel across the web. It links you to a private network.

A VPN makes a private, scrambled link across the public internet. Everything you send goes through this tunnel to a VPN server first. People on the same café Wi-Fi only see scrambled data. Companies use a VPN so staff can reach the office network from home. Paid home VPNs also hide the sites you visit from your local network. But the VPN company can still see them.

Example
Emma works from a hotel. She turns on the company VPN, and her laptop can reach the office file server as if she were at her desk.
Why it matters
It keeps data safe on networks you do not own, and lets staff work from anywhere.
Full entry

In one line

Firewall
A filter that lets some network traffic through and blocks the rest.
Virtual Private Network (VPN)
A locked tunnel across the web. It links you to a private network.