Module 76: API and Network Security

Lesson 1 of 5 · 15–25 minutes

Firewalls and network layers

🏠The everyday picture

A city has a checkpoint at its border, a guard at each housing society's gate, and a lock on each flat. Getting past one doesn't open the others.

📘What it really is

🖱️Try it

Review your server's UFW rules and your cloud firewall: write them out side by side and check both are default-deny. If your home or office has a fixed IP, restrict SSH to it in the cloud firewall. Install fail2ban for SSH and check its status after a day (sudo fail2ban-client status sshd). From outside, nmap -Pn your own server again and confirm only the expected ports are open.

✅Quick check

Why use both a cloud firewall and a host firewall?

Show the answer

Defence in depth: if one is misconfigured, the other still blocks unwanted traffic.

Can a WAF replace fixing vulnerabilities in your app?

Show the answer

No. It's an extra layer that catches common patterns; the app must still be secure.

← BackModule 76
ProLearners Assist