Firewall
# Show all listening TCP ports with process names
sudo ss -tlnp
# Show all listening UDP ports with process names
sudo ss -ulnp
# Show both TCP and UDP listening ports
sudo ss -tulnp
# Show all connections (not just listening)
sudo ss -tunap