In my never-ending quest to find justification for writing NSM-Console, I hereby present the following tutorial on how to decode the SANS Christmas packet challenge using nothing but NSM-Console:
I’m going to be using NSM-Console version 0.4-DEVEL, which adds the features that allow this analysis to be performed without external tools. You can get the development [...]
Entries Tagged as ‘geekery’
January 11, 2008
Decoding the SANS Christmas packet challenge using only NSM-Console
June 14, 2007
First suggestion for Project Indiana
Okay, so almost everyone has heard about Project Indiana right? The one where SUN tries to make Solaris like Linux so they can compete in more areas and get all the wonderful features of Solaris on more platforms. Well, I have a suggestion for you:
Don’t use Java for your installer.
Yea, sure, it’s fine if you [...]
June 8, 2007
Frustrating: Kernel panics
Alright, so for the last 3 days or so, my main Solaris machine has been going crazy and kernel panicing about once every day or so, which is extremely annoying because every time it panics the machine reboots (and this machine has 3 zones that are in current use, so I get 3 calls about [...]
June 6, 2007
Submission: local/remote zfs snapshot script
Here’s a nifty little submission from Ralf Ramge. It will do a ZFS snapshot backup to a local directory, a remote machine and also clone and promote the filesystem on the remote machine. It keeps the last 7 backups around. Take a look:
#!/bin/bash
# backup_zfssnap.sh, (c) 2007 ralf [dot] ramge [at] webde [dot] de
BACKUPDIR=”/export/backup/snapshots”
DSTAMP=`date ‘+%y%m%d-%H%M%S’`
FILESYS=$1
DEST=$2
REPLICA=$3
BACKUPNAME=`echo $FILESYS [...]
June 5, 2007
Ian Murdock at OpenSolaris users group
So I read quite a few Solaris blogs and when this popped up this morning I decide to take a look (warning, the movie that the post links to is >500 megs)
I had expected to hear a pretty good discussion around the “linuxification” of Solaris and how Ian Murdock plans to approach it, turns out [...]
June 5, 2007
Not-as-simple perl script for ZFS snapshot auditing
Hi everyone, I’m back again with another perl script to hopefully be useful to a few of you.
Firstly, the script: http://lee.hinmanphoto.com/files/zdiff.txt (formatting long scripts in wordpress’ crazy editor is a very long and arduous process, thus I’m just linking to the script in this case, if anyone knows of a better place to stick [...]
June 1, 2007
Super-simple perl script for zfs snapshots
Here’s a simple script for creating daily zfs snapshots that get rotated every week (so you always have one for Mon, Tues, Wed, etc)
#!/usr/bin/perl
use warnings;
use strict;
my $zfsname = shift || die “Need a filesystem name\n”;
my $day = `date`;
$day =~ s/(Sun|Mon|Tue|Wed|Thu|Fri|Sat)[\S\s]+/$1/gi;
my $snapname = “$zfsname\@$day”;
my $exist = system(“zfs list $snapname”);
# if it already exists, delete it
if($exist == [...]
May 17, 2007
Linux firewall configuration
Basic iptables firewall conf only letting ssh and DNS through:
# Generated by iptables-save v1.2.11 on Thu May 17 14:52:04 2007
*filter
:INPUT DROP [13164:946396]
:FORWARD ACCEPT [0:0]
:OUTPUT DROP [0:0]
-A INPUT -p tcp -m state –state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp –dport 22 -j ACCEPT
-A INPUT -s 128.222.228.235 -p tcp -j ACCEPT
-A INPUT -s 128.222.228.235 -p [...]
May 17, 2007
Use SVM to make RAID0 and RAID1 meta-partitions
Firstly, the easy one:
RAID0:
Given 4 slices, each ~5g:
First, need a metadb, I created a 100MB slice on c1t1d0s0 (which I am NOT using for the RAID, entirely separate drive) and ran this command to initiate the database. It is a good idea to mirror the database in a minimum of 3 positions, but that is [...]
May 17, 2007
Getting EMC Celerras to work for iscsi on Solaris 10
For fun and profit!
Basically, for my own categorization:
1. Celerra-side:
Create filesystems (I am using 4 because I want to stripe across all 4:
nas_fs -n iscsiRAID1_5g -c size=5G pool=clar_r5_performance
nas_fs -n iscsiRAID2_5g -c size=5G pool=clar_r5_performance
nas_fs -n iscsiRAID3_5g -c size=5G pool=clar_r5_performance
nas_fs -n iscsiRAID4_5g -c size=5G pool=clar_r5_performance
Mount filesystems:
server_mount server_2 iscsiRAID1_5g /iscsiRAID1_5g
(repeat for all 4 filesystems)
Create iscsi target:
server_iscsi server_2 -target -alias [...]
