barnyard2 won’t log to database – how to fix it

What to do when barnyard2 won’t log to the database….

Are you seeing something like this?

Full text:

Take a look at how you are running snort Wrong Way examples

Right Way

What’s causing this problem?

You have enabled one or more of these switches when running snort: -A -b

. . . → Read More: barnyard2 won’t log to database – how to fix it

add two network interfaces in ubuntu 12.04

To add two network interface in ubuntu 12.04 edit /etc/network/interfaces:

Now run:

If you’d like traffic that arrives on eth1 to also exit on eth1 (if your default route happens to be on eth0) then follow these steps: Note: We are assuming in this scenario that eth1′s ip address is 10.1.0.102

egrep valid ip address

Example to egrep valid ip address

To egrep all valid ip addresses in current directory:

Neo4j Couldn’t get file lock

Problem

A non-root user is running Neo4j and you are seeing locking errors in the log file

Symptom

Cause

The non-root ID that is being used to start the Neo4j instance does not have a user_home directory. Therefore this non-root ID is unable to access the root user’s “/etc/.java/.systemPrefs”. This produces the aforementioned . . . → Read More: Neo4j Couldn’t get file lock

Howto make Mongo SSL on Ubuntu 12.04

To make Mongo DB SSL on Ubuntu 12.04 you need to either purchase it or compile from source.

To make compiling from source easy here’s a script to help you out!

Mongo Compile SSL from Source Script

Note: Make sure you are not running an EC2 Small instance or you will run out of space! . . . → Read More: Howto make Mongo SSL on Ubuntu 12.04

neo4j SSL howto

Getting SSL to work with neo4j can be very frustrating.  The crux of the problem is that their documentation isn’t very robust.

Here’s what they don’t tell you:

Both the cert and the key MUST be in DER format!

example to convert a PEM formatted crt key to a der formatted crt key openssl x509 . . . → Read More: neo4j SSL howto

convert valid godaddy cert key to java keystore for tomcat

I spend hours trying to figure this out and here are the fruits of my labor

Howto: Import valid cert and key into a java keystore

note: use the same password in each step

Step 1: Export your key and cert to pkcs12 format

Step 2: Import p12 file to java key store

. . . → Read More: convert valid godaddy cert key to java keystore for tomcat

Export Omnigraffle License

Howto Export Omnigraffle License Steps Open up terminal Browse to /Users/<your user name>/Library/Application Support/Omni Group/Software Licenses You should see a file ending in “.omnilicense” (that’s your license file!) Take note of the file permissions Copy it to a safe place!

 

phone laws driving headphones

By State: phone laws driving headphones

Ever wondered if it is legal to wear headphones while driving in a particular state? Wonder no more!

Alabama

No prohibition on wearing of headsets while driving.

Alaska

Wearing an audio headset or earplugs is not permitted while driving.

Exempts headsets when used and designed to improve a driver’s . . . → Read More: phone laws driving headphones

Mandiant Highlighter – Log and Text File Viewer Review

Product Review - Mandiant Highlighter

Today we are looking at Mandiant Highlighter; Log and Text File Viewer

Product home page can be found here

Cost: Free!

Overview

MANDIANT Highlighter is a log file analysis tool. Highlighter provides a graphical component to log analysis that helps the analyst identify patterns. Highlighter also provides a number of features aimed at . . . → Read More: Mandiant Highlighter – Log and Text File Viewer Review