Course overviewTopic 27 / 31
Computer Networks • Deep Lesson 12 min Security & Troubleshooting Toolkit

Firewalls, VPNs & Proxies: What Each One Actually Filters

These three mechanisms are often lumped together because all can sit 'in the middle'. Their jobs differ. A firewall enforces traffic policy, a proxy relays application-level or other traffic on behalf of a client, and a VPN creates an encrypted tunnel between endpoints or networks. Understanding what information each can see is the key.

LEARNING LOOPWatch→Read→Inspect→Retrieve→Teach back
Firewalls, VPNs & Proxies: What Each One Actually Filters
Week 5 · Topic 27 / 31
Visual model

Watch the structure first. Then read the technical details.

Firewall
Proxy
VPN tunnel
Backend
Article companion· Week 5

These three mechanisms are often lumped together because all can sit 'in the middle'. Their jobs differ. A firewall enforces traffic policy, a proxy relays application-level or other traffic on behalf of a client, and a VPN creates an encrypted tunnel between endpoints or networks. Understanding what information each can see is the key.

01

Firewalls

A firewall can filter using addresses, ports, protocols, state and application context depending on its design. Stateful firewalls track connection state so return traffic can be handled differently from unsolicited packets.

02

Proxies

A forward proxy acts on behalf of clients. A reverse proxy acts on behalf of servers and can provide TLS termination, load balancing, routing, caching and access control.

03

VPNs

A VPN encapsulates traffic inside a tunnel that provides confidentiality/integrity and a virtual network relationship. Encryption alone does not guarantee that every destination or endpoint is trustworthy.

DUAL CODING

See the mechanism before you memorize it

One diagram, one causal story, one reconstruction task.

VISUAL RECONSTRUCTION

Firewalls, VPNs, proxies: what each one really filters — causal map

4 stages
01

Firewall

Observe packet/flow attributes and apply allow/deny policy.

02

Forward proxy

Client sends traffic to an intermediary that makes the outbound request.

03

Reverse proxy

External clients reach an intermediary that selects an internal backend.

04

VPN

Endpoints encapsulate traffic through an encrypted tunnel.

Trace the mechanism from left to right. On smaller screens, follow the numbered sequence. Then redraw the same flow without looking.
ACTIVE RECONSTRUCTION

Draw the idea yourself

Rebuild the core flow on a real canvas before moving to the worked walkthrough.

SKETCHFLOW

Firewalls, VPNs, proxies: what each one really filters — practice canvas

Sketch the Firewalls, VPNs, proxies: what each one really filters mechanism from memory. Label the input, transformation, observation, and transfer.

Practice canvas ready

The canvas loads when you reach this section.

Draw first. Compare second.Touch + mouse friendly
STEP BY STEP

Walk the system

01

Firewall

Observe packet/flow attributes and apply allow/deny policy.

02

Forward proxy

Client sends traffic to an intermediary that makes the outbound request.

03

Reverse proxy

External clients reach an intermediary that selects an internal backend.

04

VPN

Endpoints encapsulate traffic through an encrypted tunnel.

05

Policy

Security still depends on identity, routing, endpoint controls and application authorization.

CONCRETE ARTIFACT

Choose by visibility

The most useful question is not 'where is the box?' but 'which endpoint terminates the protocol and what metadata can it inspect?'

textcopy → rebuild → modify
Firewall → addresses/ports/state/application context
Proxy   → relay at an application/protocol boundary
VPN     → encrypted tunnel between tunnel endpoints
MISCONCEPTIONS

What usually goes wrong

Call every intermediary a proxy.

Assume a VPN automatically makes every application secure.

Assume a firewall can always see encrypted payload contents.

RETRIEVAL PRACTICE

Close the tab. Rebuild it from memory.

Read the question, answer aloud, then reveal.

What is a reverse proxy?Reveal answer

An intermediary that represents backend servers to clients and can terminate TLS, route requests, balance load and enforce policy.

What does a stateful firewall add?Reveal answer

It can make decisions based on connection state, not only isolated packets.

What does a VPN fundamentally provide?Reveal answer

A protected tunnel between tunnel endpoints, carrying encapsulated traffic over another network.

FEYNMAN

Teach it back in plain English

Draw the same web request with no intermediary, a forward proxy, a reverse proxy and a VPN. Mark which component terminates which protocol.

EXAM / INTERVIEW

What a strong answer sounds like

Expect role-comparison questions and scenarios asking which intermediary sees a port, HTTP path, client identity or encrypted payload.

NEXT CONNECTION

Make this idea travel.

Connect it next to: network-attacks-defense • troubleshooting • network-toolkit.

COURSE CONTENTS

Firewalls, VPNs, proxies: what each one really filters

01How the Internet Works + OSI ModelWeek 1 · 4 topics0/4
02Physical & Data Link LayersWeek 1–2 · 5 topics0/5
03Network Layer: IP & RoutingWeek 2–3 · 6 topics0/6
04Transport Layer: TCP & UDPWeek 3–4 · 5 topics0/5
05Application Layer: HTTP, DNS & FriendsWeek 4–5 · 6 topics0/6
06Security & Troubleshooting ToolkitWeek 5 · 5 topics0/5