Start free →
Cybersecurity · Lesson 9
0 XP
Lesson 9 of 2010 minIntermediate

Firewalls and VPNs.

Module 3 is about defence. We start with the two tools everyone has heard of but few people really understand: the firewall, which guards the doors, and the VPN, which builds a private tunnel.

The firewall: a security guard at the gate

Think of a gated community in Gachibowli. At the gate, a security guard has a list of rules: residents enter, delivery boys go only to the service gate, unknown cars are stopped. A firewall does the same for network traffic. It looks at each packet (remember Lesson 3) and decides: allow or block, based on rules.

RuleMeaning
Allow IN to port 443 from anywhereAnyone can visit our website (HTTPS)
Allow IN to port 22 only from office IP 49.205.10.20Only our office can manage the server by SSH
Block IN to port 3389 from anywhereNobody from outside gets remote desktop
Block everything else INDefault deny: if it's not allowed, it's blocked
The golden rule

Good firewalls follow default deny: block everything, then allow only what's needed. Weak setups do the opposite: allow everything, then try to block bad things. The second way always misses something.

Quick check+10 XP

A server only hosts a website. Which incoming ports should the firewall allow from the internet?

Allow only what the job needs. Every extra open door increases the attack surface.

Types of firewalls you'll hear about

Segmentation: don't put everything in one room

Imagine a hospital where the visitors' waiting area, the pharmacy store and the operating theatre are all one big room. One problem anywhere becomes a problem everywhere. Network segmentation splits a network into zones with firewalls between them: guest Wi-Fi, staff computers, servers, payment machines. If malware hits a guest phone, it can't jump to the billing server.

Teacher tip

Your home router probably has a guest Wi-Fi option. Use it for visitors and smart devices like cheap cameras and smart plugs. That's segmentation at home.

The VPN: a private tunnel

A VPN (Virtual Private Network) creates an encrypted tunnel from your device to a VPN server. Everything travels inside that tunnel.

What VPNs are really used for

What a VPN does NOT do

Play Store"SUPER FREE VPN 100% Unlimited Secure!!" from an unknown developer, asks permission for contacts, SMS and storage.now

Not good. A VPN doesn't need your contacts or SMS. Many free VPNs collect and sell data. Use your company's VPN, or a reputable paid one, or none.

Your company IT team"To access the HR portal from home, connect through the company VPN app with your login and authenticator code."now

Good. This is exactly what VPNs are for, with 2FA.

Final check+20 XP

Which statement about VPNs is TRUE?

That's its real job. It doesn't stop scams or make you invisible.

Your task (10 min)

On Windows: search "Windows Defender Firewall" and check it's On for private and public networks. At home: open your router's settings (often 192.168.0.1 or 192.168.1.1, login is on the router sticker) and check whether a guest network is available. Change the router's admin password if it's still the default.

Lesson 9 complete!

You know what firewalls do, how rules work, what network segmentation is, and what a VPN does (and doesn't) do. Next: encryption, explained simply.

Next: Encryption, simply explained →