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

nuy

FreeBSD13.3_en

FreeBSD13.3 ; WEB Server(Apache2) , MySQL8

1. Apache21.1 Install# cd /usr/ports/www/apache24# make configThere are many options, but we will proceed with the defaults2. MySQL InstallInstall MySQL before installing PHP# pkg install -y mysql80-client mysql80-server3. apache24 - PHP 8.03.1 PHP Install# cd /usr/ports/lang/php83# make config
FreeBSD13.3_en

FreeBSD13.3 ; Initial setup (Vim , SSH , firewall, NTP server)

1. Vim InstallInstall Vim, which you are familiar with as an editor, as follows# pkg install -y vim2. SSH Connection Security Measures2.1 SSH port changed, root user login disabled3. Firewall SettingsFreeBSD has the following firewalls・pf・ipfw・ipfIn this case, we will use ipfw to configure the firewall4. NTP Server Settings4.1 Rewrite the referenced NTP server in /etc/ntp.conf. Add an appropriate server in Japan.
OracleLinux8.10_en

OracleLinux8.10 ; Clamav(anti-virus) , Mail Server

clamav(anti-virus)1.Clam AntiVirus Install# dnf -y install clamav clamd clamav-update2.Edit Clam AntiVirus configuration fileMail Server Installation1. Postfix1.1 InstallInstall Postfix and build an SMTP server# dnf -y install postfixMail Server : Postfix + Clamav + clamav-milter+SpamAssassin1.Real-time scanning of e-mails①clamav-milter InstallVirus checks are performed on the mail server side using Clam AntiVirus.The mail server and Clam AntiVirus are linked using clamav-milter.
OracleLinux8.10_en

OracleLinux8.10 ; WEB Server (Apache)

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.
MiracleLinux9.2_en

MiracleLinux9.2 ; 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
MiracleLinux9.2_en

MiracleLinux9.2 ; Clamav( anti-virus ) , Mail Server

Clamav (anti-virus software)Install1.Clamav install# dnf -y install clamav clamd clamav-update2.Clam AntiVirus  Configuration File EditMail Server Install1. Postfix1.1 InstallInstall Postfix and build an SMTP server2.Dovecot2.1 dovecot install# dnf -y install dovecot2.2 Edit dovecot.conf fileMail Server : Postfix + Clamav + Amavisd+SpamAssassin1.Real-time scanning of e-mails①Install Amavisd and Clamav Server
fedora41_en

Fedora41 ; SSH 、Firewalld

1.Remote connection by SSHSSH is a service for connecting remotely to a server, basically running immediately after OS installation, but the default settings are somewhat insecure.Configure the default settings to increase the security of ssh connections.1.1 SSH service configuration file changesThe SSH service configuration file is "/etc/ssh/sshd_config".Open the configuration file in a vi editor.2.Firewall (firewalld) settingsIn Fedora, firewalld is set as the default and is enabled during OS installation.2.1 How to use the "firewall-cmd" command to control "firewalld1)Command to check the status and settings of "firewalld①Check firewalld operation status
AlmaLinux8.8_en

AlmaLinux8.8 ; Tripwire , Logwatch , disk usage check script

Tripwire1.Install# dnf install -y tripwire2..Passphrase settingSet site passphrase and local passphraseLogwatch①Install# dnf install logwatch -y②Edit configuration fileIntroduce disk usage check script3.1  Script Creation# cd /var/www/system# vi disk_capacity_check.shContents of disk_capacity_check.sh
AlmaLinux8.8_en

AlmaLinux8.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.
AlmaLinux8.8_en

AlmaLinux8.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
AlmaLinux8.8_en

AlmaLinux8.8 ; WEB Server(Apache2) & Virtual Hosts

1.Apache2 Install , Virtual Host Configuration1.1 Apache2 install①httpd install# dnf -y install httpd1.3 Virtual Host SettingsAssign and configure the domain name [rocky.korodes.com] to the document root [/var/www/html/rocky.korodes.com] directory for virtual host operation2. Use of CGI Scripts①CGI availability check3. PHP installation and configuration1.PHP8 Install4. 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 informa
Almalinux9.2_en

AlmaLinux9.2 ; Suricata , Tripwire , Chkrootkit

SuricataSURICATA IDS/IPS is an open source IDS that monitors communications on the network and detects suspicious traffic.The basic mechanism is signature-based, so it can detect predefined unauthorized communications. Suricata is also characterized by its ability to provide protection as well as detection.Tripwire1.Download and installationChkrootkit①Download and install chkrootkit
Almalinux9.2_en

AlmaLinux9.2 ; SSL Certificate Acquisition( Let's Encrypt ) , Apache SSL , Mail SSL/TLS

1. .Obtain an SSL certificate ( Let's Encrypt )Install the latest open ssl1.1 advance preparation1.Package management system Snappy installedSince 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 just in case3. 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.
Almalinux9.2_en

AlmaLinux9.2 ; OS Install

AlmaLinux 9.2 InstallAlmaLinux OS is a project launched by CloudLinux in the US as an alternative to CentOS. Currently, the AlmaLinux OS Foundation is the development parent organization.Following the general availability of Red Hat Enterprise Linux 9.0, AlmaLinux 9.0 was released on May 26, 2022.Like Red Hat Enterprise Linux 9, AlmaLinux 9 utilizes the same package versions as the Linux 5.14 kernel, GCC 11, Python 3.9, and RHEL9.Cockpit web management interface, enhanced kernel live patching, improved container and cloud integration, OpenSSL 3, and other security improvements.This time we will install AlmaLinux 9.2 with a minor upgrade on May 11, 2023.
OracleLinux9.5_en

OracleLinux9.5 ; Tripwire , Chkrootkit , Logwatch , Disk Usage Check Script

Tripwire1.Download and installation# cd /usr/local/src# wget https://rpmfind.net/linux/epel/9/Everything/x86_64/Packages/t/tripwire-2.4.3.7-13.el9.x86_64.rpm# rpm -Uvh tripwire-2.4.3.7-13.el9.x86_64.rpmChkrootkit①Download and install chkrootkit# cd /usr/local/src# wget https://launchpad.net/chkrootkit/main/0.55/+download/chkrootkit-0.55.tar.gz# tar xvf chkrootkit-0.55.tar.gzLogwatch①Install# dnf install logwatchIntroduce disk usage check script1. Script Creation# cd /var/www/system# vi disk_capacity_check.sh