Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: centos

RSS

nginx Cipher Suite Security Audit

This article documents the company's entire process of identifying and resolving HTTPS cipher suite security vulnerabilities during the Level 3 Classified Protection (MLPS Level 3) assessment. Initially, scanning with the `nmap` tool revealed the presence of insecure cipher suites. Although the Nginx configuration was optimized to disable TLS 1.2 and retain only secure suites, external access tests still indicated issues. By comparing the results of local self-testing, which showed normal behavior, with the anomalies observed from external networks, it was determined that traffic passed through other middleware before reaching Nginx. After consulting with the operations team and reviewing historical purchase records, the root cause was finally identified as an incorrectly configured TLS restriction in the Alibaba Cloud WAF. Disabling the WAF caused the issue to disappear, and the problem was subsequently resolved completely through product upgrades and proper configuration. This experience not only highlighted the importance of configuring front-end middleware in security architectures but also prompted a deep reflection on troubleshooting methodologies: one should follow a logic of narrowing down from a broad scope to a specific one, using the discrepancies between internal and external network tests to quickly locate bottlenecks, thereby avoiding blind trial-and-error. Although inefficient communication with the operations team reduced efficiency during the process, the core lesson lies in establishing clear, progressive troubleshooting thinking, transforming theoretical insights into precise technical localization, and thus efficiently resolving security risks in complex network environments.

Views 200
2023 centos cloud docker nginx security work

Uninstalling and Installing Docker

This document records the complete process of thoroughly uninstalling and reinstalling Docker on CentOS and Ubuntu systems. First, before proceeding with any operations, it is essential to confirm that no other users are currently using the Docker service to avoid disrupting business operations. For CentOS, simply use the `yum` command to remove the relevant component packages. For Ubuntu, use `apt-get` to delete dependency packages such as `docker.io`. In the reinstallation phase, if the server has access to the external network, the most convenient approach is to directly execute the official script or add the official GPG key and repository source. If the environment is an internal network, it is recommended to configure the Tsinghua mirror source to accelerate downloads, which can be achieved by modifying environment variables or replacing the repository address. Finally, after installation is complete, start the Docker service, run the `hello-world` image, and check the `docker compose` version to verify that the installation was successful. The entire process emphasizes the importance of selecting the correct package manager commands based on the system type and flexibly switching mirror sources according to network conditions.

Views 102
Docker Compose Uninstall Docker centos devops docker ubuntu

Setting Up and Using RDP Server for Remote Control

This article provides a detailed guide on setting up the xrdp remote desktop service on CentOS 7 and Ubuntu systems. For CentOS 7, the article first demonstrates installing xrdp and tigervnc-server via yum, emphasizing the necessity of starting the service, enabling it to start on boot, and verifying port 3389. It specifically points out that when SELinux is enabled, the security context of xrdp-related binary files must be adjusted, and the 3389/tcp port must be opened in the firewall; otherwise, connection failures will occur. Subsequently, the article explains how to install the GNOME or Xfce desktop environment, switch the default session to the lighter Xfce by modifying the ~/.Xclients file, and finally restart the service to apply the configuration. For Ubuntu systems, since directly installing xrdp may cause compatibility issues, it is recommended to download and execute the official xrdp installation script for deployment. To switch the desktop environment in Ubuntu, you need to edit the /etc/xrdp/startwm.sh configuration file, comment out the original session invocation, and add the target desktop command (such as gnome-session), followed by restarting the service. The article also mentions using the Remmina client for remote connection testing and provides a meeting recording link along with several related technical blogs for reference, aiming to help readers quickly build a stable Linux remote desktop environment.

Views 133
CentOS7 GNOME Ubuntu Server centos devops xrdp