Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

2022-05

fedora35_en

Fedora35 : Mysql8 , WordPress

Mysql8 installation #dnf module -y install mysql:8.0 #vi /etc/my.cnf.d/charset.cnf Create a new charset.cnf with the following contents # Set default character encoding # To handle 4-byte characters such as pictographs, use [utf8mb4]. [mysqld] character-set-server = utf8mb4 [client] default-character-set = utf8mb4
fedora35_en

Fedora35 : SNORT , Tripwire

SNORT Installation 1.advance preparation ①Add the CodeReady Red Hat repository and install the required software # dnf -y install bison flex libpcap-devel pcre-devel openssl-devel libdnet-devel libtirpc-devel libtool nghttp2 libnghttp2-devel # mkdir /var/src ②Installing DAQ # cd /var/src
fedora35_en

Fedora35 : Clam AntiVirus , Mail Server

Install Clamav ( anti-virus software ) 1.Install Clam AntiVirus # dnf -y install clamav clamd clamav-update 2.Edit Clam AntiVirus configuration file # vi /etc/clamd.d/scan.conf ●Line 14. # Default: disabled LogFile /var/log/clamd.scan ← Uncomment ●Line 77.
fedora35_en

Fedora35 : WEB Server

Apache2 installation and virtual host configuration 1.Apache2 installed ①Install httpd # dnf -y install httpd Version Check # httpd -v Server version: Apache/2.4.53 (Fedora Linux) Server built: Mar 17 2022 00:00:00
fedora35_en

Fedora35 : FTP Server(Vsftpd)

FTP Server Installation 1. Vsftpd installation # dnf -y install vsftpd 2.Vsftpd configuration Save the unedited vsftpd.conf with .bak # cp /etc/vsftpd/vsftpd.conf /home/huong/vsftpd.conf.bak ①Edit configuration file # vi /etc/vsftpd/vsftpd.conf ●Line 12: Anonymous login prohibited (confirmation)
fedora35_en

Fedora35 : Remote connection with SSH public key cryptography

SSH public key cipher setting Create an SSH private key on Windows and an SSH public key on the server to allow login by key pair authentication. 1.Create key pair with ECDSA Become an ordinary user and create a key pair in ECDSA # su – $ ssh-keygen -t ecdsa Generating public/private ecdsa key pair. Enter file in which to save the key (/home/huong/.ssh/id_ecdsa): Created directory '/home/huong/.ssh'. Enter passphrase (empty for no passphrase):  ← Enter any password
fedora35_en

Fedora35 : SSH , Firewall

1.Remote connection by SSH SSH 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 changes The SSH service configuration file is "/etc/ssh/sshd_config". Open the configuration file in a vi editor. # vi /etc/ssh/sshd_config
fedora35_en

Fedora35 : Initialization

1. SELinux Disable First, disable selinux. selinux is a feature that improves auditing and security in Linux, but when enabled, it can limit the behavior of services and the configuration considerably. Therefore, it is basically invalidated in many cases. You can disable it by doing the following
Debian11.3 Building a server

Debian11.3 : SNORT2 , Tripwire Install

1.Install SNORT Snort 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 Building a server

Debian11.3 : MySQL8 , WordPress Install

1. Install MySQL 8 1. 1 Install The 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 command 2.Install WordPress 2.1 Database Creation Create 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 Building a server

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 Building a server

Debian11.3 : Anti-virus , Mail server

1. Antivirus software Clamav installed Install 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 Building a server

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 iburst pool ntp.nict.jp iburst # Add to the last line (Range for which time synchronization is allowed)
Debian11.3 Building a server

Debian11.3 : SSH , Firewall

1. SSH Service Security Settings The 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 User If 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 Building a server

Debian11.3 : Initialization

1. Installing and configuring the vim editor Debian 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 package Debian 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