Snort- An Open Source IDS in Freebsd 10 or above

Snort is basically an Intrusion detection system and may also work as Intrusion prevention system too in online communication. It is very easy to install and use in packet logging and traffic analysis.

Today, we’ll see how to install snort first and then in our next post, we’ll show you how does it work.

How to install snort in Freebsd 10 or above from online repository:

1.  Go to terminal and switch yourself to super user.

2.  Use the command to install snort in the system:

[email protected]: /home/xyz# pkg install snort

3. It will check if your repository is updated or not and then will ask to download some MBs of data. Please allow it to do so.

 

How to install snort in Freebsd 10 or above using ports:

1. Go to terminal and switch yourself to super user

2. Use the following command to install:

[email protected]: /home/xyz#   cd /usr/ports/security/snort/ && make install clean

How to install snort from online available source package:

1. Go to snort.org and search for “Downloads” link.

2. Download the latest available source package as in our case is snort-2.9.7.2.tar.gz as shown in the picture:

Capture

 

 

3. Click on the link and download it in your home folder(or any other folder of your choice).

4.  Now go to that folder using terminal and some commands will do the rest.

[email protected]: /home/xyz#  tar xvzf snort-2.9.7.2.tar.gz
[email protected]: /home/xyz#  cd snort-2.9.7.2 && ./configure

Now that command may cause error if dnet libraries are not installed. Error would show up like this:

Capture1

Now to resolve it, use the following command:

[email protected]: /home/xyz# pkg install libdnet

Capture2

Try reconfigure and it should work fine.

[email protected]: /home/xyz# make
[email protected]: /home/xyz# make install

Wait for the installation to complete and once done, verify it by checking the version using the following command:

 [email protected]: /home/xyz# snort -v

For me, it’s the toughest thing to define oneself. I mean, It’s always better and easy to judge others, isn’t it?
I have hundreds of thing i can tell you about me but at the same time, i’ll be hiding hundreds of thing from you. I can tell you my Office friends call me Dionysus (Google can tell you why). “Dead Can Dance Kiko” Song is enough to tell what i like. I feel happy to share something i learn everyday which i think this site is a part of it.

You may also like...