You Are Here : Forums Friday, November 21, 2008
     
Activeworx.org Forums
 
  Forum  IDS Policy Mana...  IDS Policy Mana...  how to use different sensor_name variables
Previous Previous
 
Next Next
New Post 7/12/2007 11:46 PM
  krypticet
13 posts
10th Level Poster


how to use different sensor_name variables 
Hello,

Cool product!

I have a couple different sensors that are all feeding to a MYSQL db.  All the sensors use the same rules.  Is there a way to configure the Output Module | Database to use different sensor names for each device?  When I currently upload the profile, it makes all the sensors have the same name, thus confusing BASE.


 
New Post 7/13/2007 4:37 AM
  Ray
59 posts
6th Level Poster


Re: how to use different sensor_name variables 
In snort.conf, at the end of the output line where you specify the mySQL database, add

sensor_name=NAMEOFSENSOR

Change NAMEOFSENSOR to what you want the sensor name to be. :-)

Ray
 
New Post 7/13/2007 2:29 PM
  krypticet
13 posts
10th Level Poster


Re: how to use different sensor_name variables 
 rpesek wrote
In snort.conf, at the end of the output line where you specify the mySQL database, add

sensor_name=NAMEOFSENSOR

Change NAMEOFSENSOR to what you want the sensor name to be. :-)

Ray

I understand how to set up sensor names outside of the tool, my question is how to do it inside the tool.  If I'm using IDSPM to push/manage snort.conf, how do I push different sensor names to different sensors all using the same profile?
 
New Post 7/13/2007 7:03 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: how to use different sensor_name variables 

 krypticet wrote
I have a couple different sensors that are all feeding to a MYSQL db.  All the sensors use the same rules.  Is there a way to configure the Output Module | Database to use different sensor names for each device?  When I currently upload the profile, it makes all the sensors have the same name, thus confusing BASE.

 

This is set in the database output.. open the policy, go to output modules, open the database one and you can set it here.

 

Checkout this screenshot for what I am talking about...

 

Cheers,

Jeff

 
New Post 7/13/2007 7:22 PM
  krypticet
13 posts
10th Level Poster


Re: how to use different sensor_name variables 
 Jeff wrote

This is set in the database output.. open the policy, go to output modules, open the database one and you can set it here.

Checkout this screenshot for what I am talking about...

Cheers,

Jeff



Thanks Jeff.  I know how to set it for 1 sensor using that method, but how can I set it for multiple sensors using different sensor names?  Is there a varible I can include in the Sensor Name field in the Output | database | sensor_name section that will allow different names to be placed in the snort.conf for each sensor?  Or is there some other method?
 
New Post 7/13/2007 7:29 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: how to use different sensor_name variables 
I think I know the problem you are having.. you have one policy with multiple sensors? this can be solved in a couple of ways..

1. Create 1 policy for each sensor.

2. I believe you can have the sensor name a variable. Use the variable name as the sensor name and on each sensor in IDSPM set the variable to a unique value.

3. Don't use the DB output plugin. The DB output is actually not recommended for production. Use unified output with barnyard instead. Here is a good article about setting it up.

Cheers,
Jeff
 
New Post 7/13/2007 7:55 PM
  krypticet
13 posts
10th Level Poster


Re: how to use different sensor_name variables 
Thanks Jeff.  That answered my question.  I tried using the variable option, but didn't find a sensor_name drop down in the dialog.  Unified output appears to be the way to go.  I'll approach it that way.
 
New Post 7/13/2007 8:05 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: how to use different sensor_name variables 
yea.. Barnyard is reallly the way to go.. incase anyone else wants to do this and doesn't want to use barnyard, or can't (barnyard does run on Windows) you could add the variable name yourself in the sensor or add a default value in the policy and it will then appear in the dropdown.

FYI: About how variables are added to a snort.conf when it is uploaded to a sensor...

The variable are added first from the policy, then the sensor variables are added. If there are any duplicates the sensor variable overwrites the policy variable in the snort.conf.

Cheers,

Jeff
 
Previous Previous
 
Next Next
  Forum  IDS Policy Mana...  IDS Policy Mana...  how to use different sensor_name variables
 
 
Copyright 2000-2007 by Activeworx, Inc.
All trademarks and copyrights on this page are owned by their respective owners.