While attempting to use Typecho to create a bilingual blog, I encountered a problem: I wanted the blog to support both Chinese and English languages. However, after some searching, I couldn't find a method to directly implement this function. Therefore, I learned PHP on the fly and tried using the mirror site mode. The blog site is a Chinese site, and the enblog site is an English site. Users can switch between them in the sidebar. This is a crude method, but it's a convenient one for someone like me who isn't very technically proficient. I'm sharing my code here in the hope that it will inspire others to further optimize it.

- Read the rest -

Introduction:

Fail2Ban is a tool used to ban malicious logins that result from multiple authentication errors. By scanning log files (such as /var/log/auth.log), this tool can identify and ban IP addresses with excessive failed login attempts. It accomplishes this by updating the system's firewall rules, denying new connections from these IP addresses. Although Fail2Ban can reduce the frequency of erroneous authentication attempts, it cannot entirely eliminate the risks posed by weak authentication. It's recommended to set up two-factor or public key/private key authentication mechanisms to further enhance security.

- Read the rest -

Introduction:

Rainmap Lite is a responsive web application that allows users to easily launch Nmap scans from mobile devices, tablets, or web browsers. Unlike its predecessor Rainmap, Rainmap Lite is simpler to deploy and doesn't require special services (such as RabbitMQ, PostgreSQL, Celery, supervisor, etc.). Just install the Django app and add a cron polling task to easily set up a new scan server on any server.

Features:

  • Easily launch Nmap scans with a few clicks.
  • Responsive interface ensures smooth operation on mobile/tablet devices.
  • Send reports via email in all formats.
  • View reports from a web browser.
  • Schedule scanning tasks.
  • Provides dozens of scan profiles for users to choose from.
  • Simple installation/setup.
  • List items

- Read the rest -

Introduction:

When we have a high-performance server that we are not fully utilizing ourselves, we can consider creating a shared IP VPS for segmentation and selling to others. Using the script introduced in this article to create, each partitioned server can be independent of each other and not interfere with each other. A panel is also provided to manage the partitioned shared IP VPS.

Environmental requirements:

  • System requirements: Debian 8+ (Debian 11 is recommended over Debian 12, as the latter is a beta version, while Debian 11 is the stable release)
  • Hardware requirements: A server with at least a dual-core processor, 2 GB of memory, a 64-bit architecture, and at least 20 GB of hard drive space
  • Requirements for hardware that can run KVM: VM-X or AMD-V support (supported by some VPS and all dedicated servers)
  • If the hardware or system requirements are not met, you can use LXD to batch create LXC containers

- Read the rest -