• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Install OSSEC HIDS Security on Ubuntu 14.04 (HP Cloud)

By Abhishek Ghosh June 12, 2015 3:07 am Updated on June 12, 2015

Install OSSEC HIDS Security on Ubuntu 14.04 (HP Cloud)

Advertisement

OSSEC is a Host-based Intrusion Detection System Free Software. Here is How to Install OSSEC HIDS Security on Ubuntu 14.04 on HP Cloud Server. Previously we have talked about the theoretical aspect of Host-based Intrusion Detection System.

 

Planning to Install OSSEC HIDS Security on Ubuntu 14.04 on HP Cloud

 

HP Cloud has router. We need one Ubuntu 14.04 server, Apache2, PHP, MySQL and development packages. We will install on a different server which is less important than the main website’s servers and monitor from this remote server. So, the router settings is important.

Install-OSSEC-HIDS-Security-on-Ubuntu-14.04-HP-Cloud

 

Steps to Install OSSEC HIDS Security on Ubuntu 14.04 on HP Cloud

 

Like installing WordPress we will perform the first part, copy paste the commands to a text editor first :

Advertisement

---

Vim
1
2
3
4
5
apt-get install build-essential make libssl-dev git
#
apt-get install mysql-server libmysqlclient-dev mysql-client apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
#
mysql_secure_installation

Restart the services :

Vim
1
2
/etc/init.d/apache2 restart
/etc/init.d/mysql restart

We have build OSSEC. You should check for the latest version from the official website or their official Github repo. This is 2.8.1 version. wget it and some extra steps for it :

Vim
1
2
3
4
5
6
wget -U ossec http://www.ossec.net/files/ossec-hids-2.8.1.tar.gz
wget -U ossec http://www.ossec.net/files/ossec-hids-2.8.1-checksum.txt
tar -xzvf ossec-hids-2.8*
cd ossec-hids-2.8*
cd src
make setdb

You will get Error: PostgreSQL client libraries not installed. but it will not matter. Now you need to run the installer :

Vim
1
cd ../ && ./install.sh

It is not difficult to follow on screen instruction set. All answer will be yes, two important questions are :

Vim
1
2
What kind of installation do you want (server, agent, local, hybrid or help)? server
Choose where to install the OSSEC HIDS [/var/ossec]:  /var/ossec

You can use Mandrill to sent email notification. We will restart the service :

Vim
1
/var/ossec/bin/ossec-control restart

We have to configure MySQL, login :

Vim
1
2
3
4
5
6
7
mysql -u root -p
...
create database ossec;
grant INSERT,SELECT,UPDATE,CREATE,DELETE,EXECUTE on ossec.* to ossec_user;
set password for ossec_user = PASSWORD('your_password');
flush privileges;
quit;

We need to import a stuff :

Vim
1
mysql -u root -p ossec < src/os_dbd/mysql.schema

Open /var/ossec/etc/ossec.conf in nano or vi and make it like this to match with the above settings :

/var/ossec/etc/ossec.conf
Vim
1
2
3
4
5
6
7
8
9
<ossec_config>
    <database_output>
        <hostname>127.0.0.1</hostname>
        <username>ossec_user</username>
        <password>your_password</password>
        <database>ossec</database>
        <type>mysql</type>
    </database_output>
</ossec_config>

Now restart the services :

Vim
1
/var/ossec/bin/ossec-control enable database && /var/ossec/bin/ossec-control restart

We will install Analogi dashboard, it is better than the App native web GUI, easy install like WordPress :

Vim
1
2
3
cd /var/www/html/ && git clone https://github.com/ECSC/analogi.git
cp analogi/db_ossec.php.new analogi/db_ossec.php
nano analogi/db_ossec.php

You have to add the OSSEC database details here. Web GUI will be at http://I.P.Address/analogi.

Client installation is only installing the OSSEC as client. In both client and server if we run /var/ossec/bin/manage_agents we will get the options to configure. Check this /var/ossec/etc/ossec.conf file on client and change the OSSEC server’s IP and restart the services.

When we are running the /var/ossec/bin/manage_agents on OSSEC server, we will get a key, we will run the same command on client and add the key. On the Server, open this file – /var/ossec/etc/ossec.conf :

/var/ossec/etc/ossec.conf
Vim
1
2
    <email_maxperhour>12</email_maxperhour>
</global>

12 emails per hour is too high. Set it lower. You should check the official website for more detailed instructions, this is basic setup.

Tagged With how do you install ossec on security onion 14 04 , ossec git mysql make setdb

This Article Has Been Shared 921 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install OSSEC HIDS Security on Ubuntu 14.04 (HP Cloud)

  • Cloud Computing 3D Rendering And Scope In Film Industry

    Cloud Computing 3D Rendering Has Definite Scope in Film Industry which might alarm the Stars of tomorrow and relieve the Producers investing in the Films.

  • Cloud Computing and Designing Own Truly Scalable System

    Cloud Computing becomes fully enjoyable if it is arranged to make a scalable system for the application or CMS or any web software including WordPress.

  • How Cloud Computing Challenge The Networks

    How Cloud Computing Challenge Networks with virtually unlimited storage and computing capacity, reduced cost and maximum flexibility and massive data traffic.

  • PubSubHubbub and Rackspace Cloud Queue

    PubSubHubbub is a networking protocol. Rackspace is Open Source but infamous for difficult to understand API documentation by normal human.

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Corona Pandemic as Cloud Adoption Driver April 20, 2021
  • How to Save Electricity Consumption During the Pandemic April 20, 2021
  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Install OSSEC HIDS Security on Ubuntu 14.04 (HP Cloud)," in The Customize Windows, June 12, 2015, April 21, 2021, https://thecustomizewindows.com/2015/06/install-ossec-hids-security-on-ubuntu-14-04-hp-cloud/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy