norco online online testosterone percocet rxlist rimonabant sale testosterone pills name norvasc percocet 749 rimonabant in canada klonopin purchase oxycodone pills amoxycillin uk buy cheap accutane online testosterone 300 m523 percocet generic percocet tamiflu 75 mg accutane sale effexor xr prices picture of norvasc percocet 5 25 alternative to norvasc effexor prices norvasc 4 percocet cost prozac drug prozac 50 mg lamisil for sale diflucan price purchase diflucan lamisil 1x effexor xr 75 testosterone 500 percocet 512 mg lexapro 60 mg percocet purchase diflucan over the counter testosterone 100 accutane 40 mg buy percocet 10 acomplia pills effexor rx lamisil generic generic tamiflu ultracet 37.5mg tamiflu 75mg clomid tablets celebrex sale prozac 30 buy testosterone gel online prozac pictures drug clomid percocet watson 932 lamisil 250 mg order clomid buy percocet on line order norvasc butalbital apap caffeine accutane online cheap accutane without prescription percocet 54 543 accutane 10 mg celebrex no prescription percocet 10 650 clomid medicine generic version of lamisil testosterone 250 percocet 2.5 325 norvasc generic equivalent testosterone india lexapro 25 mg celexa sale prozac no prescription generic percocet pictures buy elavil celexa pills cheap effexor testosterone suspension buy buy percocet without prescription order effexor cheap elavil buy celexa lexapro 5 mg generic for lamisil testosterone tabs lamisil without prescription generic accutane canada percocet online without a prescription acomplia tablets ultracet no prescription percocet 7.5 mg tamiflu india generic celebrex clomid day 2 order percocet cheap oxycodone prozac 30 mg accutane price 40 mg cost of clomid percocet 932 testosterone pill side effects prozac 60 canada percocet lexapro prescriptions lexapro 200 mg prozac 40 mg purchase lexapro online prozac diflucan tablet buy rimonabant now percocet 10 325 mg percocet online purchase clomid 25mg percocet 650 diflucan one price buy percocet online consultation percocet 2.5 buy acomplia 30mg lexapro cost of rimonabant effexor alternative prozac 60mg klonopin tablets norvasc price generic effexor xr oxycodone purchase percocet 5 325 mg percocet prices effexor 150mg buy percocet overseas lamisil tablets price generic for diflucan lexapro street value rimonabant uk percocet e712 percocet 10 yellow price of clomid effexor medicine diflucan for sale buy testosterone steroids testosterone gel price buy testosterone cream testosterone 200 depot discount elavil buy percocet online no prescription buy testosterone propionate klonopin no prescription norco without prescription lamisil and generic generic tenuate buy rimonabant online percocet 7.5mg prozac pharmacy lamisil mail diflucan australia discount clomid lamisil pill clomid 2 tenuate canada percocet canada lexapro cost clomid pharmacy testosterone pharmacy generic percocets generic testosterone gel norvasc 40 accutane prices accutane from india lexapro 10 tamiflu swin flu prozac cost effexor canada amoxycillin price rimonabant 2006 lamisil cream percocet 0636 clomid generic testosterone 300 mg clomid pills percocet no prescription testosterone generic norvasc medicine accutane purchase ultracet tabs butalbital prescription celexa pharmacy purchase rimonabant diflucan generic name norco no prescription acomplia phone order amoxycillin 500 mg rimonabant order 15 mg percocet testosterone online tamiflu canada synthetic testosterone seemed like name for norvasc accutane india prozac canada order diflucan cheap lamisil percocet 10-325 ultracet er norvasc pictures effexor xr 150 norvasc 15 tenuate 75 mg prozac otc clomid 200mg diflucan without prescription effexor medication butalbital 50mg celebrex cost effexor xr online klonopin sale buy testosterone powder butalbital order lexapro 2.5mg lexapro 10 mg lamisil active ingredient generic klonopin clomid 100 mg cheap norco clomid 50 percocet 10 lamisil tablets alcohol lamisil 80 diflucan tablets testosterone patch buy testosterone tablets side effects accutane acne treatment butalbital 50 mg buy oseltamivir tamiflu pills generic lamisil tablets accutane uk cost of prozac testosterone for sale celexa tablets clomid 150 lexapro 50 mg tenuate without prescription clomid 50mg norvasc 10 order lamisil amoxycillin capsules lexapro mg testosterone cypionate prices norco pharmacy 7.5 percocet percocet pain medication buy percocet from mexico rimonabant diet pill percocet order online oxycodone price buy effexor norvasc tablet generic accutane cost medication percocet percocet 325 percocet 512 norvasc generic name buy percocets online where to buy rimonabant prozac 10 percocet generic diflucan usa lamisil sale testosterone non prescription clomid 5 9 percocet 7.5 325 percocet street name oxycodone tablets buy testosterone patches prozac 2008 prozac costs rimonabant pill generic lamisil testosterone 200 mg lamisil tablets uk norvasc 100 lexapro online buy celebrex testosterone tablets lamisil no prescription lexapro price prozac discount amoxycillin generic acomplia without prescription lamisil price diflucan prices lexapro 10mg buy percocet without a prescription buy rimonabant uk ultracet online percocet 10 225 lexapro free samples amoxycillin medicine tenuate prescription norvasc vs generic cost lamisil testosterone cypionate for sale

My Snort on OSX Install Notes

1/3/2010 – 6:32 pm

1 Download Snort2 Download pcre
3 Untar pcre
4 Cd to pcre
5 ./configure
make
make install
(NOTE: Install prefix ……………… : /usr/local)
6 Untar Snort
7 CD to snort
8 ./configure -enable-dynamicplugin –with-mysql –with-mysql-includes=/opt/local/include/mysql5/ –with-mysql-libraries=/opt/local/lib/mysql5/mysql/
9 make
10 sudo make install
/usr/bin/install -c -m 644 ‘./snort.8′ ‘/usr/local/man/man8/snort.8′
test -z “/usr/local/lib/pkgconfig” || /bin/sh ./mkinstalldirs “/usr/local/lib/pkgconfig”
/usr/bin/install -c -m 644 ’snort.pc’ ‘/usr/local/lib/pkgconfig/snort.pc’

11. Get the rules from the snort site and untar them
I used snorttemp as the folder
12. Make a folder for the rules
mkdir /opt/local/etc/snort/
mkdir /opt/local/etc/snort/rules/
13. Copy the rules over
cd ~/snorttemp/rules/
cp * /opt/local/etc/snort/rules/
I also copied over the etc folder
cd ~/snorttemp/etc/
cp * /opt/local/etc/snort/
14. Edit the Snort configuration
vi /opt/local/etc/snort/snort.cfg
change “var HOME_NET any” to “var HOME_NET 192.168.0.0/24″ or whatever your home network is
change “var EXTERNAL_NET any” to “var EXTERNAL_NET !$HOME_NET” This is everything except your home network
change “var RULE_PATH ../rules” to “var RULE_PATH /opt/local/etc/snort/rules”
goto the line that starts with “# output database: log, mysql, user=” and remove the # from the begining of the line
enter your user password and db name
15. mysql setup
log in to mysql as root
mysql -u root -p

create a snort database
mysql> create database snort;

create a user and password to match your mysql setup in the snort config:
mysql> CREATE USER ’snort’@'localhost’ IDENTIFIED BY ’somepassword’;

give that user access to the database
mysql> GRANT ALL PRIVILEGES ON snort.* TO ’snort’@'localhost’;
mysql> exit

Import the snort schema into the database.
mysql -D snort -u root -p < /schemas/create_mysql

16. Start it up
snort -c /opt/local/etc/snort/snort.conf

If it works it should look something like:
–== Initialization Complete ==–

,,_ -*> Snort! <*-
o” )~ Version 2.8.5.1 (Build 114)
”” By Martin Roesch & The Snort Team: http://www.snort.org/snort/snort-team

You can use ctrl+c to stop it.

Debian Boot Thumb drive from OSX

12/30/2009 – 9:23 pm

Last week I had a need to create a debian boot disk. The computer I needed to use it on doesn’t have a CD and I didn’t feel like purchasing a USB CD reader just for the purpose of loading debian, and I didn’t feel like waiting until I could go to down or have it shipped.

So I had to make a boot disk. I’ve done it in Linux several times before but never from OSX. So the commands aren’t exactly the same, here are my notes taken from a couple places on the web, which should serve as a reminder for the next time I have do to it.

First I downloaded the debian image I wanted to use from there site.
Next I stuck the thumb drive in the box.
from the termial (I use iTerm)
#diskutil list
mine was listed as /dev/disk1
#diskutil unmountDisk /dev/disk1
#bzcat debian.img | dd of=/dev/disk1
#diskutil eject /dev/disk1

It was a simple as that. To test i stuck it in my handy netbook and reboot and I was at the lovely command prompt. Then of course other things happened that required my attention so I haven’t gotten back to that project of getting the box installed yet.

Checking the Splunk Process from Nagios

12/27/2009 – 10:01 pm

Now its time to have Nagios check to make sure that splunk is running. For version 3 of Splunk there was a app / plugin you could get for Splunk that would work with Nagios. It appears to be gone. But I did find a snippet that some one posted here. Several things have changed so that script doesn’t work 100% out by cut and paste, but it was an excellent jumping off point and it took very few modifications to get going. Due to the fact that there is a copy right on this script, then I can’t put it here with out permission. But I will note that you can do the same thing almost by using the default nagios check_procs command.

So copy that script as check_splunk and stick it in your libexec folder. If your playing along with my setup thats: /opt/local/libexec/nagios

Once you have it downloaded you can ./check_splunk ports or procs
I didn’t worry about checking or trying to edit the search portion as for what I’m doing I don’t really need it right now, but I will revisit it if the need arises.

Now you have the script, its time todo the normal nagios setup stuff.
1. Add it to your commands
vi /opt/local/etc/nagios/objects/commands.cfg

define command {
command_name check_splunk
command_line $USER1$/check_splunk $ARG1$
}

2. Add it to your localhost
vi /opt/local/etc/nagios/objects/localhost.cfg

define service{
use generic-service
host_name localhost
service_description Splunk Port
check_command check_splunk!ports
}

define service{
use generic-service
host_name localhost
service_description Splunk Procs
check_command check_splunk!procs
}

Now restart nagios and you should be good to go

Adding Cacti Logs to Splunk

12/23/2009 – 8:09 pm

This basically the same process as adding the nagios logs, but I’ll put it up anyway.

1. Click Manager in the upper right-hand corner of Splunk Web.
2. Under System configurations, click Data Inputs.
3. Click Files and directories.
4. Click New to add an input
I choose Monitor a file or directory
6. Specify the path to the file:
With my setup it is:
/Library/WebServer/Documents/cacti/log/cacti.log
7. Under Host Heading
I choose constant value
8. Under Source Type
I choose Automatic
9. Click Save

Thats it now your cacti logs show up in splunk.

Checking the OSSEC Processes from Nagios

12/22/2009 – 10:45 pm

There are several OSSEC processes that are running at once. So I’ll add some simple process checking to nagios to make sure I know they are running. One note is that if you haven’t enabled the ossec-csyslogd to run (I did that to talk to splunk) then you won’t need that one. So here we go, its easy.

1. Add it to your commands (Note I’m adding a new command for this instead of using the command already there so I can pass some different information, plus I like to keep all my modifications separate to make things easier to reproduce on other boxes)

vi /opt/local/etc/nagios/objects/commands.cfg

# ‘check_ossec_procs’ command definition
define command{
command_name check_ossec_procs
command_line $USER1$/check_procs -c $ARG1$ -C ARG2$
}

2. Add it to your localhost
vi /opt/local/etc/nagios/objects/localhost.cfg

define service{
use generic-service
host_name localhost
service_description OSSEC csyslogd
check_command check_ossec_procs!1:1!ossec-csyslogd
}

define service{
use generic-service
host_name localhost
service_description OSSEC maild
check_command check_ossec_procs!1:1!ossec-maild
}

define service{
use generic-service
host_name localhost
service_description OSSEC execd
check_command check_ossec_procs!1:1!ossec-execd
}

define service{
use generic-service
host_name localhost
service_description OSSEC analysisd
check_command check_ossec_procs!1:1!ossec-analysisd
}

define service{
use generic-service
host_name localhost
service_description OSSEC logcollector
check_command check_ossec_procs!1:1!ossec-logcollector
}

define service{
use generic-service
host_name localhost
service_description OSSEC monitord
check_command check_ossec_procs!1:1!ossec-monitord
}

Now just reload nagios and you should be able to tell if you ossec process is there or not.