How it works · 24 of 36 Foundation

What is the difference between a firewall and a VPN?

A gate and a tunnel

Firewall vs VPN: A firewall decides which traffic may pass; a VPN builds a private, encrypted tunnel across the public internet to another network.

Loading the animation…

Say it like this A firewall decides which traffic may pass in or out of a network; a VPN is a sealed tunnel across the public internet that puts a faraway device inside that network.

Under the hood — for builders
Real case: what the US standards body tells firewall builders
NIST's firewall guide gives one rule above all others: block everything that isn't expressly allowed. It calls it deny by default:
Three ways a VPN is used
NIST's VPN guide describes a VPN as a virtual network built on top of existing ones, used in three shapes:
Full tunnel or split tunnel
Does all your traffic go through the office, or only office traffic? NIST calls the second "split tunneling" and notes that preventing it limits the damage if a laptop is compromised:
Not the same as privacy
A VPN hides your traffic from the café Wi-Fi, but the VPN's own operator can see it. Choose that operator carefully.
Measure it
Windows: Settings → Network → VPN shows if a VPN is connected. "What is my IP" then shows the office's or VPN's address.
Watch out
NIST warns some phone VPN apps exist to watch or change your traffic. Use the one your organisation provides.
Sources
NIST SP 800-41 Rev. 1 (2009). NIST SP 800-77 Rev. 1 (2020). Read 28 Nov 2026.

What happens in the firewalls and VPNs animation, step by step?

  1. An office network sits behind one gate to the internet: the firewall. It holds a short list of what may pass.
  2. Anything not on the list is blocked. A stranger on the internet trying to reach the HR server is turned away.
  3. Your turn: you're working from home. Try reaching the HR server without a VPN, then with one.
  4. The VPN builds a sealed tunnel from your laptop, across the public internet, through the gate. The office treats your laptop as if it were inside.
  5. They work together: the firewall is the guard at the gate; the VPN is the sealed corridor that only staff can walk through.
  6. A firewall decides what may pass; a VPN is a private tunnel over the public internet. Next: how does a phone reach the internet with no cable at all?

What everyday example explains firewalls and VPNs?

A security guard at the gate versus a sealed corridor between two buildings.

Why should a team care about firewalls and VPNs?

Office access from home, blocked apps and "use the VPN" instructions all depend on telling the two apart.