Kali Linux Networking for DevOps
Master Linux networking, DNS, routing, TCP/IP, ports, packet capture, firewalls, and service troubleshooting using Kali Linux.
Learn how traffic actually moves through Linux, Docker, cloud, and modern infrastructure — and how to find where it breaks.
New to Kali? Start with Kali Linux for DevOps Engineers: Getting Started.
The skills behind most outages
DNS
Most "the app is down" incidents are really name-resolution failures.
Routing
Understand why a VM, container, or node picks one network path over another.
TCP/IP
Read handshakes, resets, and timeouts to separate network from application faults.
Ports
Know exactly what is listening, on which address, and who can reach it.
Firewalls
Trace a blocked connection through cloud, host, and container layers.
Packet Capture
Prove what the network actually did — not what the app claims happened.
From interfaces to packet capture
- Interfaces
- IP Addresses
- CIDR
- Routing
- ARP
- TCP/UDP
- Ports
- DNS
- Nmap
- Traceroute
- tcpdump
- Wireshark
- Firewalls
- TLS
Networking as a troubleshooting stack
Learn to identify which layer is broken before trying to fix it.
Application ← HTTP, SSH, the app itself
↓
TLS ← certificates, handshake
↓
Port ← is anything listening?
↓
DNS ← does the name resolve?
↓
Gateway ← is the next hop reachable?
↓
Route ← which path does the kernel pick?
↓
Interface ← is the NIC up, with an IP? The 15-lesson path
- Part 01
Networking Fundamentals for DevOps Engineers
Learn Linux networking fundamentals for DevOps: hosts, IPs, subnets, CIDR, gateways, ports, DNS, TCP vs UDP, and exactly what happens when you run curl.
BeginnerStart lesson - Part 02
Understanding Network Interfaces With iproute2
Inspect Linux network interfaces with iproute2: read ip link and ip addr output, interface state, MAC, IPv4 and IPv6, and tell lo, eth0, docker0 and veth apart.
BeginnerStart lesson - Part 03
IP Addresses, Subnets, and CIDR for DevOps
Learn IPv4 addresses, subnets, netmask and CIDR with worked /16-/27 examples, and how subnetting maps to cloud VPCs, Docker bridges and Kubernetes networks.
BeginnerStart lesson - Part 04
Linux Routing With Kali Linux for DevOps Engineers
Learn Linux routing with ip route: read the routing table, default routes, next hop, longest-prefix match, ip route get, and how to diagnose common routing failures.
BeginnerStart lesson - Part 05
ARP and Neighbor Discovery on Linux
Read the Linux neighbor table with ip neigh: how IP-to-MAC resolution and ARP work, what REACHABLE, STALE and FAILED mean, plus Layer 2 troubleshooting.
BeginnerStart lesson - Part 06
TCP vs UDP for DevOps Engineers
TCP vs UDP explained for DevOps: connection-oriented vs connectionless, the 3-way handshake, RST resets, and reading SYN/SYN-ACK handshakes in captures.
BeginnerStart lesson - Part 07
Linux Ports and Listening Services With ss
Inspect Linux listening ports with ss -tulpn: listening vs established sockets and the critical 127.0.0.1 vs 0.0.0.0 bind-address difference DevOps hit.
BeginnerStart lesson - Part 08
Testing Network Connectivity With Kali Linux
Test network connectivity layer by layer with ping, traceroute, nc and curl on Kali Linux, and learn why a successful ping never proves the app works.
IntermediateStart lesson - Part 09
DNS Troubleshooting With Kali Linux
Troubleshoot DNS with dig and resolvectl on Kali — record types, +trace, reverse DNS, resolver checks, and common failures including container DNS.
IntermediateStart lesson - Part 10
Traceroute, MTR, and Network Path Analysis
Analyze network paths with traceroute and mtr on Linux — hops, TTL, round-trip time, packet loss, and why asterisks don't always mean a hop is failing.
IntermediateStart lesson - Part 11
Nmap for DevOps Network Validation
Use Nmap for authorized infrastructure validation: discover open ports, compare declared vs observed exposure, and scan safely in a controlled lab you own.
IntermediateStart lesson - Part 12
tcpdump for DevOps Engineers: Kali Linux Tutorial
Capture packets with tcpdump on Kali: filter by interface, host, port and protocol, then read TCP handshakes, resets, timeouts and DNS straight from the wire.
IntermediateStart lesson - Part 13
Wireshark for DevOps Engineers
Analyze packet captures with Wireshark: open pcap files, apply display filters, follow TCP streams, inspect DNS/HTTP/TLS, and spot retransmissions and resets.
IntermediateStart lesson - Part 14
Linux Network Troubleshooting: Firewalls and Filtering
Troubleshoot Linux firewalls: nftables vs iptables, the INPUT/OUTPUT/FORWARD chains, and finding which layer (cloud, host, or container) drops a connection.
IntermediateStart lesson - Part 15
Build a Complete DevOps Network Troubleshooting Lab
Build an isolated Kali + nginx + API Docker lab with deliberate, safe misconfigurations and diagnose each one using the full Linux networking toolkit.
IntermediateStart lesson
Which tool should I use?
Hostname doesn't resolve? → dig
Can't reach the server? → ip route / ping
Port won't connect? → nc / nmap
HTTP failing? → curl -v
TLS failing? → openssl s_client
Still unclear? → tcpdump The DevOps network troubleshooting workflow
Start at the lowest layer you can verify and work upward — don't restart the app before you know packets even reach the host.
- 1Define the expected behavior
- 2Check the local interface (ip addr)
- 3Check the IP address
- 4Check the route (ip route get)
- 5Check gateway reachability (ping / ip neigh)
- 6Check DNS (dig)
- 7Test the TCP/UDP port (nc / ss)
- 8Check TLS if applicable (openssl)
- 9Check the application (curl -v)
- 10Capture packets if still unclear (tcpdump)
Network command cheat sheet
| Goal | Command |
|---|---|
| Show interfaces | ip addr |
| Show routes | ip route |
| Show neighbor (ARP) table | ip neigh |
| Which route to a target | ip route get 8.8.8.8 |
| Show listening ports | ss -lntup |
| Test DNS | dig +short example.com |
| Reverse DNS | dig -x 192.0.2.10 |
| Test a TCP port | nc -vz host 443 |
| Test HTTP end to end | curl -v https://host |
| Inspect a TLS certificate | openssl s_client -connect host:443 |
| Trace the path | traceroute host |
| Discover lab ports | nmap -p 22,80,443 192.168.56.10 |
| Capture packets | tcpdump -i eth0 port 443 |
The Kali networking toolkit
- ip
- ss
- dig
- curl
- nc
- traceroute
- mtr
- nmap
- tcpdump
- Wireshark
- openssl
Where this fits in the curriculum
- ✓ Basic Linux and command-line familiarity (no strong networking knowledge assumed)
- ✓ Kali Linux: Getting Started — recommended if you're new to Kali
- ✓ Kali Linux on Docker — optional, useful to run the labs in containers
- ✓ A local Kali VM or container to run the exercises safely
Recommended Reading
Optional references. The tutorials are the primary learning path.
Recommended Kali Linux Books
- View Book on Amazon Affiliate link
The Ultimate Kali Linux Book
A broad, beginner-friendly walkthrough of Kali Linux and its core toolset.
- View Book on Amazon Affiliate link
Kali Linux Penetration Testing Bible
A comprehensive reference for structured security-testing workflows with Kali.
- View Book on Amazon Affiliate link
Kali Linux Revealed
The official guide to Kali Linux fundamentals, configuration, and administration.
- View Book on Amazon Affiliate link
Mastering Kali Linux for Advanced Penetration Testing
An advanced deep-dive into Kali for experienced security testers.
- View Book on Amazon Affiliate link
The Ultimate Kali Linux Book
A broad Kali Linux reference covering installation, configuration, and its security tooling.
- View Book on Amazon Affiliate link
Kali Linux Hacking
An introduction to security-testing concepts using Kali Linux.
- View Book on Amazon Affiliate link
Mastering Hacking With Kali Linux
A practical guide to security-testing techniques with Kali Linux.
- View Book on Amazon Affiliate link
Learning Kali Linux
A hands-on introduction to the Kali Linux toolset for security testing.
Affiliate Disclosure: Some links on this page are affiliate links. If you purchase through one of these links, DevOps AI Toolkit may earn a commission at no additional cost to you. See our affiliate disclosure.
Kali Linux networking — common questions
Is networking important for DevOps?
Critically. A large share of production incidents — failed deploys, unreachable services, intermittent latency — are network problems: DNS, routing, firewalls, or a service bound to the wrong address. Being able to isolate the failing layer is one of the highest-leverage DevOps skills.
Why use Kali Linux for network troubleshooting?
Kali ships the full networking toolkit — dig, ss, nmap, tcpdump, traceroute, mtr, openssl, Wireshark — already installed and current. You can run it as a disposable VM or container and have every diagnostic ready without polluting a production host.
What networking commands should a DevOps engineer know?
Start with ip addr, ip route, ip neigh, ss -lntup, dig, nc -vz, curl -v, traceroute, and tcpdump. This course teaches each one in the order you would actually reach for it while troubleshooting.
What is the difference between ping and Nmap?
ping tests basic reachability at the IP layer (ICMP) — it tells you a host answers, not that any service works. Nmap probes specific TCP/UDP ports to tell you which services are actually listening and reachable. A host can answer ping while the port you need is closed or filtered.
What is the difference between tcpdump and Wireshark?
Both analyze packets. tcpdump is a lightweight command-line capture tool ideal on servers with no GUI — you capture to a .pcap file. Wireshark is a graphical analyzer for reading that capture: following TCP streams, applying display filters, and inspecting DNS, HTTP, and TLS. A common workflow is capture with tcpdump, analyze in Wireshark.
How do I troubleshoot DNS on Linux?
Use dig to query records directly (dig +short name, dig name A, dig -x ip for reverse, dig +trace to follow the delegation). Check which resolver you are actually using with resolvectl. The course covers wrong records, stale caches, split DNS, search domains, and container DNS.
How do I check which ports are listening?
Use ss -lntup to list listening TCP and UDP sockets with their local address and owning process. Pay attention to the bind address: 127.0.0.1 is local-only, while 0.0.0.0 accepts connections from any interface — a frequent cause of "works locally, not remotely".
How do I determine which route Linux will use?
Run ip route get <destination>. It shows the exact interface, gateway, and source IP the kernel would use, applying longest-prefix matching across the routing table — far more precise than reading ip route by eye.
Can I use Kali Linux for Docker network troubleshooting?
Yes. The same tools work inside containers and against Docker bridge networks, and the companion Kali Linux on Docker series builds a containerized lab. This course links networking concepts — bridges, veth pairs, embedded DNS, port publishing, NAT — back to Docker.
Can these skills be applied to Kubernetes?
Directly. Pod IPs, Services, DNS, and NetworkPolicies are the same primitives — DNS, routing, ports, and firewalls — applied at cluster scale. You will apply these same fundamentals in the upcoming Kali Linux + Kubernetes learning path.
Learn How Networks Actually Work
Start with interfaces and IP addresses, then progress through routing, DNS, TCP, ports, packet analysis, and real-world DevOps troubleshooting.
Start Part 1: Networking Fundamentals →