Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snort logging problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wallace1819
Apprentice
Apprentice


Joined: 17 Aug 2002
Posts: 195
Location: VT

PostPosted: Sun Sep 08, 2002 7:24 pm    Post subject: snort logging problem Reply with quote

hi,

i'm having a problem getting snort to log to mysql and I can't find where I'm going wrong. here is what I have done...

snort.conf:
var HOME_NET $eth0_ADDRESS
var EXTERNAL_NET $HOME_NET
output database: log, mysql, dbname=snort user=snort host=localhost password=xxxx

running snort with:
-U -o -i eth0 -d -D -c /etc/snort/snort.conf

I'm not a mysql guru by any strech of the immagination, but these are the steps I used to setup the data base:

1) mysql -u root -p

with in mysql>
2) create database snort;
3) connect snort
4) source /usr/lib/snort/bin/create_mysql
5) grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to snort;
6) grant CREATE,INSERT,SELECT,DELETE,UPDATE on snort.* to snort@localhost;
7) set password for 'snort'@'localhost'=password('xxxx');
8) set password for 'snort'@'%'=password('xxxx');
9) flush privileges;
10) exit

but when I do a 'echo "SELECT count(*) FROM event" | mysql snort -u root -p' it shows...

count(*)
0

rather than...

count(*)
1

like the doc at http://acidlab.sourceforge.net/acid_config.html says it should.

and a after a portscan nothing shows up in acid. My guess is that I have setup the snort database in mysql incorectly. Can anyone see where I have gone wrong?

thx,
wallace
Back to top
View user's profile Send private message
-- Thor --
n00b
n00b


Joined: 31 Aug 2002
Posts: 49

PostPosted: Sun Oct 06, 2002 5:38 pm    Post subject: Reply with quote

Is snort working in general (that is, without database logging)? Could be a misconfiguration issue in snort.conf, maybe. Good luck getting that pig to squeal...

Regards,

Jeff
Back to top
View user's profile Send private message
r101
n00b
n00b


Joined: 14 Sep 2002
Posts: 27

PostPosted: Sun Oct 06, 2002 6:55 pm    Post subject: Reply with quote

Hi,

Try changing your output to alert instead of log to get portscans recorded, i.e.:

output database: alert, mysql, dbname=snort user=snort host=localhost password=xxxx
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 270
Location: currently ~/

PostPosted: Thu Oct 16, 2003 4:17 pm    Post subject: Reply with quote

See if this will help you out. :D

https://forums.gentoo.org/viewtopic.php?t=78718&start=0&postdays=0&postorder=asc&highlight=acid+mysql
_________________
eXklusve

You do know that no one gives a shit about your system spec's right?
Back to top
View user's profile Send private message
Blahbbs
n00b
n00b


Joined: 15 Jul 2002
Posts: 42

PostPosted: Thu Oct 16, 2003 8:04 pm    Post subject: Reply with quote

Check your /var/log/snort/alert file. If there's anything in there, there should be a corresponding entry in your event table of your snort database.
Back to top
View user's profile Send private message
jtp755
l33t
l33t


Joined: 01 Sep 2003
Posts: 691
Location: USA

PostPosted: Sun Nov 09, 2003 1:06 pm    Post subject: Reply with quote

this thread is kinda old but.....i dont think that snort is workign correctly. I have had it running for almost a day now and i would think that it would pick up stuff already but i have nothign. Not even an alert file in /var/log/snort. ACID hasnt shown anythign either. It there a way i can "test" to see if SNORT is working?
_________________
www.EternalFireProof.com
Registered Linux User #334610
Back to top
View user's profile Send private message
jesterspet
Apprentice
Apprentice


Joined: 05 Feb 2003
Posts: 215
Location: Atlanta

PostPosted: Sun Nov 30, 2003 2:04 am    Post subject: Reply with quote

jtp755 wrote:
It there a way i can "test" to see if SNORT is working?


I originally posted this under the previously suggested forum topic, but missed your posting, so here ya go:


:arrow: If you need to ensure that snort is running and logging as you expect it to, you can ping your 'sensor' with this command
Code:
ping -n -r -b 255.255.255.255 -p "7569643d3028726f6f74290a" -c3

Note that pattern "7569643d3028726f6f74290a" is equal to "uid=0(root)" which is the pattern required to generate alerts.

The -c3 command line parameter causes three packets to be sent.
_________________
(X) Yes! I am a brain damaged lemur on crack, and would like to buy your software package for $499.95
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum