Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
COMPLETE guide to Snort, MySQL, and Acid
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 458
Location: orlando, fl

PostPosted: Wed Mar 16, 2005 4:04 pm    Post subject: Reply with quote

juppe22 wrote:

btw...how I should use these...??


you login to mysql and enter the commands there
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


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

PostPosted: Thu Apr 21, 2005 3:14 pm    Post subject: Reply with quote

It's been quite a while sence this was HOW-TO was updated.
I have a clean Gentoo install on my laptop so I'll start working on re-vamping this How-to really soon.
Anyone have any thing they would like included? Know a cool trick or shoudl something else be added?
Thanks in advance!
:D
_________________
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
GentooBox
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1168
Location: Denmark

PostPosted: Thu Apr 21, 2005 3:35 pm    Post subject: Reply with quote

exklusve wrote:
It's been quite a while sence this was HOW-TO was updated.
I have a clean Gentoo install on my laptop so I'll start working on re-vamping this How-to really soon.
Anyone have any thing they would like included? Know a cool trick or shoudl something else be added?
Thanks in advance!
:D


nice with an updated version :) hurry up.
_________________
Encrypt, lock up everything and duct tape the rest
Back to top
View user's profile Send private message
5xl
n00b
n00b


Joined: 08 Aug 2004
Posts: 27
Location: Gaithersburg, MD, US

PostPosted: Thu Apr 21, 2005 6:23 pm    Post subject: Reply with quote

I followed the setup but acid says that no data is being logged and my Action Stats are all zeros. It is counting and getting the packets but not logging them. What could the problem be?
_________________
--------------------
*Gentoo 2004.3*
Athlon XP 3200+ OC'ed 3350
Liquid Cooled CPU GPU Northbridge
GB DDR400, 240 SATA, 230 PATA
And Windoze is still slow...
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


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

PostPosted: Thu Apr 21, 2005 6:44 pm    Post subject: Reply with quote

check your database and see if the data is at least getting there.
There could be lots of potential problems. please give us as much info as you can, so as to help us help you. :)
_________________
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
5xl
n00b
n00b


Joined: 08 Aug 2004
Posts: 27
Location: Gaithersburg, MD, US

PostPosted: Thu Apr 21, 2005 6:51 pm    Post subject: Reply with quote

Something interesting:

I got some info googling around. It turns out it is only storing alerts, which then show up in acid (duh). I did a ping -s 1600 192.168.0.box and it worked fine. But I guess I am looking the wrong thing. I want to analize all traffic from my lan, and then alert me. Kind of like etherreal, but web based. Can snort and log all data??? Is there anything that will email me or page me on alerts?
_________________
--------------------
*Gentoo 2004.3*
Athlon XP 3200+ OC'ed 3350
Liquid Cooled CPU GPU Northbridge
GB DDR400, 240 SATA, 230 PATA
And Windoze is still slow...
Back to top
View user's profile Send private message
Satori80
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 137

PostPosted: Sun Apr 24, 2005 7:29 pm    Post subject: Reply with quote

grover wrote:
stream wrote:
is it possible, that the snort daemon is on the gateway and the logging is on a other maschine in the network

gateway: only snort
other maschine: mysql, apache, acid,...

how could this work?


I have just set snort up this way and it works fine. Just remember you still need to have the mysql use flag set on the snort box to build mysql logging support.

You need to edit /etc/mysql/my.cnf and change bind-address so it listens for connections too.


If I add mysql to the use flags it tries to build mysql on the snort box. If I add mysql to package.mask it won't build snort.

How can I give mysql support to snort without building mysql on the local box?
Back to top
View user's profile Send private message
Satori80
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 137

PostPosted: Mon Apr 25, 2005 10:07 am    Post subject: Reply with quote

Update to above, I went ahead and emerged snort -mysql just to see if it would work... so far I can't get past adding snortdb-extra to the db because it's not part of the snort package as far as I can tell. The create_mysql.gz has moved from contrib to schemas since this howto was last updated, but the snortdb-extra is nowhere to be found. Is it manditory to have this for it to work as expected?
Back to top
View user's profile Send private message
Satori80
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 137

PostPosted: Mon Apr 25, 2005 10:17 am    Post subject: Reply with quote

exklusve wrote:

Anyone have any thing they would like included? Know a cool trick or shoudl something else be added?
Thanks in advance!
:D


If you could, I'm not sure how this is going to work out yet... but if there are any "gotchas" to be on the lookout for when configuring snort on one server to work with mysql on another server, might be helpful for some. I'll keep notes on what I'm doing and if it works or not. If there is any difference I'll be sure to share that.

Other than that, an update would be cool in and of itself as all of these are official ebuilds now and some (snort) have moved things around.
Back to top
View user's profile Send private message
Bobrepuss
n00b
n00b


Joined: 27 Feb 2005
Posts: 33

PostPosted: Wed Apr 27, 2005 8:57 pm    Post subject: hi Reply with quote

mysql> grant INSERT,SELECT on root.* to snort@localhost;
ERROR 1047: Unknown command


tried to follow it.. why is this happening?

cheers
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


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

PostPosted: Thu Apr 28, 2005 7:02 pm    Post subject: Reply with quote

did you run the two previous lines?

Code:
  SET PASSWORD FOR root@localhost=PASSWORD('new_password');
  create databse snort;

_________________
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
[sinz]
n00b
n00b


Joined: 08 Jun 2004
Posts: 71

PostPosted: Sat May 07, 2005 7:51 pm    Post subject: Reply with quote

I just ran through this guide (a few slight modifications for newer versions) and am using the latest (masked) version of acid in portage (0.9.6_beta23). Everything works well except when I go to graph the alert detection times or get a profile. The dates only go up to 2004. Is there something I'm missing or is this a bug in the app itself?
Back to top
View user's profile Send private message
stillman
Apprentice
Apprentice


Joined: 07 Dec 2002
Posts: 223
Location: Vienna, Austria

PostPosted: Wed May 11, 2005 9:16 pm    Post subject: Reply with quote

acid is dead since 2 years, there's a living project called BASE based on ACID, check out this thread.
Back to top
View user's profile Send private message
r4d1x
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 157
Location: Japan

PostPosted: Sat May 21, 2005 2:50 am    Post subject: Reply with quote

Just curious, but shouldnt ethX be running in PROMISC also? I've setup a few snort/acid/snortcenter boxes and have always had it in promisc for the logging to work correctly. if your having problems with events not logging try setting it that way.

Code:
ifconfig eth0 promisc

_________________
Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP
Back to top
View user's profile Send private message
tyne
n00b
n00b


Joined: 04 Jun 2003
Posts: 48
Location: Brighton, Massachusetts

PostPosted: Tue May 24, 2005 5:20 pm    Post subject: Snort SSH lgin alerts Reply with quote

I was wondering if any one knew if there were rules for snort that created alerts for failed ssh login attempts. I get a lot of brute force attacks and would like to be able to easily monitor the traffic. I have snort, acid, and mysql all working together. I think that I will also look into using base. Any help would be appreciated.
Thanks,
T
Back to top
View user's profile Send private message
r4d1x
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 157
Location: Japan

PostPosted: Tue May 24, 2005 10:47 pm    Post subject: Reply with quote

check in
Code:
/var/log/auth.log


all ssh attempts and PAM challenges are stored there. As far as logging it in ACID, im not sure.
_________________
Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


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

PostPosted: Fri Jul 15, 2005 5:44 pm    Post subject: Reply with quote

Quote:
Just curious, but shouldnt ethX be running in PROMISC also? I've setup a few snort/acid/snortcenter boxes and have always had it in promisc for the logging to work correctly. if your having problems with events not logging try setting it that way.

Code:

ifconfig eth0 promisc


When snort starts up I believe it puts your ethernet device into promisc mode.
Start up snort and run an ifconfig and see if your device is indeed in promisc mode.
_________________
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
daern
n00b
n00b


Joined: 27 Jul 2005
Posts: 2
Location: TN

PostPosted: Wed Jul 27, 2005 3:06 pm    Post subject: Reply with quote

OK, I was able to set this up successfully on a workstation at school for a project for one of the professors, but for some reason I can't get this to work on my home system. I've followed the forum and wiki as best I could, but there is still something wrong. When I try to go to: http://<ipaddress>/acid/acid_main.php I get a socket error with links, page cannot be displayed from IE and Firefox just sits there and never loads anything. I've checked my logs and I'm not able to find any errors with mysql, snort or apache. I made a PHP file in the acid directory to make sure it was able to load PHP files and it worked fine (I just used the <?phpinfo() ?> to display the PHP stats). I've checked the mysql users and I am able to connect to mysql using the snort user and display the tables.. I've searched for docs and asked a few non-n00bs I know if they had ever run into this and they have not.

Basically All i've done to this system is set it up as a router using the Gentoo Home Router howto, and then I used this howto to setup snort/acid/mysql/apache2.

Any ideas or assistance would be greatly appreciated! Also, if there is specific info that I should post that would help, please let me know that as well. Thanks in advance!

-Daern
Back to top
View user's profile Send private message
r4d1x
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 157
Location: Japan

PostPosted: Thu Jul 28, 2005 10:33 am    Post subject: Reply with quote

give BASE a try and see if you get the same errors.
_________________
Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP
Back to top
View user's profile Send private message
shredder
n00b
n00b


Joined: 22 Nov 2004
Posts: 47

PostPosted: Tue Oct 11, 2005 1:49 pm    Post subject: Reply with quote

If snort does not log any activities to the desired database make sure that snort is running without -A or -s option. Check with:
Code:
# ps aux | grep snort
If snort is running with one of those options edit your /etc/conf.d/snort file to run without those options.
Good Luck!
Thanks for a great howto[/code]
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


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

PostPosted: Mon Nov 07, 2005 5:52 pm    Post subject: Reply with quote

Ok,
Its been way too long since this was updated.
I'm running an emerge sync on my laptop right now so I can start documenting a new install of snort, etc.

I'm going to be setting up Snort (newest version), Mysql 5, apache 2, php, and BASE (http://secureideas.sourceforge.net/support.php).

I saw a really cool program at the Linux World Expo a few months ago in San Francisco at the Snort booth. Its called Sguil (http://sguil.sourceforge.net/)

Going to see if i can get this running and document it also. :)

Possibly even try to get oinkmaster going too.
(http://oinkmaster.sourceforge.net/)

if there is any other software related to Snort, etc, that you would like documented in here also.. please pm me.

Thanks! :D
_________________
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
exklusve
Apprentice
Apprentice


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

PostPosted: Mon Nov 07, 2005 10:15 pm    Post subject: Reply with quote

Ok as promised....Heres an updated how to page with BASE :D

http://forums.gentoo.org/viewtopic-t-399801.html
_________________
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
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
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