Snorby Installation Guide
Snorby Installation Guide
Snorby Installation Guide
1/ Prerequisite
_ Snort Installation
_ Barnyard Installation
Install Snorby
cd /var/www/html/snorby
bundle install --deployment
rake snorby:setup
Restart Barnyard
service barnyard2 stop
service barnyard2 start
Output
[root@IDS snorby]# gem install passenger
Fetching: daemon_controller-1.1.5.gem (100%)
Fetching: passenger-4.0.10.gem (100%)
Successfully installed daemon_controller-1.1.5
Successfully installed passenger-4.0.10
2 gems installed
Installing ri documentation for daemon_controller-1.1.5...
Installing ri documentation for passenger-4.0.10...
Installing RDoc documentation for daemon_controller-1.1.5...
Installing RDoc documentation for passenger-4.0.10...
Output
[root@IDS bin]# ./passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v4.0.10.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Output
-------------------------------------------The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger4.0.10/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.10
PassengerDefaultRuby /usr/local/bin/ruby
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
Press ENTER to continue.
Output
-------------------------------------------Deploying a Ruby on Rails application: an example
Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
And that's it! You may also want to check the Users Guide for security and
optimization tips, troubleshooting and other useful information:
/usr/local/lib/ruby/gems/1.9.1/gems/passenger-4.0.10/doc/Users guide Apache.html
Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
https://www.phusionpassenger.com
Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.
Config Apache
mkdir /etc/httpd/sites-available
mkdir /etc/httpd/sites-enabled
Restart PC
reboot
or
localhost
You should be seeing the Snorby Login Screen, use the following credential
Email: snorby@snorby.org
PW: snorby
Note: sometimes you will see the status alerting that snorby worker is not running, just repeat from
step 1-7 above and restart the PC, keep doing that until the alert is gone.
Do not proceed until you completely get rid of the Snorby Worker warning!!!
From another PC on the same network, try to ping the IP of SNORT PC, let it run in
continuous mode and go back to snorby web interface and click on the Events tab,
you should see sth like this