« Tuning Snort and flex response

Installing Snort sensor with Mysql and BASE on CentOS Linux

10/30/08 | by Andrew Useckas [mail] | Categories: Uncategorized

Why Centos?

CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by Redhat. It is basically a free version of Redhat's Enterprise Linux Server, so it's a good choice for stable, easy to install Linux server. Making it a perfect choice for a Snort sensor.

Follow up:

Installing CentOS

Download the latest version of CentOs. At the time of this article it's 5.2. I usually download the DVD iso image. Makes life easier to have a single media for the entire install. If you don't have a DVD compatible drive, get the CD images.

http://www.centos.org/

Burn the image and boot your system with the disk.

When prompted for choice, start graphical install by just pressing enter at the "boot" prompt.

When the install wizard starts, follow the on screen instructions until you get to partitioning. You can stick to default partitioning scheme, but if you decide to go with custom make sure that "/var" is the largest partition - your Snort logs will be stored there in clear text format and within the mysql database.

Follow the install wizard till you get to software selection. Uncheck all the software sets with the exception of "Server". If you want the graphical interface running on a Snort sensor you can select "Server - GUI" and your favorite desktop - be it "Desktop - KDE" or "Desktop - Gnome". I personally don't see a point in wasting resources on Graphical environments.

After the selection customize the packages further by checking "Customize Now" option, as the default software sets include a lot of packages you don't need and some packages you do need are not included. Click "Next". You should be at the package selection screen now.

  • Go to "Development" and select "Development Tools" and "Development Libraries".
  • Go to "Servers". In this section only "Web Server" and "MySQL Database" should be checked.
  • Go to "Base System" and uncheck "Dial-up Networking Support".
  • If you need support for your native language go to "Languages" and select your locale.

Click "Next". Follow the installation instructions. After the install is finished, eject the install media and click "Reboot".

After the system comes back, it will start the "Setup Agent".

Navigate to "Firewall" and press "Run Tool". In this screen disable "Security Level" and disable "SELinux". Press "OK".

Go into "System Services" and press "Run Tool". Disable the following services: bluetooth, cups, ip6tables, netfs, nfslock, rpcgssd, rpcidmapd, sendmail, xfs. Press "OK".

Press "Exit" to quit the "Setup Agent".

This will take you to the prompt. The OS installation is finished now.

At the prompt login as user "root" with the password you set during the installation.
The first step to perform after the OS install is system update. To achieve that execute:

# yum update

When prompted if it's ok to download a bunch of updates say "yes". The update will start. This step can take a few minutes. Take a coffee break... :)

When the update is finished reboot the system:

# reboot

Pages: 1 · 2 · 3

6 comments

Comment from: Fred [Visitor]
Nice job Andrew. Thanks for posting this.
10/31/08 @ 19:28
Comment from: jiangzhw2008@yeah.net [Visitor] Email
Thank you for your wonderful work!When i
execute the "./configure --with-mysql --prefix-/usr
" ,it prompts "no such file or directory",what
is the purpose of this command?Besides,when i
run the "yum install mysqlclient10",it tells me
there is no mysqlclient10 available then i install
the mysqlclient10-3.23.58-9.2.1.i386.rpm,is that
OK?Lookforward your reply.
02/10/09 @ 23:09
Comment from: Ayo Rotibi [Visitor] Email · http://rotibi.cet
Thanks Andrew, I am a 1st timer Linux and I have been able to use this guide to install Snort on my network.
06/30/09 @ 09:38
Comment from: sergio [Visitor]
Nice manual! thank you!
12/15/09 @ 04:29
Comment from: chami [Visitor]
100 % working. every easy to understand even for a beginner. great job. thanks boss.
03/12/10 @ 06:04
Comment from: chami [Visitor]
one more thing... i got a problem when installing pear install Image_Canvas-alpha
and pear install Image_Graph-alpha. it said my PEAR installer version is not enough. what you have to do is download new package and intall it.
03/12/10 @ 06:08

This post has 43 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
February 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
Andrew Useckas shares his Linux experience

Search

XML Feeds

powered by b2evolution