Install OSSEC on a Linux server

OSSEC is an open source intrusion detection system that runs in the background on a server that can alert the system administrator to problems or break-in attempts.

  1. SSH into the server. If you're not familiar with how to SSH.
  2. Download the appropriate OSSEC version from http://www.ossec.net/main/downloads/. Typically downloading with the wget command is easiest.
  3. Unzip the installer files on the server.
  4. Change directories into the OSSEC install directory, in this case: ossec-hids-2.4.1/
  5. Run ./install.sh to install the program. Choose your language as the first step by entering in 'en' for English followed by a return.
  6. Press Enter at the prompt
  7. Enter in the type of install.
  8. Choose where you want to install OSSEC.
  9. Choose whether you want email notifications or not. If you do, key in 'y' and then your email address at the prompt. It will then verify your MX record. If that is correct, select 'y'. Otherwise select 'n' and enter in your MX exchanger.
  10. Select whether you want to run the integrity checksum. Yes is the default.
  11. Select whether you want to run the rootkit detection engine. Yes is again the default.
  12. Select whether you want to run active response. Yes is the default.
  13. Select if you want to enable the firewall-drop response. Yes is the default.
  14. Whitelist any IP addresses that should be whitelisted in the next section.
  15. Select whether you want to enable remote systlog. Yes is the default.
  16. Press Enter (return) to complete the install. Once installed, the agent will run and alert you to any problems on the server.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Installing htop

htop is an interactive process viewer for Linux, which is a powerful alternative to the...

Bind Multiple IP Addresses to a Single Network Interface Card (NIC)

This tutorial demonstrates how to bind multiple IP addresses to a single NICI'll be using LAN...

Clear Memory Cache on Linux Server

By default the Linux OS has a very efficient memory management process that should be freeing any...

Set the time on a Linux server

Log into the server via SSHAt the shell prompt run the following command:date MMDDHHmmYYYYFor...

Check your disk usage in Linux

A good way to check your disk usage for folders on your Linux server is via shell.Download...