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

2022-10

fedora36_en

Fedora36 ; SNORT2 , Tripwire Install

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 Tripwire Installation 1.Install # dnf -y install tripwire
fedora36_en

Fedora36 ; 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 Mail Server Install 1. Install Postfix 1.1 Install Install Postfix and build an SMTP server Mail Server : Postfix + Clamav + Amavisd+SpamAssassin 1.Real-time scanning of E-mails ①Install Amavisd and Clamav Server # dnf -y install amavisd-new clamd perl-Digest-SHA1 perl-IO-stringy
fedora36_en

Fedora36 : WEB Server(Apache2) Install

Apache2 installation and virtual host configuration 1.Apache2 Install ①httpd install # dnf -y install httpd Version Check # httpd -v erver version: Apache/2.4.54 (Fedora Linux) Server built: Jun 17 2022 00:00:00 3.Virtual Host Settings Assign and configure the [FQDN] to be operated on the virtual host in the document root [/var/www/html/FQDN] directory Confirmation of CGI Script Usage ①CGI availability check PHP installation and configuration 1.PHP Installation ①Install # dnf -y install php php-mbstring php-pear
fedora36_en

Fedora36 : FTP Server(Vsftpd) , File Server(Samba)

1.FTP Server Installation 1. 1 Vsftpd Install # dnf -y install vsftpd 1.2 Vsftpd configuration Save the unedited vsftpd.conf with .bak 2. vsftpd SSL/TLS Configure Vsftpd to use SSL/TLS 2.1 Create self-signed certificates 3. File server installation with Samba Build a file server with access rights that requires user authentication with Samba. Installation Procedure ① Create shared folders with access rights that require user authentication ②Creation of accessible groups ③Creation of users belonging to groups that can be accessed ④Configuration File Editing
fedora36_en

Fedora36 ; 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
fedora36_en

Fedora36 ; SSH 、Firewalld

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
Debian11.5 Building a server

Debian11.5 ; logwatch , Disk Usage Check Script

1. Introduce disk usage check script 1.1 Scripting # cd /opt/script/ # vi disk_capacity_check.sh Contents of disk_capacity_check.sh Configured to notify when disk usage exceeds 80%. 2. Log analysis tool logwatch installed 2.1 logwatch Install # apt -y install logwatch 2.2 Edit logwatch configuration file
Debian11.5 Building a server

Debian11.5 ; Anti-virus(Clamav) 、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. 1.1 Install # apt install clamav clamav-daemon 2. Mail server installation Postfix was developed as a Mail Transport Agent (MTA) to replace sendmail, and is a mail server that is highly compatible with sendmail, secure, easy to maintain, and fast. In addition, since Postfix only functions as an SMTP server for sending mail, the POP server Dovecot for receiving mail will be installed separately in the latter half. 2.1 Postfix : Installation Configuration 3 Applied ClamAV to mail server Postfix Set up Postfix and Clamav to work together to scan incoming and outgoing mail in real time. ①Install Amavisd and Clamav Daemon and start Clamav Daemon
Debian11.5 Building a server

Debian11.5 ; NTP ,FTP Server Installation

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) allow 192.168.11.0/24 2. Install FTP Server 2.1 Install Vsftpd # apt install vsftpd FTP Port21 allowed # ufw allow ftp # ufw reload
Debian11.5 Building a server

Debian11.5 ; SSH , Firewall Setting

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. 2. Firewall Settings Since Debian often uses software called "ufw" to configure firewalls, we will configure firewall settings using ufw. Since ufw is not installed when the OS is installed, the ufw package must be installed prior to configuration. The following is a procedure to configure minimal filter settings after installation. Filter rules to be set in ufw • All packets forwarded to the server are rejected • All packets sent from the server to the outside are allowed • The first port to allow is the port for SSH • Limit packets coming into the server