System Servicesnetworkingtcp/ipservicesprotocolsinfrastructure

netbase

netbase provides the necessary infrastructure for basic TCP/IP based networking in Linux systems. It supplies common name-to-number mappings in key configuration files.

Description

netbase is a fundamental package in Kali Linux that delivers the essential infrastructure required for basic TCP/IP networking. It ensures that systems have the correct mappings for network services, protocols, RPC programs, and Ethernet types, which are critical for proper network functionality.

The package populates important system files such as /etc/services, /etc/rpc, /etc/protocols, and /etc/ethertypes with standard name-to-number mappings. These files are used by various networking applications and system services to translate human-readable service names to port numbers and other protocol identifiers.

Use cases include setting up any TCP/IP networked environment where standard protocol and service definitions are needed. It's typically installed by default but can be explicitly added to ensure networking infrastructure is properly configured.

How It Works

netbase operates by installing and maintaining standardized configuration files that contain mappings between service names and port numbers (/etc/services), RPC program numbers (/etc/rpc), IP protocol numbers (/etc/protocols), and Ethernet protocol types (/etc/ethertypes). These files serve as lookup tables for networking applications and kernel modules that need to resolve symbolic names to numeric identifiers used in network communications. The package doesn't run as a service but provides static data files essential for TCP/IP stack functionality.

Installation

bash
sudo apt install netbase

Examples

Installs the netbase package providing TCP/IP networking infrastructure
sudo apt install netbase
Displays service name to port number mappings provided by netbase
cat /etc/services
Shows IP protocol number mappings supplied by netbase
cat /etc/protocols
Views RPC program number mappings from netbase
cat /etc/rpc
Lists Ethernet protocol type mappings provided by netbase
cat /etc/ethertypes
Uses netbase-provided /etc/services file to find SSH service port mapping
grep ssh /etc/services
Queries netbase /etc/services file for HTTP service port information
grep http /etc/services
Updated 2026-04-16kali.org ↗