Skip to content
Tutorials Center
My learning

Topics

Network Security Tutorial

Learn Network Security step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Network Security? Learn what network security is, what it protects, the main kinds of controls, and how this course teaches defence safely with runnable Python stand-ins.
  2. 2 The CIA Triad and Security Goals Understand the CIA triad plus authentication, authorisation and non-repudiation, with runnable Python examples of integrity checks and availability maths.
  3. 3 A Defender's Map of the Network Layers See which attacks and defences live at each network layer, how a packet is wrapped in headers, and parse a real packet layout with Python's struct module.
  4. 4 Defence in Depth and Core Principles Learn defence in depth, least privilege, default deny, fail-safe design and attack surface reduction, and simulate layered controls with runnable Python.
  5. 5 Legal and Ethical Ground Rules, and a Safe Lab Learn what authorised security testing means, how scope and rules of engagement work, and how to build a safe isolated home lab to practise defence legally.

Threats and Models

  1. 6 Threat Actors and the Attack Surface Learn who attacks networks and why, how the kill chain describes an intrusion, and how to measure and shrink your attack surface with a runnable Python inventory.
  2. 7 Common Network Attacks and How to Spot Them Understand sniffing, spoofing, ARP poisoning, man-in-the-middle, DNS attacks and denial of service at a conceptual level, and run defensive detectors in Python.
  3. 8 Threat Modelling with STRIDE and Data Flow Diagrams Learn threat modelling step by step: draw a data flow diagram, apply the six STRIDE categories, rank threats, pick mitigations, and automate the checklist in Python.
  4. 9 Reconnaissance and Port Scanning for Defenders Learn how port scans work, what open, closed and filtered mean, how to read scanner output and detect scans, with a safe loopback-only scanner you run yourself.
  5. 10 Packet Analysis for Defenders Learn how defenders capture and read packets with tcpdump, Wireshark and BPF filters, then summarise flows and flag clear-text credentials in Python.

Firewalls and Segmentation

  1. 11 Firewall Types and How They Work Compare packet-filtering, stateful, proxy, next-generation and web application firewalls, host versus network firewalls, and see a packet filter work in Python.
  2. 12 Writing Firewall Rules: iptables, nftables and Security Groups Learn to write a default-deny firewall policy with nftables and iptables, read ufw and cloud security group rules, and check a ruleset with a Python audit script.
  3. 13 Stateful Inspection and Connection Tracking See how a stateful firewall tracks TCP and UDP connections, the TCP state machine, timeouts and table exhaustion, by building a working connection tracker in Python.
  4. 14 Network Segmentation, VLANs and the DMZ Learn how to split a network into security zones with VLANs, subnets, a DMZ and microsegmentation, and verify zone-to-zone policy with a runnable Python matrix.
  5. 15 NAT, Proxies and Egress Filtering Learn what NAT does and does not protect, how forward and reverse proxies work, why egress filtering matters for malware and exfiltration, with Python simulations.

VPNs and Tunnelling

  1. 16 VPN Fundamentals: Tunnels, Types and Threat Models Learn what a VPN really provides, how tunnelling and encapsulation work, site-to-site versus remote-access VPNs, split tunnelling and limits, with a toy tunnel in Python.
  2. 17 IPsec: IKE, ESP and AH Explained Understand IPsec: security associations, IKEv2 negotiation, ESP and AH, tunnel and transport mode, plus runnable proposal negotiation and anti-replay window demos.
  3. 18 WireGuard and OpenVPN Compare WireGuard and OpenVPN: design, keys, cryptokey routing, configuration, performance and operations, with a runnable AllowedIPs routing and peer-policy simulation.
  4. 19 SSH Tunnelling and Port Forwarding Learn SSH local, remote and dynamic port forwarding, jump hosts and key-based login, the security risks of tunnels, and audit an sshd_config in Python.

IDS/IPS and Monitoring

  1. 20 IDS vs IPS - Detection and Prevention Learn how intrusion detection (IDS) and intrusion prevention (IPS) systems differ, where to place sensors, and how passive and inline modes trade safety for control.
  2. 21 Signature-Based Detection Understand how signature-based intrusion detection works, write simple pattern rules, see why attackers evade them, and learn how to normalize input before matching.
  3. 22 Anomaly Detection and Baselines Learn how anomaly-based detection builds a baseline of normal network behavior, flags outliers with z-scores, spots periodic beaconing and keeps false alarms manageable.
  4. 23 Snort and Suricata Rules Learn the structure of Snort and Suricata IDS rules: header, options, content matches, flow and thresholds, with a runnable rule parser and safe defensive examples.
  5. 24 Log Analysis and SIEM Learn how network and firewall logs become security alerts: collecting, parsing, normalizing, correlating events in a SIEM, and detecting brute force and port scans in code.

Wireless and Zero Trust

  1. 25 Wi-Fi Security: WPA2, WPA3 and Rogue Access Points Understand Wi-Fi encryption from WEP to WPA3, how pre-shared keys and 802.1X differ, and how to harden a wireless network and detect rogue or evil-twin access points.
  2. 26 Zero Trust Principles Learn what zero trust means: never trust, always verify, least privilege and assume breach, plus the policy engine, identity, device posture and micro-segmentation behind it.
  3. 27 Building a Zero Trust Policy Engine Build a small zero trust policy decision point in Python: score identity, device posture and risk signals, apply least-privilege rules and see why each request is allowed or denied.

Secure Protocols

  1. 28 The TLS Handshake and Certificates Follow the TLS 1.3 handshake step by step: key exchange, certificates, chains of trust, hostname checks and common misconfigurations, with toy Python demos of each idea.
  2. 29 DNS Security Understand DNS attacks such as cache poisoning, spoofing and tunnelling, and defenses: DNSSEC, DoT and DoH, resolver hardening, RPZ filtering and spotting suspicious queries.
  3. 30 Email Security: SPF, DKIM and DMARC Learn how email spoofing works and how SPF, DKIM and DMARC authenticate senders, how STARTTLS and MTA-STS protect transport, and how to read and evaluate the DNS records.
  4. 31 SSH Hardening and Secure Remote Access Secure SSH properly: key-based authentication, a hardened sshd_config, host key verification, bastion hosts and jump proxies, and an auditing script that checks a config against best practice.

Design and Operations

  1. 32 Defense in Depth Architecture Design a layered network: zones, DMZ, management plane, segmentation rules and monitoring. Model an architecture as data and test it automatically for missing controls and risky paths.
  2. 33 Vulnerability and Patch Management Learn the vulnerability management cycle: asset inventory, scanning, CVSS and exploit-aware prioritization, patch windows and exceptions, with a Python tool that ranks findings by risk.
  3. 34 Network Incident Response Learn the incident response lifecycle for network security events: preparation, detection, triage, containment, eradication, recovery and lessons learned, with a timeline builder and playbook.

Projects and Practice

  1. 35 Project: A Network Log Analyzer Build a complete log analyzer in Python: parse firewall and web logs, detect scans, brute force and suspicious requests, rank sources by risk and produce a readable incident report.
  2. 36 Project: Scanning Your Own Loopback Ports Learn how port scanning works by building a small TCP connect scanner in Node.js that only targets the local loopback address, grabs banners and flags services missing from an allow-list.
  3. 37 Practice: Network Security Scenarios Practice network security with realistic defensive scenarios: reading alerts, choosing controls, hardening reviews, interview-style questions and coding exercises with solutions.