Lesson 9 of 12
Lab 9 — Wi-Fi & Network Defence
Compare Wi-Fi security modes, spot evil twin hotspots and design a segmented, firewalled network.
Learn it
Public Wi-Fi can be risky: anyone nearby might see or fake the network.
An 'evil twin' is a fake hotspot with the same name as a real one.
A firewall decides what traffic is allowed in and out, like a bouncer.
Key terms
- WPA3
- Current Wi-Fi security standard, resistant to offline password cracking.
- Evil twin
- A fake access point mimicking a real one to intercept traffic.
- VLAN
- A virtual network segment that isolates groups of devices.
- Firewall
- Filters network traffic according to rules.
- Default deny
- Block everything unless a rule specifically allows it.
Spot the evil twin at the café
Your laptop shows these networks. Investigate.
- 11. Two names: 'Cafe_Free_WiFi' appears twice — one with a stronger signal.
- 22. Security: The real one uses WPA2 with a password on the menu. The twin is open.
- 33. Login page: The twin pops up a 'Sign in with Google' page on an odd domain. Credential harvesting!
- 44. Certificate: Your browser warns about an invalid certificate on your bank site. Stop immediately.
- 55. Defence: Forget the network, use mobile data or a VPN, and tell the café staff.
A simple firewall rule checker
pythonrules = [
('allow', 'tcp', 443), # HTTPS
('allow', 'tcp', 22), # SSH (admins only!)
('deny', 'any', None), # default deny
]
def check(proto, port):
for action, p, prt in rules:
if (p in (proto, 'any')) and (prt in (port, None)):
return action
print(check('tcp', 443)) # allow
print(check('tcp', 3389)) # denyRules are checked in order and the first match wins. The final rule blocks anything not allowed above.
Try it
Order Wi-Fi security from weakest to strongest.
- 1WPA3-SAE
- 2WEP
- 3Open network (no password)
- 4WPA2-PSK
Challenge
Design the network for a school: staff, students, guests, CCTV cameras and smart boards. Draw or list the zones (VLANs) and write firewall rules for what each zone may reach.
Pick whichever way suits you — every mode earns the same bonus XP.
Write at least 40 more characters to submit.
Mark your own work
Guided walkthrough — 0/3 clues revealed
- Clue 1 locked — reveal it only if you get stuck.
- Clue 2 locked — reveal it only if you get stuck.
- Clue 3 locked — reveal it only if you get stuck.
Each clue costs 6 XP (never below 30 XP). You'd earn 60 XP right now.