Linux5h estimated

Linux Networking Tools

Difficulty
Importance

The problem

Configuring and debugging a Linux machine's network connectivity — what's listening, what's reachable, what's blocked — requires command-line tools that expose the OS's networking state directly, rather than relying on a GUI that may not exist on a server.

Why now

Network troubleshooting and tools already introduced the general-purpose diagnostic tools (ping, traceroute, curl); this topic is where those get applied specifically at the Linux OS layer, alongside the permission model that governs who's allowed to open privileged ports or change firewall rules.

Mental model

Every Linux networking tool answers one question about the machine's current network state: ss/netstat asks 'what's listening on which port,' ip asks 'what are my interfaces and addresses,' and firewall tools (ufw, iptables) ask 'what traffic is allowed through at all.' Debugging connectivity is picking the tool that answers the specific question the symptom raises.

Requires

Used in

Projects

  • Use ss -tulpn to list every process listening on a network port on your machine and identify what each one is
  • Configure a basic firewall rule (ufw or iptables) to block a specific port, then verify the block using curl or nc from another machine

Examples

  • ss -tulpn shows that nothing is listening on port 5432, immediately explaining a 'connection refused' error to a database
  • A firewall silently dropping packets (rather than rejecting them) produces a timeout, not an immediate refusal — a diagnostic clue in itself

Resources

Mastery checklist