CertGrid CertGrid
Hands-on Lab·Linux Foundation Certified System Administrator

What is listening, and what is connected

Before you can firewall a port or debug a service you have to know what is on it. ss answers that, and its flags are terse enough that most people memorise one invocation and stop. This guide takes them apart, and proves the resolver cache from the name-resolution page along the way.

Networking Guide 28 of 38 Beginner

ss is iproute2 and identical on both families. netstat is deprecated and not installed on a minimal system - ss is faster and reads the kernel directly.

Ubuntu leads every step; RHEL follows so the difference is visible rather than described.
Server NameIP AddressOSRolesCPURAMHDD
LFCS-A01192.168.0.70Ubuntu 26.04 LTSPrimary host - most guides run only here2 Core4 GB50 GB
LFCS-C01192.168.0.72AlmaLinux 10.2The other distribution - dnf, firewalld and NetworkManager2 Core4 GB50 GB

This guide includes

Use this before firewalling a port or debugging a service. This matters because you cannot decide what to allow until you know what is bound, and which address it is bound to.

Before you start

  1. The cache, finally cleared

  2. What this machine is listening on

  3. Filtering, and what is actually connected

  4. The same command on the other family

Official sources