Skip to main content

75 docs tagged with "network"

View all tags

`/etc/hosts`

A descendant of the HOSTS.TXT file is the hosts file. On Linux, this file resides at /etc/hosts. It has a very simple syntax:

`netplan` System Events

During system initialization, systemd launches a series of system-generators very early in the startup phase. These generators help with low-level setup on items.

Cache Hierarchy

Cache hierarchies are further extending the caching idea. Groups of cache servers working in concert can increase the caching efficiency, route the traffic to the best link, and support a higher number of clients.

Caching Overview

HTTP caches help reduce perceived lag, network utilization, and may improve performance of web applications. Caches can also be used as a filtering proxy, restricting access to certain sites or resources. Caches come in two flavors, forward and reverse.

DNS Server

The nameserver (DNS server) ordered list can be found here:

Domain Name System

The Domain Name System (DNS) is a distributed, hierarchical database for converting DNS names into IP addresses. The key-value store can be used for more than just IP address information. The DNS protocol runs in two different modes:

Domain Name System

DNS is a distributed, hierarchical database for converting DNS names into IP addresses.

Dynamic Host Configuration Protocol (DHCP) Server

The Dynamic Host Configuration Protocol (DHCP) is used to configure the network-layer addressing. The dhcpd daemon used to be configured using both a configuration file (/etc/dhcp/dhcpd.conf) and a daemon options file that was distribution-dependent. Recent versions of dhcp have moved the daemon options into systemd.

Email Overview

Email programs and daemons have multiple roles and utilize various protocols.

Firewalls

A firewall is a network security system that monitors and controls network traffic. It applies to bot incoming and outgoing traffic. Can be implemented on HW and/or SW.

Layer 2 Configuration

Layer 2 is about the hardware setting and examination of network adapters. We can use the following commands to modify the network adapter configuration:

Linux Containers (LXC)

Linux Containers (LXC) are an operating system type of virtualization. This operating system type of virtualization uses the Linux facilities of cgroups and namespaces. This allows virtualization of items like CPUs, memory, block I/O, networks, etc.

LXC Network Example

Be aware that many details have been omitted and would be required to make this a functioning example.

LXC Utilities

Several command line utilities are available to manage the LXC containers:

Manipulating DNS Server

For instance, enter dig hackers-arise.com and add the ns option (short for nameserver ). The nameserver for hackers-arise.com is displayed in the ANSWER SECTION of Listing 3-3 .

Mounting Network Filesystems

The three methods of mounting network filesystems (immediate mount -command line-; always mounted; and mounted on-demand) use a common configuration file /etc/fstab. Over the years, additional features and services have updated the options in /etc/fstab. Functionality that required external packages, services and configuration are now combined under systemd services.

Net Inspection in Kubernetes Container

Let me break down the options for your specific use case of capturing localhost HTTP traffic inside a Kubernetes Pod named pod-78db6d7fc-gtdk9 with a container named container.

netfilter Vocabulary

netfilter is a packet-filtering framework built into the Linux kernel. To better understand netfilter, we need to start with some vocabulary:

Network Addresses

IP addresses uniquely identify nodes across the internet. They are registered using an ISP.

Network Monitoring

The iptraf tool is a RT. network traffic analyzer that recognizes the following protocols:

Networking Alternatives

There are alternatives for network configuration, not just libvirt. The alternatives in the configuration of the network usually center around the selection of hypervisor. Network configuration for Virtual Machines and LXC containers can be created with:

NFS

Network File System is a filesystem protocol built upon the Open Network Computing Remote Procedure Call system (ONC RPC). RPCs are managed by the portmap service.

Open Systems Interconnections (OSI) Model

The Open Systems Interconnection (OSI) model was created to standardize the language used to describe networking protocols. It defines the manner in which systems communicate with one another using abstraction layers. Each layer communicates with the layer directly above and below. Not all layers are used at all times.

Other Network Filesystems

- Andrew File System (AFS) is a distributed, network filesystem built for high performance. OpenAFS is an open source branch of the original AFS now owned by IBM.

Request IP Change from DHCP

The dhclient command sends a DHCPDISCOVER request from the network interface specified (here, eth0 ). It then receives an offer ( DHCPOFFER ) from the DHCP server and confirms the IP assignment to the DHCP server with a dhcp request.

Routing

We can get the routing list of IP to device/interface:

Server Message Block (SMB)

The Server Message Block (SMB) protocol was originally designed at IBM and later incorporated as the de facto networking file/print sharing system for Microsoft Windows.

Server Troubleshooting

For advanced server troubleshooting, the /proc filesystem has settings that affect the network stack:

Sockets

Print all socket information:

Squid

The main squid configuration file, squid.conf, can be found in the following locations:

TCP Wrappers

The TCP Wrappers system is a host-based network firewall and ACL. Originally, it only protected the inetd system, but has now been extended with the shared object library libwrap.

Troubleshooting

The most common errors found in setting up network filesystems are:

Virtual Local Area Network

VLANs use functionality in the switches and routers. The switch or router functionality must exist in the device as it is not usually an option that be added later.