Skip to main content
DevOps

Networking Tutorial with Examples.

Networking tutorial you can run: subnets, sockets, the TCP handshake in tcpdump, DNS, raw HTTP, nftables firewalls and nmap on your own lab.

Beginner

Start here — no prior experience needed

4 lessons

Intermediate

For developers with core concepts down

4 lessons

Also part of Networking

Taught in other topics. Each link opens the lesson in its home topic.

11 lessons
linux intermediate
5 min read

Two real networking failures at the OS layer: a deleted default route that leaves the local subnet reachable but the internet not, and a socket bound to 127.0.0.1 that refuses every connection from outside the container.

bash intermediate
5 min read

Bash networking with curl, jq, nc, /dev/tcp and rsync: status and exit codes, safe JSON, port checks, wait-for-port, and SSH heredoc quoting.

docker intermediate
5 min read

Connect containers by name on user-defined bridge networks, see network isolation, aliases, the host and none drivers, and reach the host from a container.

fastapi beginner
5 min read

GET, POST, PUT, PATCH and DELETE on an in-memory FastAPI store, with real curl output for 200, 201, 204, 404, 405, 422 and an unhandled 500.

fastapi beginner
5 min read

Read request headers with Header(), set response headers, and set, read and delete cookies in FastAPI, with real curl -i output and a curl cookie jar.

cloud intermediate
5 min read

VPCs, subnets, and firewall rules share one model everywhere — the same allow-443-deny-rest rule as a security group, an NSG rule, and a GCP rule.

aws intermediate
5 min read

Build a subnet, route table, and internet gateway, then walk through the exact debugging sequence for an EC2 instance that can't reach the internet.

gcp intermediate
5 min read

Build a custom VPC with a subnet and firewall rules, then debug the classic case of a VM with a public IP that still can't reach the internet.

azure intermediate
5 min read

Build a VNet with two subnets, apply an NSG, then walk the exact debugging sequence for a VM that can't reach the internet.

cryptography intermediate
5 min read

Run a TLS 1.3 handshake on localhost with openssl s_server and s_client, then watch it fail on an unknown CA, a wrong hostname and a TLS 1.2-only client.

system-design beginner
5 min read

Round robin sends every server an equal share regardless of load; least connections adapts to which servers are actually busy right now.