{"id":9574,"date":"2021-07-09T21:55:04","date_gmt":"2021-07-09T18:55:04","guid":{"rendered":"https:\/\/kifarunix.com\/?p=9574"},"modified":"2024-03-18T19:48:46","modified_gmt":"2024-03-18T16:48:46","slug":"install-ossec-agent-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-ossec-agent-on-rocky-linux-8\/","title":{"rendered":"Install OSSEC Agent on Rocky Linux 8"},"content":{"rendered":"\n

This guide presents a step-by-step tutorial on how to install OSSEC Agent on Rocky Linux 8. OSSEC<\/a> is an Open Source Host based Intrusion Detection System that performs log analysis, integrity checking, Windows registry monitoring, rootkit detection, real-time alerting and active response. It runs across multiple platforms including Linux, OpenBSD, FreeBSD, Mac OS X, Solaris and Windows etc.<\/p>\n\n\n\n

Installing OSSEC Agent on Rocky Linux 8<\/h2>\n\n\n\n

Run system Update<\/h3>\n\n\n\n

Before you proceed with installation, run system update.<\/p>\n\n\n\n

dnf update<\/code><\/pre>\n\n\n\n

Install Required Build Tools<\/h3>\n\n\n\n

A successful installation of OSSEC on Rocky Linux 8 requires quite a number of dependencies to be installed on the system. Run the command below to install these dependencies.<\/p>\n\n\n\n

dnf install gcc make libevent-devel zlib-devel openssl-devel pcre2-devel wget tar -y<\/code><\/pre>\n\n\n\n

Download Latest OSSEC Source Code<\/h3>\n\n\n\n

OSSEC 3.6 is the latest stable release as of this writing. Check the releases page<\/a> for the latest releases.<\/p>\n\n\n\n

wget https:\/\/github.com\/ossec\/ossec-hids\/archive\/3.6.0.tar.gz<\/code><\/pre>\n\n\n\n

Extract OSSEC Source Code<\/h3>\n\n\n\n

Once the OSSEC source download is completed, extract it as follows;<\/p>\n\n\n\n

tar xzf 3.6.0.tar.gz<\/code><\/pre>\n\n\n\n

Install OSSEC Agent<\/h3>\n\n\n\n

There are two ways in which you can now install OSSEC agent.<\/p>\n\n\n\n