業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

nuy

MiracleLinux8.4_en

MiracleLinux8.4 : Let’s Encrypt , Apache Mail SSL

1.Obtain SSL Certificate ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel
MiracleLinux8.4_en

MiracleLinux8.4 : SNORT ,Tripwire , Checkrootkit

Install  SNORT1.Preliminary preparations①Add the CodeReady R...
MiracleLinux8.4_en

MiracleLinux8.4 : Anti-virus, mail server

Install clamav (anti-virus software)1.Install Clam AntiVirus...
MiracleLinux8.4_en

MiracleLinux8.4 : Web Server, Virtual Host

Installa apache2 and virtual host configuration1.Install apa...
MiracleLinux8.4_en

MiracleLinux8.4 : Vsftpd (FTP server installation)

FTP Server Installation1. Install vsftpdDownload vsftpd-3.0.3-33.el8.x86_64.rpm from the download site to /usr/local/src/.# cd /usr/local/src/# wget ftp://ftp.pbone.net/mirror/ftp.centos.org/8-stream/AppStream/x86_64/os/Packages/vsftpd-3.0.3-33.el8.x86_64.rpm# rpm -ivh vsftpd-3.0.3-33.el8.x86_64.rpm2.Configuring vsftpd
MiracleLinux8.4_en

MiracleLinux8.4 : SSH public key cryptography setting

Public key1.Create a key pair with RSABecome an ordinary user and create a key pair with RSA2.Private Key Login Settings3.Change to login only with private key# vi /etc/ssh/sshd_config●Per line 694.Creating a private key using PuTTYgenLaunch Winscp and start puttygen.exe from Tools
MiracleLinux8.4_en

MiracleLinux8.4 : Firewall , SSH , NTP server

1.Setting up SSH remote connectionSSH is a service to connect to a server remotely, and is basically running right after the OS installation, but the default settings are somewhat insecure.In this section, we will configure the settings to change the default settings and increase the security of the ssh connection.1.1 Change the configuration file of SSH service.2.How to set up a firewall (firewalld)In MiracleLinux, the firewall is set to firewalld by default, which is enabled when the OS is installed.To briefly explain firewalld, when setting up a communication control policy, communication permission/blocking rules are applied to predefined zones, and the zones are assigned to each NIC (network adapter).3.Synchronize the server time with Japan Standard Time.① Change the configuration file as follows
MiracleLinux8.4_en

MiracleLinux8.4 : Initial Setup

1. Disable SELinuxselinux is a feature that improves auditing and security in Linux, but when it is enabled, it can be quite restrictive in how services work and what settings are available.Therefore, in many cases, it is basically invalidated.  If you build a server while looking at a website and it doesn't work as expected, it may be because this selinux is enabled.Therefore, remember to disable it after installation.3. Adding Repositories3.1 PowerTools / HighAvailabilityThis is a repository that has been newly provided with MIRACLE LINUX 8.4.Utilization MethodPowerTools and HighAvailability can be used by updating miraclelinux-repos and enabling the repositories.Update miraclelinux-repos to 8.4-3.el8 or later.After the update, the following repository files will be added to /etc/yum.repos.d.miraclelinux-powertools.repomiraclelinux-highavailability.repo
MiracleLinux8.4_en

MiracleLinux8.4 : OS Install

What is MiracleLinux?MIRACLE LINUX is a Japanese Linux distribution provided by Cybertrust Corporation.Miracle Linux (now Cybertrust), established by Oracle Japan and NEC in June 2000, began development of Oracle Database for business and enterprise use with the aim of ensuring stable operation.It has been based on RHEL since Version 2.0 released in May 2001, and has been a full RHEL clone since Version 6.0 released in January 2012, with the latest version being 8.4 as of December 2021.MIRACLE LINUX, the famous domestic RHEL clone, was initially a commercial OS with a paid license, but following the termination of CnetOS8, it was announced that it would be offered free of charge starting with the latest 8.4.For this reason, it is currently in the limelight as a candidate for migration from CentOS8.
MiracleLinux8.8_en

MiracleLinux8.8 : Snort3 , Tripwire Install

Snort3 InstallSnort is an open source network intrusion detection system capable of performing real-time traffic analysis and packet logging on IP networks.It can perform "protocol analysis," "content search," and "matching," and can be used to detect a variety of attacks, including "buffer overflows," "stealth port scans," "CGI attacks," "SMB probes," "OS fingerprinting attempts," "semantic URL attacks," and "server message block probes.MiracleLinux8 does not have a Snort3 repository, so build, compile and install Snort3 from source code1. Advance preparation①Install required build tools and libraries
MiracleLinux8.8_en

MiracleLinux8.8 : SSL Certificate Acquisition( Let's Encrypt ) , Apache SSL , Mail SSL/TLS

1.SSL Certificate Acquisition ( Let's Encrypt )Install the latest open ssl# dnf install openssl-devel1.1 advance preparation1.Package management system Snappy installationSince the SSL certificate issuing tool "certbot" of Let's Encrypt is recommended to be installed using "snap" after 2021, install Snapd first.(Can also be installed the traditional way with dnf or yum)2. Converting Apache to httpsInstall the following# dnf -y install mod_ssl3. SSL/TLS (Let's Encrypt) settings on the mail server3.1 Obtaining a certificate for the mail serverObtain a certificate for the mail server, but it cannot be obtained in the same way as above, so the following with the "--standalone" option fails.
MiracleLinux8.8_en

MiracleLinux8.8 : Anti-virus(Clamav) , Mail Server

Clamav (anti-virus software)Install1.Clam AntiVirus InstallMail Server Install1. Postfix1.1 InstallInstall Postfix and build an SMTP serverMail Server : Postfix + Clamav + Amavisd+SpamAssassin1.Real-time scanning of e-mails①Amavisd ,Clamav Server install
MiracleLinux8.8_en

MiracleLinux8.8 : WEB Server(Apache2) & Virtual Hosts

1.Apache2 Install , Virtual Host Configuration1.1 Apache2 install2. Use of CGI Scripts①CGI availability check3. PHP installation and configuration4. Digest authentication with Apache2Since Basic Authentication, a well-known authentication authorization method for http, sends authentication information in plain text, there is a risk of ID and password leakage if the packet is intercepted.On the other hand, Digest Authentication encrypts and transmits authentication information, so there is almost no risk of information leakage.
MiracleLinux8.8_en

MiracleLinux8.8 : FTP Server , Samba FileServer Install

2. Vsftpd over SSL/TLSLS2.1 Create self-signed certificatesThis work is not required if you are using a trusted, legitimate certificate such as Let's Encrypt.3. File server installation with SambaBuild a file server with access rights that requires user authentication with Samba.Installation Procedure①Create shared folders with access rights that require user authentication②Accessible group creation③Creation of users belonging to accessible groups④Configuration File Editing
MiracleLinux8.8_en

MiracleLinux8.8 : SSH public key cryptography setting

SSH public key cipher setting1.Create a key pairCreate a public/private key pair for a user connecting to a Linux server using OpenSSH.Use ssh-keygen to create the key pair.The creation of a public/private key pair must be done as a user with remote login privileges.If you do not specify the destination and file name, id_ed25519 and id_ed25519.pub will be created in /home/(user name)/.ssh/. On the way, enter the password for the key.