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

nuy

Debian11.3_en

Debian11.3 : SNORT2 , Tripwire Install

1.Install SNORTSnort 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.
Debian11.3_en

System Integration Monitoring Debian11 : Zabbix6 Install

Open source integrated monitoring software "ZabbixZabbix is an open source integrated monitoring software for centralized monitoring of servers, networks and applications. It provides monitoring, fault detection and notification functions required for integrated monitoring. With Zabbix agent and SNMP support for many platforms, you can monitor your entire system with a single Zabbix.To run Zabbix, you will need the PHP programming language, MySQL as a database server, and a web server such as Apache or Nginx. In this article, we will assume that all of these have already been configured.
Debian11.3_en

Debian11.3 : MySQL8 , WordPress Install

1. Install MySQL 81. 1 InstallThe MySQL team provides the official MySQL PPA for Debian Linux. After downloading and installing the package on your Debian system, the PPA file will be added to your system. To enable the PPA, run the following command2.Install WordPress2.1 Database CreationCreate a database for Word Press (for example, in this case, the database name is "wp_db", the user name is "wp_user", and the password is "?Y123456y")If you receive a message "Your password does not satisfy the current policy requirements" when creating an account, please make sure your password is at least 8 characters long and includes upper and lower case letters, numbers, symbols, etc.
Debian11.3_en

Debian11.3 : Let's Encrypt WEB , Mail Server SSL

1. Obtain a certificate (Let's Encrypt)1.1 advance preparation①Enable mod_ssl# a2enmod ssl②Install client tool to obtain Let's Encrypt certificate# apt -y install certbot
Debian11.3_en

Debian11.3 : Anti-virus , Mail server

1. Antivirus software Clamav installedInstall Clam AntiVirus, a free anti-virus software for Linux, as an anti-virus measure.By installing this anti-virus software, you can not only scan the entire server for viruses, but also scan incoming and outgoing mail for viruses if you build and configure a mail server.
Debian11.3_en

Debian11.3 : NTP , FTP(Vsftpd) install

1. Install NTP server# apt -y install chrony# vi /etc/chrony/chrony.conf# Line 8.:Comment the default settings and add the NTP server for your time zone.#pool 2.debian.pool.ntp.org iburstpool ntp.nict.jp iburst# Add to the last line (Range for which time synchronization is allowed)
Debian11.3_en

Debian11.3 : SSH , Firewall

1. SSH Service Security SettingsThe SSH service allows the root user to log in by default, and since the root user already knows the user name and can log in to the server with administrative privileges once the password is known, we will deny this setting.1.1 Creating a General UserIf you have created a general user when installing Debian, this procedure is not necessary.If the only user created on the server is root, remote login via SSH will not be possible, so if a user has not been created during OS installation, a user must be created in advance.Users can be created with the "useradd" command. The "-m" option creates a home directory and the "-p" option specifies the password.For example, to set "debianuser" as the user account name and "123456" as the password, execute the following
Debian11.3_en

Debian11.3 : Initialization

1. Installing and configuring the vim editorDebian has "nano" as the default editor. nano is somewhat difficult to use, and there are few environments where it is used, so we will introduce the procedure for changing the editor to "vim".。1.1 Check vim packageDebian has vim installed by default, but it is a package called "vim-tiny", which is a less functional version. Let's check the installed vim package.Debian uses the "dpkg" command to check packages. The "-l" option displays a list of packages.Since the "dpkg" command as is will show all packages installed on the system, we will use the "grep" command to extract only those packages that contain the string "vim". Execute as follows
openSUSE15.4_en

OpenSUSE15.4 ; Initialization

1. su コマンド利用Not required if root password is set at the time of installationIf you set a root password, set it as followsLog in as a general user2. Modernize the systemTo modernize the system, enter the following command
openSUSE15.4_en

OpenSUSE15.4 ; Firewall , SSH、NTP Server

1.Setting up remote connection by SSHSSH is a service for connecting remotely to a server and is basically running immediately after the OS is installed, but the default settings are somewhat insecure.Here we will configure the default settings to increase the security of ssh connections.2.How to set up a firewall (firewalld)In openSUSE, the firewall is set to firewalld by default and is enabled during OS installation.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).
openSUSE15.4_en

OpenSUSE15.4 ; FTP Server

1. vsftpd1.1 vsftpd InstallIt is already installed at the time of openSUSE installation.If not, you can install it with the following command2. vsftpd SSL/TLSConfigure Vsftpd to use SSL/TLS2.1 Create self-signed certificatesThis work is not required if you are using a trusted, legitimate certificate such as Let's Encrypt.
openSUSE15.4_en

OpenSUSE15.4 ; WEB Server (Apache) Install

1. Web Server (Apache)1.1 apache2 Install# zypper -n install apache21.2 Apache2 : Basic Settings2. Apache2 : Using Perl ScriptsConfigure Perl scripts to be used as CGI3. Apache2 : Virtual Host SettingsConfigure both domains sample1.korodes.com sample2.korodes.com to be displayed on one server# cd /srv/www/htdocs/Create a directory named sample1.korodes.com under /srv/www/htdocs/4. Apache2 : Using PHP ScriptsInstall and configure PHP so that PHP scripts are available
openSUSE15.4_en

OpenSUSE15.4; MariaDB , WordPress Install

1. MariaDBUpdate the server package# zypper ref# zypper up -y1.1 MariaDB  install①install1.2 phpMyAdmin InstallInstalled phpMyAdmin and configured it to operate MariaDB via web browser1.3 MariaDB Example of database and user creationI'll create a user, password, and database for wordpress to install next.2. Wordpress Install2.1 Required library installation# zypper install php-gd php-pdo php-mysql php-mbstring php-simplexml php-curl apache2-mod_php72.2 Wordpress Download and Installation
openSUSE15.4_en

OpenSUSE15.4; Snort Install

1.SNORT installSnort is a network-based IDS (Intrusion Detection System). It captures packets flowing over a network and detects suspicious packets.The source file is used directly from https://snort.org/.1.1 Advance preparationInstall required libraries
openSUSE15.4_en

OpenSUSE15.4 ; Obtain SSL Certificate (Let's Encrypt) 、Web Server SSL

1.Obtain an SSL Certificate (Let's Encrypt)PreparationEnable mod_ssl# a2enmod ssl1.1 Certificate Installation# zypper -n install certbot# certbot certonly --webroot -w /srv/www/htdocs/[Website Public Directory] -d 2. Web server SSL conversion2.1 SSL Configuration# a2enmod ssl# a2enmod -lactions alias auth_basic authn_core authn_file authz_host authz_groupfile authz_