How to Log Dropped Packets from the Linux IPTables Firewall to a Log File

Abstract: This article explains how to log incoming and outgoing dropped firewall packets. When your IPTables rules are not working as expected, you may need to log the dropped packets for troubleshooting. This article describes how to log incoming and outgoing dropped firewall packets. Logging All Dropped Incoming Packets First, we need to understand how … Read more

Linux Experiment 3: Directory Operations – Questions and Answers

Task: Use commands to complete the following operations 1. Create directories<span>/home/guestuser1/work1</span> and <span>/home/guestuser/work2</span> mkdir /home/guestuser1/work1 /home/guestuser/work2 2. Change the current directory to<span>/home/guestuser/work1</span> cd /home/guestuser/work1 3. Display the current path: pwd 4. Switch to the root directory; cd / 5. Display all contents in the current directory (including hidden files); ls -a # or ll -a … Read more

Step-by-Step Guide: Using the Air780 4G Module for USB Internet Access on Arm Linux – PPP Dial-Up

1. Hardware 4G Module: Hezhao Air780EMain Control: NUC980 Main Control Pin: Using USB1 4G Module Pins: 2. 4G Module The VID and PID of the 780ER module are 19d1 and 0001 respectively. 3. Kernel Driver Configuration Before adding the USB driver, check the original development board’s USB information. 3.1 Driver Modification Add VID and PIDTo … Read more

Nimbuspwn: Microsoft Discovers Multiple Privilege Escalation Vulnerabilities in Linux Operating System

Microsoft has discovered two privilege escalation vulnerabilities in the Linux operating system that could allow attackers to perform various malicious activities. They are CVE-2022-29799 and CVE-2022-29800, collectively referred to as “Nimbuspwn”. The Microsoft 365 Defender security team released a report stating that these vulnerabilities “can be exploited in combination to gain root privileges on Linux … Read more

Common Linux Commands – Part 2

File Search Commands: 1. find directory -name “filename“ – Search for files by name 2. find directory -type f -name “*.txt” – Find specific type of files 3. grep “text” filename – Search for text in a file 4. grep -r “text” directory – Recursively search for text in a directory 5. locate filename – … Read more

Recommended Linux C++ Project: File Server + How to Quickly Get Started with Large C++ Projects

1 The Significance of This Sharing Source code address: https://github.com/shangguanyongshi/WebFileServer.git Video explanation:https://www.bilibili.com/video/BV1bGkPYzExW/ After learning C++ and Linux programming, you can use the WebFileServer file server as a practical project. It is more meaningful than the WebServer project as it includes file upload functionality. This sharing not only explains how to run the WebFileServer project but … Read more

Comprehensive Analysis of Linux Permissions: An Essential Guide from Beginner to Expert!

Linux | Red Hat Certification | IT Technology | Operations Engineer 👇 Join our technical exchange QQ group with 1000 members, note 【public account】 for faster approval 1. Introduction to Shell Commands Before understanding Linux operating permissions, let’s add a knowledge point: shell – command line interpreter. For Linux, it is the operating system, which … Read more

A Brief Introduction to the Underlying Mechanisms of Linux Program Execution

🌟 1. Program Startup: From “Forking” to “Transforming” Forking After entering a command, the Shell instantlyforks a child process, where the parent and child share resources, but throughCopy-On-Write (COW) optimization—only when data is modified do they “split”, saving time and effort! Transforming (execve) The child process calls<span>execve</span> to replace its genes: the kernel parses the … Read more

Essential Linux Operations: How to Properly Discard Command Output and Error Messages

In Linux system administration and operations, we often need to run various commands and scripts. Some commands generate a large amount of output, while others may frequently report errors, affecting the readability of logs or consuming storage space. Efficiently discarding unnecessary output and error messages is a skill that Linux operations engineers must master. This … Read more

Mastering Core Skills in Linux File Compression and Packaging

Linux Cloud Computing | Daily Practice | Practical Tools | Career Development In Linux systems, file compression and packaging are essential skills. Whether for saving disk space or facilitating file transfer, mastering these techniques can significantly enhance your efficiency. This article will take you through common compression and packaging formats such as tar, gzip, and … Read more