Fundamentals of Linux iptables: A Guide for Kubernetes Engineers

Fundamentals of Linux iptables: A Guide for Kubernetes Engineers Introduction Before understanding how kube-proxy implements load balancing, we must grasp the underlying Linux networking primitives it relies on. iptables, the built-in firewall system in Linux, is the foundation of Kubernetes’ default proxy mode. Although iptables was originally designed as a security tool, its packet manipulation … Read more

Linux System Notes

Linux System Notes Basic Commands Find IP address: ifconfig View all files in the current directory (including hidden files): ls -a or ll Check memory usage: df -h Check memory usage of each file in the current directory: du -sh ./* Check if a specific process is running, for example, Nginx, ps -ef|grep nginx Kill … Read more

Home Network/Enterprise Network: Building a Pollution-Free DNS Server Based on Unbound (Redis Caching)

Pollution-free DNS, internal traffic diversion, internal caching (with Redis caching), traffic diversion acceleration Text Warning! System: Debian 12 local root server (SSH server has been selected) Minimum system requirements: 4 cores, 4 GB RAM Software: dnsproxy, unbound Please ensure your local server meets the necessary minimum requirements apt-get update apt-get -y install wget nano dnsutils … Read more

The Dialogue of the Internet: A Deep Dive into HTTP and WebSocket

In our daily web surfing, we rarely think about how browsers communicate with servers. This “dialogue” follows strict protocols, with HTTP and WebSocket being two of the most common “communication methods.” Today, we will delve into their differences and application scenarios. Basic Concepts: What are HTTP and WebSocket? HTTP (Hypertext Transfer Protocol) is the most … Read more

libcurl: The Swiss Army Knife for C++ Programmers

1. What is libcurl? In a nutshell: libcurl is a cross-platform client-side networking library written in C that supports over 200 protocols, used internally by countless projects such as Chrome, PHP, Python-requests, Node.js, and more. Features Description Protocols HTTP/1.1, HTTP/2, HTTP/3, HTTPS, FTP, FTPS, SMTP, IMAP, WebSocket, MQTT… Transport Layer TCP, UDP, Unix Domain Socket, … Read more

My Journey with Linux

1. Hi, everyone! I am a programmer who has long been immersed in the Linux world and relies on Linux for a living. Living in a second-tier city with a poor IT environment, as you may know, programmers here are already quite rare, and Linux programmers are even more of a rare species! However, there … Read more

Understanding TCP/IP: The ‘Universal Language’ of the Internet

Imagine you want to send a letter to a friend far away. What do you need to do? You put the letter in an envelope, write the recipient’s address and postal code, add your own address, and finally drop it in the mailbox. This entire process is exactly like how your computer sends data over … Read more

libftp: A Simple C++ Library

Introduction to deniskovalchuk/libftp Library 1. Project Overview Name: libftp Language: C++ Type: FTP Client Library Goal: To provide a simple and easy-to-use C++ interface for performing FTP operations such as connecting, logging in, uploading, downloading, and listing directories. 2. Core Features This project provides a FTPClient class that encapsulates common FTP operations: Connect to an … Read more

Methods for CPU, Memory, Disk IO, and Network Stress Testing on Linux

In embedded environments such as Linux/Android, relevant tools (some of which need to be ported) can be used to perform stress testing processes for related projects to determine stability and other results. Below are the relevant stress testing items and command usage instructions:CPU1. stressThe stress tool is a CPU, Memory, Disk IO, and load testing … Read more

Linux Basic Practice Multiple Choice Questions – 22

106. Question: To temporarily save iptables rules, the command used is iptables-save > ____. Option 1: rules.txt Option 2: config.rules Option 3: iptables.conf Option 4: saved-rules Correct Answer: 1 Explanation: To temporarily save iptables rules, the command iptables-save > rules.txt is used. This command saves the current firewall rules to a file named “rules.txt” for … Read more