You Are Here : Forums Friday, November 21, 2008
     
Activeworx.org Forums
 
  Forum  IDS Policy Mana...  IDS Policy Mana...  Segmentation fault
Previous Previous
 
Next Next
New Post 8/13/2008 7:05 PM
  snorty mcsnort
4 posts
No Ranking


Segmentation fault 

Hi, I have updated the snort rules recently through activeworx and after pushing them to my sensors snort will not start. On manually trying to start snort, I get the error below. Do you have some guidelines on troubleshooting segmentation faults?



/etc/init.d/snort start Starting Intrusion Database System: SNORT
/etc/init.d/snort: line 46: 3230 Segmentation fault $SNORT_PATH/snort -c $CONFIG -i $IFACE -g $SNORT_GID $OPTIONS


Thanks

 
New Post 8/13/2008 7:21 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: Segmentation fault 

We don't have any quides for snort.. I would try www.snort.org. as for the error, I would open your snort.conf and take a look at line 46. What does it say?

Cheers,

Jeff

 
New Post 8/13/2008 8:26 PM
  snorty mcsnort
4 posts
No Ranking


Re: Segmentation fault 

Its actually in the /etc/init.d/snort file and this is where it appears to fail:

case "$1" in
     start)
        echo "Starting Intrusion Database System: SNORT"
        $SNORT_PATH/snort -c $CONFIG -i $IFACE -g $SNORT_GID $OPTIONS
        if [ "`pidof $SNORT_PATH/snort`" ]; then
                echo "SNORT is up and running!"
        else
                exit 0

The problem appears to be related to last time I pushed out the rules and update made changes to some regular rules files, emerging threats rules and to a couple of the configuration files.  If I set to rule path to an old directory with older rules and configuration files it works fine.   I have posted this as well at snort.org forums but posted it here as well in case anyone else had seen similar issues after updating via policy manager.

 

 
New Post 8/13/2008 8:39 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: Segmentation fault 

Try "Snort -T -c snort.conf"

This will run the config through a test with your config and should be clear where the problem is.

Cheers,

Jeff

 
New Post 8/13/2008 10:16 PM
  snorty mcsnort
4 posts
No Ranking


Re: Segmentation fault 

Thanks, I was eventually able to track down the rule that was causing the problem.  Once I disabled it, snort was back up and running.

 
New Post 8/13/2008 10:24 PM
  Jeff Dell
237 posts
www.activeworx.com
1st Level Poster


Re: Segmentation fault 

Good to hear.. what I suggest is you put this test command in your sensor restart settings. Doing this will test the uploaded policy before it tries to restart snort and will let you know if it fails and give details.

Cheers,

Jeff

 
Previous Previous
 
Next Next
  Forum  IDS Policy Mana...  IDS Policy Mana...  Segmentation fault
 
 
Copyright 2000-2007 by Activeworx, Inc.
All trademarks and copyrights on this page are owned by their respective owners.