Sample Curriculum • Local WSL2 / Linux
Free First-Principles Labs
Test our teaching style directly in your own Linux or WSL2 terminal. All exercises run locally in isolated network namespaces—zero cloud accounts required.
LAB 01 • KERNEL & SOCKET INTERNALS
Est. Time: 15 mins
Inspecting TCP SYN Backlog Exhaustion with ss & tcpdump
When a server receives half-open TCP connections (SYN_RECV), the Linux kernel stores them in the SYN queue bounded by net.ipv4.tcp_max_syn_backlog and the socket's listen() backlog. Run these commands in an isolated namespace to observe queue saturation in real time:
# 1. Create an isolated network namespace and bring up loopback
sudo ip netns add lab_syn && sudo ip netns exec lab_syn ip link set lo up
# 2. Start a listener with a tiny accept backlog (queue size = 2)
sudo ip netns exec lab_syn python3 -c "import socket, time; s=socket.socket(); s.bind(('127.0.0.1', 9000)); s.listen(2); time.sleep(120)" &
LISTENER_PID=$!
# 3. Inspect socket Send-Q (max backlog) vs Recv-Q (current pending)
sudo ip netns exec lab_syn ss -lnt sport = :9000
# 4. Clean up listener and namespace when finished
sudo kill "$LISTENER_PID" 2>/dev/null; sudo ip netns del lab_syn
What you learn in the live session: Why SYN cookies activate when the queue fills, how TCP options like window scaling break during SYN flood mitigation, and how to capture the exact packet drop behavior in Wireshark.
LAB 02 • NETFILTER & STATEFUL FIREWALLS
Est. Time: 20 mins
Building a Default-Drop Stateful Firewall Table with nftables
Modern Linux distributions replace legacy iptables with nftables. Test a standalone inet table inside a temporary network namespace without touching your host machine's active SSH/network rules:
# 1. Spin up an isolated firewall sandbox namespace
sudo ip netns add lab_fw && sudo ip netns exec lab_fw ip link set lo up
# 2. Load a stateful default-drop input policy inside lab_fw
sudo ip netns exec lab_fw nft -f - << 'EOF'
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
iif "lo" accept
ct state established,related accept
tcp dport 22 ct state new limit rate 5/minute accept
}
}
EOF
# 3. Verify active hooks & packet counters, then cleanup
sudo ip netns exec lab_fw nft list ruleset && sudo ip netns del lab_fw
Want a personalized 4-week lab roadmap?
Book a free 20-minute technical assessment call. We will review your current Linux/networking baseline and map out custom labs for your goals.
Book Free 20-Min Assessment