|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
News | Recommended_Links | Acid installation | Snort-related Perl Scripts | Humor | Etc |
Slightly modify the installation directions from the previous article on Snort:
../configure --with-mysql=/usr/local --with-openssl=/usr/local
Then follow the rest of the installation instructions provided there.
Now set up the Snort database in MySQL. First create the
snort
user and grant the appropriate permissions:
mysqladmin -u root -p create snort
Next, run the MySQL script included in the Snort source directory to create the appropriate tables:
mysql -u root -p < snort-2.3.3/schemas/create_mysql snort
Now add the snort
user and set the
permissions:
mysql -u root -p snort mysql> set PASSWORD FOR snort@localhost=PASSWORD('snort_user_password'); mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to snort@localhost; mysql> flush privileges; mysql> exit
Finally, edit the snort.conf
file and modify
the output plug-in:
output database: log, mysql, dbname=snort user=snort password=snort host=localhost output database: alert, mysql, dbname=snort user=snort password=snort host=localhost
This will cause both log and alert data to be written to the database.
To verify that Snort is able to write to MySQL, make sure MySQL is running, then start Snort with the following options:
snort -c /etc/snort.conf -g snort
Once Snort and MySQL are running, wait a few moments until it collects some alert data. Then run the following command:
echo "SELECT count(*) FROM event" | mysql -u root -p snort
Your output should look similar to the following, where the number is the number of alerts you've received:
count(*) 1
If the number is zero, then you haven't seen any traffic that will trigger an alert, or you need to revisit your Snort/MySQL configurations.
|
Switchboard | ||||
Latest | |||||
Past week | |||||
Past month |
|
Sun Tools & Products Forums - Anyone installed SNORT on Solaris 10
moosie_au Posts:74 Registered: 2/25/04 |
Anyone installed SNORT on Solaris 10?? Aug 23, 2005 7:31 PM |
|
Hi Im installing SNORT 2.4.0 on Solaris 10, ive been following the
SNORT-ACID install on Solaris 9 walkthru and have come up against a
few problems, Ive been able to install the Mysql side of things but now when i try to install SNORT , i issue the ./configure --with-mysql=/usr/local/mysql --host=sparc-sun-solaris2.10 all seems to go well until i issue the make command...then i receive the error: ar cru libsfutil.a sfghash.o sfhashfcn.o sflsq.o sfmemcap.o sfthd.o
sfxhash.o ipobj.o mwm.o sfksearch.o acsmx.o acsmx2.o mpse.o
util_math.o util_net.o util_str.o asn1.o sfeventq.o
sfsnprintfappend.o has anyone successfully installed SNORT on Solaris 10 ?? if so how do you get around this error?? Any any help would be appreciated. Thanks in advance. |
||
mAbrante
Posts:734 Registered: 03/03/05 |
Re: Anyone installed SNORT on Solaris 10?? Aug 23, 2005 11:41 PM (reply 1 of 7) |
|
I think you need to add /usr/ccs/bin to your PATH, thats where the "ar"
command lives.
//Magnus |
||
moosie_au Posts:74 Registered: 2/25/04 |
Re: Anyone installed SNORT on Solaris 10?? Aug 25, 2005 5:28 PM (reply 2 of 7) |
|
I have /usr/ccs/bin in my path, my path is: PATH=$HOME:/usr/local/bin/:/usr/ccs/bin/:/bin/:/sbin/:/usr/acb/:/usr/ucb/bin/:/ u sr/bin/:/usr/sbin/:/opt/sfw/bin/:/opt/bin/:/opt/sbin/:/opt/rsc/bin/:/usr/openwi n /bin/:/usr/local/sbin/:/usr/local/mysql/bin/:$PATH export PATH |
||
moosie_au Posts:74 Registered: 2/25/04 |
Re: Anyone installed SNORT on Solaris 10?? Aug 25, 2005 5:32 PM (reply 3 of 7) |
|
I checked the install directories where i had installed my other
packages....i.e. /usr/local/ I found that snort was looking at /usr/local/bin instead of /usr/ccs/bin for ar so i just made a symbolic link in /usr/local/bin for ar and then it seemed to work fine |
Solaris 10 Sparc Success - Snort Forums Archive
Posted by jritorto on March 16, 2006 17:48:31
Hi,
I deployed 2.4.3 on Solaris 10 1/06 x86 with BASE a couple of weeks ago to try for better reliability / performance than we were getting with former Linux installation. Pretty straightforward. Imagine its same on SPARC.. I'll cut/paste my installation notes for you below. Note that they're a bit stale because i've tweaked for multiple interfaces since writing them. Note links at bottom for references I used to prepare these instructions..If you don't feel like building source, install the blastwave.org package via pkg-get. That''s really easy and all you have to do afterwards is dl the rules and adjust snort.conf.
Jacob Ritorto
*******************************
Solaris 10 (x86) 1/06 Snort/BASE build and install notes
This procedure leverages mysql, libtool and openssl shipped with Solaris 10. Naturally, you should adjust pathnames to reflect optional software versions you use.
1. Download sources for adodb, base, snort, pcre, libpcap, libxml2, php.
2. Set your PATH environment variable to something that works for you.
1.For example,
/usr/sbin:/usr/bin:/opt/csw/bin:/usr/sfw/bin:/usr/ccs/bin
3.Build and install libpcap:
1../configure –prefix=/opt/libpcap-0.9.4 && gmake && gmake install
4.Build and install pcre:
1.http://forum.sun.com/thread.jspa?messageID=104833
2../configure –prefix=/opt/pcre-6.3 && gmake && gmake install
5.
Build and install snort:
1.Set your LDFLAGS environment variable to -R/opt/pcre-6.3/lib
2../configure --prefix=/opt/snort-2.4.3 --with-openssl --with-libpcap-includes=/opt/libpcap-0.9.4/include --with-libpcap-libraries=/opt/libpcap-0.9.4/lib --with-libpcre-includes=/opt/pcre-6.3/include --with-libpcre-libraries=/opt/pcre-6.3/lib –with-mysql=/usr/sfw && gmake && gmake install
3.Unset your LDFLAGS environment variable.
4.Go to snort.com to download rules. Untar them into /opt/snort-2.4.3/rules
6.
Fire up & tweak mysql:
1./usr/sfw/bin/mysql_install_db
2.groupadd mysql
3.useradd -g mysql mysql
4.chgrp -R mysql /var/mysql
5.chmod -R 770 /var/mysql
6.installf SUNWmysqlr /var/mysql d 770 root mysql
7.cp /usr/sfw/share/mysql/my-medium.cnf /var/mysql/my.cnf
8./usr/sfw/sbin/mysqld_safe --user=mysql &
9.mysqladmin -u root password 'password'
10.mysqladmin -u root -h `hostname` password 'password'
11.set mysql to stop/start at boot, etc: (not the proper smf(5) way; sorry; please fix*.):
1.ln /etc/sfw/mysql/mysql.server /etc/rc3.d/S99mysql
2.ln /etc/sfw/mysql/mysql.server /etc/rc0.d/K00mysql
3.ln /etc/sfw/mysql/mysql.server /etc/rc1.d/K00mysql
4.ln /etc/sfw/mysql/mysql.server /etc/rc2.d/K00mysql
5.ln /etc/sfw/mysql/mysql.server /etc/rcS.d/K00mysql
12.Cd to snort source directory. mysql -u root -p < schemas/create_mysql snort
13.mysql -u root -p snort
14.
mysql> grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to snort@localhost;
15.mysql> set PASSWORD FOR snort@localhost=PASSWORD('password');
16.mysql> flush privileges;
17.mysql> exit
7.
Edit the /opt/snort-2.4.3/rules/snort.conf file.
1.output database: log, mysql, dbname=snort user=snort password=password host=localhost
2.output database: alert, mysql, dbname=snort user=snort password=password host=localhost
3.comment out ftp_telnet preprocessor section
4.comment out smtp preprocessor section
8.
Test snort & see if it's making database entries:
1.snort -c /opt/snort-2.4.3/rules/snort.conf
2.echo "SELECT count(*) FROM event" | mysql -u root -p snort
9.
Build a newer libxml2
1../configure –prefix=/opt/libxml2-2.6.23 && gmake && gmake install
10.Build, install and configure php and pear:
1.
./configure --prefix=/opt/php-5.1.2 --enable-memory-limit=yes --with-apxs2=/usr/apache2/bin/apxs --with-gettext=/usr/bin/gettext --with-exif --without-mm --with-mysql=/usr/sfw --with-openssl=/usr/sfw --with-zlib --with-jpeg-dir=/usr/sfw --with-png-dir=/usr/sfw --with-exec-dir=/opt/php-5.1.2/libexec --enable-cli --enable-sockets --with-libxml-dir=/opt/libxml2-2.6.23 –with-gd && gmake && gmake install
2./opt/php-5.1.2/bin/pear install Image_Color
3./usr/local/php/bin/pear install Log
4./usr/local/php/bin/pear install Numbers_Roman
5./usr/local/php/bin/pear install http://pear.php.net/get/Numbers_Words-0.13.1.tgz
6./usr/local/php/bin/pear install http://pear.php.net/get/Image_Graph-0.3.0dev4.tgz
11.
Install BASE by untarring it into /var/apache2/htdocs
12.Install adodb by untarring it into /var/apache2/htdocs
13.copy /var/apache2/htdocs/base/base_conf.php.dist to base_conf.php and edit:
1.$Dblib_path Full path to the ADOdb installation "/var/apache2/htdocs/adodb"
2.$Dbtype Type of database used "mysql"
3.$Use_Auth_System Set to 1 to force users to authenticate to use BASE 1
4.$BASE_urlpath The root URI of your site "/base"
5.$alert_dbname The alert database name "snort"
6.$alert_host The alert database server "localhost"
7.$alert_port The port where the database is stored (Leave blank if you're not running MySQL on a network socket.) ""
8.$alert_user The username for the alert database "snort"
9.$alert_password The password for the username "snort_user_password"
References:http://meljr.com/~meljr/AMPSolaris10.html
http://www.sun.com/bigadmin/features/articles/intrusion_detection.html
http://www.sun.com/bigadmin/features/articles/snort_base.html
http://forum.sun.com/thread.jspa?messageID=104833
* http://www.sun.com/bigadmin/content/submitted/mysql_smf_tip.html
Sparc Solaris 9 snort compilation problems. - Snort Forums Archive
Posted by gkout on April 03, 2005 11:21:21I m compiling snort on a solaris 9 box (patched with latest patches) and I have configured snort with configure --with-mysql=/usr/local/mysql cause I want to implement it along with acid. Though the configure runs smooth with no probs I get the following error when I run make:
... (truncated)
"make[3]: Entering directory `/downloads/snort-2.3.2/src'
gcc -g -O2 -Wall -L/usr/local/lib -R/usr/local/lib -lpcre -L/usr/local/mysql/lib/mysql -o snort codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree.o ubi_SplayTree.o util.o detect.o signature.o mempool.o sf_sdlist.o fpcreate.o fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o event_wrapper.o event_queue.o inline.o output-plugins/libspo.a detection-plugins/libspd.a preprocessors/libspp.a preprocessors/flow/portscan/libportscan.a preprocessors/flow/libflow.a parser/libparser.a preprocessors/HttpInspect/libhttp_inspect.a sfutil/libsfutil.a -lmysqlclient -lz -lpcre -lpcap -lm -lsocket -lnsl -lresolv
Undefined first referenced
symbol in file
SSL_load_error_strings /usr/local/mysql/lib/mysql/libmysqlclient.a(viosslfactories.o)"I found a post that says to add the following line after the INCLUDES in the preprocessor section in configure file.
LIBS="$LIBS -lresolve"
but no good. I still get the same error.
I have installed all the libs for gcc (libtools, glib) and gmake autoconf etc.
Tried both gcc 2.95.3. and gcc 3.2.3 but didn't work out.
Any suggestions would be appreciated.
Thank you all.
G.K.
Posted by SenthilPrabuS on April 04, 2005 00:21:24
Hi,
The error occurs because, MySQL was build with SSL support on your machine. Also, compiler looks for /usr/local/mysql/lib/mysql/libmysqlclient.a. So if You dont have libmysqlclient.sl library, then you fill face such problems. So place a copy of libmysqlclient.sl there to solve it or.Another solution is to edit the configure file as below. Rerun the configure script again and try gmake.
Before: LIBS="${LIBS} -lmysqlclient"
After: LIBS="${LIBS} -lmysqlclient -lssl -lcrypto"Hope, this helps......
--
Senthil Prabu.S
Posted by gkout on April 05, 2005 03:32:12
Thanks Senthil. This worked just fine and the snort is up and running with acid.
Do you know of any documentation about configuring/compiling ( e.g. the -lsssl and -lcrypto ) and gcc? Thanxs for your help, really appreciate it.
Snort Installation and Basic Usage Part One by Hal Flynn 2000-07-31
Gathering the Required Software Snort www.snort.org This paper is based on the most recent version of Snort, v1.6.6.2 libpcap ftp://ftp.ee.lbl.gov/libpcap.tar.Z Snort requires lipbcap for packet capture. BSD derivatives typically include libpcap; Linux typically does not After downloading the required software packages store them in /usr/local Installation Step 1 - Install libpcap (skip to Step 2 if you already have libpcap installed) # gzip -d -c libpcap.tar.Z | tar xvf - # cd libpcap-0.4/ # ./configure # make # make install # make install-incl # make install-man Step 2 - install Snort # gzip -d -c snort-1.6.2.2.tar.gz | tar xvf - # cd snort-1.6.2.2/ # ./configure # make # make install
Google matched content |
Solaris 10 Sparc Success - Snort Forums Archive
[PDF] SNORT-ACID install on Solaris9
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last updated: March 12, 2019