Tuesday, March 24, 2009

Orange JeOS is pretty cool

So I found a new distro that’s pretty cool….Orange JeOS.  This distro based on the mantra “Just Enough Operating System” and it is a streamlined version of CentOS.   It’s released as a scripted build (not as an ISO) from the site, but being the lazy bastard that I am, I did find a site that performed all the heavy lifting for me. oj_logo They release a few different ISO’s based on your intended hardware.  There’s even a version with a GUI, but that kinda defeats the purpose in my view.  What I wanted this for was to be able to build a small syslog server without a lot of overhead.  I tried the VMWare appliance called SyslogAppliance but the damn thing was like 64GB in size.  So much for an appliance…

Anyhoo, I was able to load the core install on an old Toshiba Salellite Pro 4600 for testing.  From here I downloaded the VMWare version and put it on ESXi.  That took some work because it’s built on VMServer so I had to download the stand alone converter from VMWare and then convert it over.  When I first booted up it failed to mount the disk.  I took a shot in the dark and increased the size of the virtual disk and then it all worked ok.  So far so good.

So if you’re really interested on what’s installed by default…running a “yum list installed” on the base build  (oj-1.8.7-11.iso) yields:

MAKEDEV.i386                             3.23-1.2               installed      
SysVinit.i386                            2.86-14                installed      
atk.i386                                 1.12.2-1.fc6           installed      
audit-libs.i386                          1.6.5-9.el5            installed      
audit-libs-python.i386                   1.6.5-9.el5            installed      
authconfig.i386                          5.3.21-3.el5           installed      
basesystem.noarch                        8.0-5.1.1.el5.centos   installed      
bash.i386                                3.2-21.el5             installed      
beecrypt.i386                            4.1.2-10.1.1           installed      
binutils.i386                            2.17.50.0.6-6.el5      installed      
bzip2.i386                               1.0.3-4.el5_2          installed      
bzip2-libs.i386                          1.0.3-4.el5_2          installed      
cairo.i386                               1.2.4-5.el5            installed      
centos-release.i386                      10:5-2.el5.centos      installed      
centos-release-notes.i386                5.2-2                  installed      
checkpolicy.i386                         1.33.1-4.el5           installed      
chkconfig.i386                           1.3.30.1-2             installed      
coreutils.i386                           5.97-14.el5            installed      
cpio.i386                                2.6-20                 installed      
cracklib.i386                            2.8.9-3.3              installed      
cracklib-dicts.i386                      2.8.9-3.3              installed      
cryptsetup-luks.i386                     1.0.3-2.2.el5          installed      
cups-libs.i386                           1:1.2.4-11.18.el5_2.3  installed      
curl.i386                                7.15.5-2.el5           installed      
cyrus-sasl-lib.i386                      2.1.22-4               installed      
db4.i386                                 4.3.29-9.fc6           installed      
dbus.i386                                1.0.0-7.el5_2.1        installed      
dbus-glib.i386                           0.70-5                 installed      
device-mapper.i386                       1.02.24-1.el5          installed      
device-mapper-event.i386                 1.02.24-1.el5          installed      
device-mapper-multipath.i386             0.4.7-17.el5           installed      
diffutils.i386                           2.8.1-15.2.3.el5       installed      
dmidecode.i386                           1:2.7-1.28.2.el5       installed      
dmraid.i386                              1.0.0.rc13-15.el5_2.1  installed      
e2fsprogs.i386                           1.39-15.el5            installed      
e2fsprogs-libs.i386                      1.39-15.el5            installed      
ed.i386                                  0.2-39.el5_2           installed      
elfutils-libelf.i386                     0.125-3.el5            installed      
ethtool.i386                             5-1.el5                installed      
expat.i386                               1.95.8-8.2.1           installed      
file.i386                                4.17-13                installed      
filesystem.i386                          2.4.0-1.el5.centos     installed      
findutils.i386                           1:4.2.27-4.1           installed      
fontconfig.i386                          2.4.1-7.el5            installed      
freetype.i386                            2.2.1-20.el5_2         installed      
gawk.i386                                3.1.5-14.el5           installed      
gdbm.i386                                1.8.0-26.2.1           installed      
glib2.i386                               2.12.3-2.fc6           installed      
glibc.i686                               2.5-24.el5_2.2         installed      
glibc-common.i386                        2.5-24.el5_2.2         installed      
gnupg.i386                               1.4.5-13               installed      
gnutls.i386                              1.4.1-3.el5_2.1        installed      
grep.i386                                2.5.1-54.2.el5         installed      
grub.i386                                0.97-13.2              installed      
gtk2.i386                                2.10.4-20.el5          installed      
gzip.i386                                1.3.5-10.el5.centos    installed      
hal.i386                                 0.5.8.1-35.el5         installed      
hdparm.i386                              6.6-2                  installed      
hicolor-icon-theme.noarch                0.9-2.1                installed      
hwdata.noarch                            0.213.6-1.el5          installed      
info.i386                                4.8-14.el5             installed      
initscripts.i386                         8.45.19.1.EL-1.el5.cen installed      
iproute.i386                             2.6.18-7.el5           installed      
iptables.i386                            1.3.5-4.el5            installed      
iptables-ipv6.i386                       1.3.5-4.el5            installed      
iputils.i386                             20020927-43.el5        installed      
kbd.i386                                 1.12-20.el5            installed      
kernel.i686                              2.6.18-92.1.22.el5     installed      
kernel.i686                              2.6.18-92.1.13.el5     installed      
keyutils-libs.i386                       1.2-1.el5              installed      
kpartx.i386                              0.4.7-17.el5           installed      
krb5-libs.i386                           1.6.1-25.el5_2.2       installed      
kudzu.i386                               1.2.57.1.17-1          installed      
less.i386                                394-5.el5              installed      
libX11.i386                              1.0.3-9.el5            installed      
libXau.i386                              1.0.1-3.1              installed      
libXcursor.i386                          1.1.7-1.1              installed      
libXdmcp.i386                            1.0.1-2.1              installed      
libXext.i386                             1.0.1-2.1              installed      
libXfixes.i386                           4.0.1-2.1              installed      
libXfont.i386                            1.2.2-1.0.3.el5_1      installed      
libXft.i386                              2.1.10-1.1             installed      
libXi.i386                               1.0.1-3.1              installed      
libXinerama.i386                         1.0.1-2.1              installed      
libXrandr.i386                           1.1.1-3.1              installed      
libXrender.i386                          0.9.1-3.1              installed      
libacl.i386                              2.2.39-3.el5           installed      
libattr.i386                             2.4.32-1.1             installed      
libcap.i386                              1.10-26                installed      
libfontenc.i386                          1.0.2-2.2.el5          installed      
libgcc.i386                              4.1.2-42.el5           installed      
libgcrypt.i386                           1.2.3-1                installed      
libglade2.i386                           2.6.0-2                installed      
libgpg-error.i386                        1.4-2                  installed      
libhugetlbfs.i386                        1.2-5.el5              installed      
libidn.i386                              0.6.5-1.1              installed      
libjpeg.i386                             6b-37                  installed      
libpng.i386                              2:1.2.10-7.1.el5_0.1   installed      
libselinux.i386                          1.33.4-5.el5           installed      
libselinux-python.i386                   1.33.4-5.el5           installed      
libsemanage.i386                         1.9.1-3.el5            installed      
libsepol.i386                            1.15.2-1.el5           installed      
libstdc++.i386                           4.1.2-42.el5           installed      
libsysfs.i386                            2.0.0-6                installed      
libtermcap.i386                          2.0.8-46.1             installed      
libtiff.i386                             3.8.2-7.el5_2.2        installed      
libusb.i386                              0.1.12-5.1             installed      
libuser.i386                             0.54.7-2.el5.5         installed      
libvolume_id.i386                        095-14.16.el5          installed      
libxml2.i386                             2.6.26-2.1.2.7         installed      
libxml2-python.i386                      2.6.26-2.1.2.7         installed      
lockdev.i386                             1.0.1-10               installed      
lvm2.i386                                2.02.32-4.el5_2.1      installed      
m2crypto.i386                            0.16-6.el5.2           installed      
mingetty.i386                            1.07-5.2.2             installed      
mkinitrd.i386                            5.1.19.6-28            installed      
mktemp.i386                              3:1.5-23.2.2           installed      
module-init-tools.i386                   3.3-0.pre3.1.37.el5    installed      
nash.i386                                5.1.19.6-28            installed      
ncurses.i386                             5.5-24.20060715        installed      
net-tools.i386                           1.60-78.el5            installed      
newt.i386                                0.52.2-10.el5          installed      
nsa_lockdown.noarch                      1.0-3                  installed      
nspr.i386                                4.7.3-2.el5            installed      
nss.i386                                 3.12.2.0-4.el5.centos  installed      
oj-postinstall.noarch                    1.0-2                  installed      
openldap.i386                            2.3.27-8.el5_2.4       installed      
openssh.i386                             4.3p2-26.el5_2.1       installed      
openssh-server.i386                      4.3p2-26.el5_2.1       installed      
openssl.i686                             0.9.8b-10.el5_2.1      installed      
pam.i386                                 0.99.6.2-3.27.el5      installed      
pango.i386                               1.14.9-3.el5.centos    installed      
passwd.i386                              0.73-1                 installed      
pciutils.i386                            2.2.3-5                installed      
pcre.i386                                6.6-2.el5_1.7          installed      
pm-utils.i386                            0.99.3-6.el5.centos.19 installed      
policycoreutils.i386                     1.33.12-14.el5         installed      
popt.i386                                1.10.2-48.el5          installed      
prelink.i386                             0.3.9-2.1              installed      
procps.i386                              3.2.7-9.el5            installed      
psmisc.i386                              22.2-6                 installed      
pycairo.i386                             1.2.0-1.1              installed      
pygobject2.i386                          2.12.1-5.el5           installed      
pygtk2.i386                              2.10.1-12.el5          installed      
pygtk2-libglade.i386                     2.10.1-12.el5          installed      
python.i386                              2.4.3-21.el5           installed      
python-elementtree.i386                  1.2.6-5                installed      
python-iniparse.noarch                   0.2.3-4.el5            installed      
python-numeric.i386                      23.7-2.2.2             installed      
python-sqlite.i386                       1.1.7-1.2.1            installed      
python-urlgrabber.noarch                 3.1.0-2                installed      
readline.i386                            5.1-1.1                installed      
redhat-logos.noarch                      4.9.99-8.el5.centos    installed      
rhpl.i386                                0.194.1-1              installed      
rootfiles.noarch                         8.1-1.1.1              installed      
rpm.i386                                 4.4.2-48.el5           installed      
rpm-libs.i386                            4.4.2-48.el5           installed      
rpm-python.i386                          4.4.2-48.el5           installed      
sed.i386                                 4.1.5-5.fc6            installed      
selinux-policy.noarch                    2.4.6-137.1.el5        installed      
selinux-policy-targeted.noarch           2.4.6-137.1.el5        installed      
setools.i386                             3.0-3.el5              installed      
setserial.i386                           2.17-19.2.2            installed      
setup.noarch                             2.5.58-1.el5           installed      
shadow-utils.i386                        2:4.0.17-13.el5        installed      
slang.i386                               2.0.6-4.el5            installed      
sqlite.i386                              3.3.6-2                installed      
sudo.i386                                1.6.8p12-12.el5        installed      
sysklogd.i386                            1.4.1-44.el5           installed      
tar.i386                                 2:1.15.1-23.0.1.el5    installed      
tcl.i386                                 8.4.13-3.fc6           installed      
tcp_wrappers.i386                        7.6-40.4.el5           installed      
termcap.noarch                           1:5.5-1.20060701.1     installed      
tzdata.noarch                            2008i-1.el5            installed      
udev.i386                                095-14.16.el5          installed      
usermode.i386                            1.88-3.el5.1           installed      
util-linux.i386                          2.13-0.47.el5          installed      
vim-minimal.i386                         2:7.0.109-4.el5_2.4z   installed      
vixie-cron.i386                          4:4.1-72.el5           installed      
wget.i386                                1.10.2-7.el5           installed      
wireless-tools.i386                      1:28-2.el5             installed      
xorg-x11-filesystem.noarch               7.1-2.fc6              installed      
yum.noarch                               3.2.8-9.el5.centos.2.1 installed      
yum-fastestmirror.noarch                 1.1.10-9.el5.centos    installed      
yum-metadata-parser.i386                 1.1.2-2.el5            installed      
zlib.i386                                1.2.3-3                installed

More on this later as I continue to build my Open Source Security setup with PFSense, rsyslog, phplogcon, OpenVPN and ESXi.  (It’d be Xen if I that the time…really…)

Friday, March 20, 2009

Lansweeper – Inventory Tool Extraordinaire

 Lansweeper is a free and very cool tool for network inventory purposes.  There is a Premium Version that provides some extras that are well worth the investment.  I’ve been using it for a few image months now and it’s become one of my favorite tools.  What I like about it is that it’s very extendable and it’s pretty easy to create your own reports. I’ll let you check out the basics for yourself on their demo site, but I thought I’d walk you through how to extend the reporting functionality.  To do this you need lsbuilder, which is part of the Premium Version.  However, lsbuilder is just an easy way to create your own SQL queries so you could probably do that with the standard SQL tools. I wanted a report of Computer Manufacturer, Computer Name, Computer Model and the last logged in user.  Unfortunately, this report didn’t exist in the base tool, so I created it on my own.  First open up lsbuilder:

image

As you can see I’ve got SQL Express loaded on locally so it’s pointing back to itself.  Make sure you are logged on here with enough rights in SQL to do the magic you need.

image

You’ll notice the Report Output tab and the Report Builder Tab…we wanna go to the Report Builder Tab. After messing around a bit I found you could drag and drop tables from the table list over to the builder piece.  Selecting the items from the tables will produce those items in the final report.  After some poking around I found the values I wanted in the tblComputersytem and tblComputers tables.

image

As you can see above, I’ve linked to tables together with a join by dragging Computername from one table to the other.  If you click the SQL tab from the builder windows you can see the resulting code.

image

One thing you’’ll see is that I had to rename Computername in the tblComputersystem.Computername to Computername1 because there was a collision on this name between the two tables.  No big deal really.  Since the SQL is off the page I’ll drop it here for you to see better:

SELECT
  tblComputersystem.Manufacturer,
  tblComputersystem.Model,
  tblComputersystem.Computername AS Computername1,
  tblComputers.Username,
  tblComputers.Computername
FROM
  tblComputers
  INNER JOIN tblComputersystem ON (tblComputers.Computername = tblComputersystem.Computername)

Now just hit the disk icon to save the report to the report list.  Now you can click the Report Output tab to get your list:

image

This gives me the exact report I was looking for with Manufacturer, Model, Computer Name and the last logged in user.  Using the “Export to Excel” button I was able to manipulate the report further (by removing the duplicated ComputerName field) and to pretty it up for printing.  Yeah..I know there’s a way to remove the duplicate computername with the SQL code directly but this is just a quick and dirty example and I’m trying to be brief. :)

Hit me up on the comments if you find/develop any other cool and useful reports.

Wednesday, March 18, 2009

Ubuntu Ultimate 2.0

So we seem to have coughed up a few old Dell D800 laptops last year after upgrading some of our users.  When I heard we had a few available, I remembered that they had pretty nice screens and a medium grade video card baked in so I thought it might make a nice box to try Ubuntu Ultimate on.  You see, I like Ubuntu for the desktop, but having to load all the goodies on is a real pain in the butt.  That’s why I like this distro so much. It’s got tons of toys and tools and it’s all preloaded.  So I imagedownloaded, burned and kick started the iso.  Everything went pretty smooth all things considered.  There was a little tweaking with System-Preferences-Appearance (to crank up the video effects) which prompted it to download some NVidia drivers, but that went smooth.  The box is a little slow as it’s only got 512MB of RAM but it’s sufficient to test out all the cool stuff like Beryl/Compbiz, Wine, Filezilla, Wireshark, etc… 

So it’s been about a week so far and I’ve only found one issue and I’m sure it’s just me being dense. I can’t seem to create or delete items from the desktop. (Yes, I check perms and they all look good).  I’m sure I’ll figure it out once I sit down and put my mind to it. 

Next up is testing Orange JeOS.  I’ve got to find a minimal CentOS/Red Hat install to use as a VMWare image for syslog collection and it looks pretty tight.  It kind of reminds me of my old favs OpenNA and Trustix…

Thursday, March 12, 2009

Two Sites Packed Full of Goodies

Time after time I use two sites in my daily work for a multitude of tools.  These to sites are SysInternals (now a Microsoft site) and NirSoft.  SysInternals is well known by many Windoze folks for it's tools FileMon and RegMon which let you see exactly what files and registry keys a program is accessing.   However there are many tools on this site that are useful for troubleshootingimage Windoze issues.  NirSoft has  a collection of password recovery tools, network monitoring tools, web browser tools, Video/Audio tools, IP tools, programmer's tools, system utilities, command line tools, desktop tools and much more.  Trying to talk about each one of the tools could take days.  Tell ya what...go investigate the sites for yourself and enjoy the free goodness.

Wednesday, March 11, 2009

Outlook NK2 Annoyances

If you use Outlook (ok who doesn’t?) and you are troubled by it’s use of autocompletion of email addresses when sending messages this post is for you.  When you send emails, Outlook remembers (well it tries to remember) all the email addresses so that they are availemailable as autocomplete entries later.  They don’t get added to your Contacts (or Outlook Address Book), but they are cached in and nk2 file on your hard drive….which is profile specific.  This is a problem because profiles are problematic.  Many things can cause a profile to become corrupt, unavailable and just outright die.  Let’s face it, profiles suck.  So to get around this it’d be nice to have a tool that could fix or recreate these nk2 files.  Enter the Rebuild Outlook Autocomplete Cache tool.  This free (but not Open Source) tool will allow you to recreate a NK2 file from addressbookreading the addresses on messages in your Sent items folder or any other folder in your Outook mailbox.  When combined with the NK2.info tool you can even recreate your existing, corrupted cache.  NK2.info dumps your existing cache (even if it’s corrupt) to a csv file which you can suck back into your Outlook Address Book.  Then use the rebuild tool on that contact list to pre-populate the nk2 autocomplete file. 

Oh yeah…one more tip. Have you ever wanted to reset all your Outlook contacts “File As” properties so they are all “lastname, firstname” or “firstname lastname”? Well it not easy, but here is link to a Microsoft doc telling you how to do it.

Good stuff….good luck.

Sniffing Shoretel Calls

Awhile back, after I did my Wireshark presentation for ILTA, someone asked me about using Wireshark to capture ShoreTel VOIP calls.  It turns out that capturing the call was easy, but as there is no codec for Wireshark translating the call session to a WAV file or other audio file was a little more tricky.  Before you jump all over me about privacy and security concerns….the issue here is about call troubleshooting not eavesdropping.  Sometimes you want to be able to capture a call so that you can understand exactly what a user is hearing. Voice Echo, call quality and extra garbled noises as all acceptable reasons to want to be able to capture and play back a call.  So if you’re gonna do some funny business and listen in on someone’s calls…you are on your own. I don’t condone eavesdropping for any reason. On with the show…

So after spending a few hours looking at codecs for WireShark that would work with Shoretel I ran into a forum post about how someone accomplished the same objective with Cain.

image

Cain & Abel is a popular password cracking tool but it also contains a full blown sniffer.  Using this tool I was successfully able to record a call from my ShoreTel IP230G phone.  Here are the quick and dirty instructions if you are interested:

  1. Install Cain
  2. Run Cain
  3. Hit Configure on the menu at the top
  4. Select your nic from the list and hit Ok
  5. Select the Sniffer tab
  6. On the BOTTOM of the screen select the VOIP tab
  7. Hit the "start/stop sniffer" button in the button bar
  8. Make a call (you'll see it recording in the interface)
  9. End the call
  10. Wait for the interface to show that it’s captured the call in it’s entirety.
  11. Double click the recorded call it hear it. It's also saved as a wav under c:\program files\cain\voip

I have all the codecs supported by Shoretel loaded, but for my test call I was using L16/16000.  Also note that you need to use a network TAP or a switchport monitor capturing both directions if you want capture both sides of the call.

Enjoy the packet capture goodness.

Tuesday, March 10, 2009

TrueCrypt

As much as I despise the topic of computer security (and computer security people in general for that matter), I truly love TrueCrypt.  Some open source software seems unfinished, beta or kludgey.   Rarely do you get a gem like TrueCrypt that seems as good as or better then commercial software.

image

TrueCrypt is an encryption software package that encrypts static data (i.e. data on hard drive, thumb drives, etc.).  You can encrypt files, folders or even an entire hard drive.  It supports numerous software encryption algorithms (AES, Blowfish, Serpent, etc..), hashing algorithms (Whirlpool, SHA-512, etc…), operating systems (OSX, Windoze, Linux, etc…) and authentication mechanisms (smart cards, tokens, certificates, etc..).  I’m so impressed with it’s capabilities that I’ll be presenting a seminar on TrueCrypt at this year’s ILTA conference. 

This year we have to decided to encrypt all our laptops with TrueCrypt.  After looking at multiple programs, both  open source and commercial, I feel that TrueCrypt best meets our needs.  Making any decision requires trading offs.  In our case, I first looked at hardware encryption vs. software encryption.  Here are a few of the subtle differences:

Hardware:

  • Generally faster then software solutions and can usually be done at native speeds of the drive
  • Requires little effort on the part of the user
  • Can sometimes be tied in to other hardware security mechanisms like biometric fingerprint readers, usb keys and rfid keys (The BUSLink devices are really cool by the way. More on them later.)
  • Generally uses proprietary algorithms (so you’re not quite sure exactly what’s happening) and you generally don’t have a wide selection of algorithms to choose from.
  • Some enterprise tools are available for system deployment and management
  • Not available on workhorse models of Lenovo laptops

Software:

  • Numerous encryption/hashing algorithms to choose from
  • Little to no monetary investment
  • Slower to encrypt (and sometimes unencrypt) data
  • More granular control of what is and what isn’t encrypted
  • Possible plausible deniability to the existence of data (Hidden volumes and hidden operating systems)
  • Ability to encrypt external hard drives and flash drives
  • Generally requires additional software plug-ins to tie into hardware security mechanisms

I don’t really have the space to go into depth about why I liked TrueCrypt over other commercial and non-commercial packages, but suffice to it say the decision was based on simplicity for the user, cost to the organization, level of security provided by the software and ease of deployment.  After I give the presentation I’ll see if I can drop a link to it here for all to see.

Monday, March 02, 2009

Tracking Stolen Computers

Have you ever had a computer stolen?  Wouldn’t you like to find out who the rat bastard was that took it?  Well then you’d be interested in Adeona. imageAdeona installs on Linux, Mac OSX or Windows. It creates a daemon/service that “phones home” and stores the public IP address of the machine on a secure webserver.  From any other machine, you can run the recovery tool, give it a date range and have it spit the ip addresses back to you so you know where and when the PC hit the Internet.  The MAC version can even use the built in webcam to take snapshots of the rat bastard. Very interesting and very cool software…and of course…completely open source.  Enjoy the techno-narking goodness!!!!

Friday, February 27, 2009

More movement to Open Source

I’ve decided to take yet another leap, deep into the world of Open Source.  This year I will be replacing all of our Cisco PIX and VPN infrastructure with pfSense and OpenVPN.  I’ve been contemplating this for quite awhile, but have only recently decided to take the plunge.  pfSense, if you haven’t heard of it, is an Open Source firewall based on FreeBSD.image

After spending time reading about Untangle, Astaro, Smoothwall and m0n0wall I’ve decided that pfSense is probably the best based upon my needs.  I’ll be running it from a repurposed server with VmWare ESXi.  This will allow me some portability in case the box dies an untimely death as well as giving me the opportunity to put some other items on the same hardware for my dmz.  I’m sure I’ll be blogging about this as I go so stay tuned as I squeeze more money out of my budget with great Open Source software.

Thursday, February 26, 2009

Cheap and Dirty Security Camera

When we recently opened of a satellite office and the question of site security came up.  We decided as part of our security solution to install security cameras at each door.  After careful consideration we chose the Axis M1031-W Network Camera.  This camera was relatively cimageheap (~$260) and allows us great flexibility in how we handle security.  We can stream directly to a centralized computer, we can take snapshots based on detected movement, we can take snapshots based upon PIR sensor movement (passive infrared..aka movement in the dark) or we can simply chose to stream based upon a set schedule.  There are a multitude of options on this camera including a blinding light to illuminate the area if movement is detected and two way audio to scare the jeepers out of someone walking by.  I choose to ftp snapshots to a Linux remote server.  I wrote a simple shell script to keep only a certain number of days of photos.  Here’s the script if you are interested:

#!/bin/bash
FTPDIR=”/home/camera”
DAYSOLD=90
find $FTPDIR –mtime +$DAYSOLD –exec rm  {} \;
#eof

Easy peasy. Schedule that pup up by editing your crontab (crontab –e) to run every day ( 0 0 * * 0-6 /usr/bin/cleanftp) and you’re all set.

Monday, February 23, 2009

ShoreTel – Receptionist Phone Setup (Tricks and Tips)

So how do you set up your receptionist’s phone with Shoretel?  Our requirements were:image

1. All calls to the main number should be directed to the receptionist phone during business hours.
2. The receptionist should have her own extension (outside) and voicemail.
3. When the receptionist steps away from her desk, she should be able to transfer the calls to a group of 3 secretaries.  All the phones should ring simultaneously until the call is answered. If no one answers, the call should be placed in the general email box.

So how did we accomplish this?  Well we started off by creating a regular user account for the receptionist.  Then we created an Operators hunt group and and Operators-backup hunt group.  The Operators hunt group it tied to the main outside line.  The only member of the group is the receptionist.  The second hunt group, the Operators-Backup group has all 3 secretaries as members and is set to simultaneously ring all phones (Distribution Pattern = Simultaneous).  When the receptionist needs to leave her desk, she busy’s out the hunt group (*18<main-extension-number>) and all calls roll to the Operators-Backup group.  This works because the “Call Stack Full” option in the Operators group points to the Operators-Backup group.  When she gets back she just types in the same code and the Operator hunt group “unbusy’s” the line.  Unbusy is a word, I swear. I just used it in a sentence.

So how did you do it? Hit me up in the comments.

Thursday, February 19, 2009

Hard Disk Erasing Utility

Got a stash of old drives or machines laying around for disposal?  Don’t let them go out the door without stifling your secrets! Use Darik’s Boot and Nuke to wipe your files off the drive.  image

Let’s hope you do this sober because it’s a one way ticket to complete and utter destruction of the data on the drive. :)  This Open Source Software tool allows you to create a boot floppy, CD or DVD image which can be used to boot the machine and wipe any and all partitions or drives on the machine.  The software overwrites your data with random bits of data on a few different passes.  Think of the disk as a chalkboard.  When you wipe the chalk off a chalkboard using an eraser, sometimes a faint image can still be seen. If you wipe it multiple times the image gets less readable each time. Same deal with your data.  Definitely a good tool for the old tool bag.  Enjoy the tasty destructive goodness!

Tuesday, February 10, 2009

Snare - Log collection tool

Too many logs to keep track of?  Missing critical events because it's too much work to manually check the event logs on all your servers?  Can't fix what you can't see?!?!?  Try Snare.  Snare  "provides front end filtering, remote control, and remote distribution for Windows eventlog data."  image We use this tool on all our servers to forward event logs to a Linux box running syslog-ng.   We also point all our infrastructure gear and linux servers (again with Snare) here. We view the logs via phpLogCon a web based front end.  This combination works really well to centralize all of our logs.   Snare is named after the pneumonic  "System iNtrusion Analysis & Reporting Environment."  There are versions of Snare for just about every operating system as well as a customized version called Epilog for IIS, ISA, Apache, Squid and Lotus Notes.  If you haven't centralized your logging yet take a byte out of this tool!

Wednesday, February 04, 2009

WinSCP - The coolest ftp/sftp client out there

Ok...there's like a gazillion ftp clients out there.  WinSCP stands above all the rest. Why you ask?  Well...because:

* It's Open Source
* It supports SFTP (which you should really be using if you are hosting files..but that's another discussion) and SCP
* It can be batched (so it can be scheduled) and it can be run from the command line
* It integrates with Putty's Pageant for SSH authentication
* It can run from removable media
* It has an integrated text editor
* It does the best job of directory synchronization I've seen in any ftp client (manual, semi-automatic and fully automatic)
* It has a Windows Explorer interface or optionally a Norton Commander interface (for you old farts that remember the DOS days)
* Supports Drag&Drop in Windows
* It supports files over 4GB for sftp and ftp
* Supports walking through directories on a Linux server allowing you to chmod files and directories recursively

Enjoy the Open Source Goodness!!!


image

Friday, January 23, 2009

AxCrypt - Open Source File Encryption

I've been playing with Open Source encryption lately.  Lots of cool stuff out there.  In particular I really like both TrueCrypt and AxCrypt.  As I'm still testing TrueCrypt I'll leave that to a later post after I have a little more hands on experience.  However, AxCrypt is much easier to get a handle on and it's really useful.  If you need to send a file to someone confidentially, this is a great tool.

Axantum Software AB - AxCrypt File Encryption

You can take any type of a file and encrypt it with either a passphrase or a key file.  Passphrases are basically long passwords so that's easy to understand.  However key files are even cooler.  Say you've got a copy of an mpg file, a large graphic file or heck even a large binary file.  You can use those files as keys (think really long, complex passwords) for the encryption.  The guy on the other end needs the same exact file to decrypt the message.  This is a really powerful and AxCrypt can meet AES 128 bit file encryption standards.  You even get compression during the process.  One of my favorite features is that it can compress and encrypt the file inside of an exe package so the receiver doesn't need to have a copy of AxCrypt.  Good stuff...check it out. 

 

Wednesday, January 14, 2009

Go Live - ShoreTel Lessons Learned

So our office in Denver is up and running.   It was a pretty big project for us and I had 3 of my staff as well as myself on site for the first week to ease the transition. The ShoreTel system worked great.  The users love the PC Software (especially the operator) and the voice quality is fine.  The entire office is wired for 1GB POE. Most offices only have 1 live data connection which is shared between the phone and the PC.  Here are a few lessons learned from the ShoreTel perspective:

  • The HP Switch worked great as a backbone switch for this office. I'll be looking to drop the rest of my Cisco switching gear in favor of HP.
  • We went with the new 230G phones (which are black and white) and they worked fine.  I wanted gig at the phone so I'd have gig at the PC and that was a smart decision.
  • Don't concentrate on customizing buttons on the phone as much as customizing the Call Manager software that each user will use.  They will get more mileage out of the software client.
  • We used a Bogen speaker system and amp for overhead paging.  Still having a few issues with that (undoubtedly a wiring issue) but I think it will work well.
  • Music on hold turned out to be a little more expensive then I first thought. They said you could use any old iPod which is technically correct, but the low end ones (shuffle) can't charge and play at the same time. It ended up being cheaper to buy a IAPMp3 from http://ilaudio.com/digital-players.htm. It's about the same cost as an iPod would have been and it comes with 10 free styles of music so there's no copyright issues.  It's simple to set up and highly recommended.
  • We had to deal with 10 digit dialing in Denver.  All calls outside the area code (not outside the local calling area) had to be preceded by a 1.  I bet there's a work around for this be we were unable to find one.
  • The IP 8000 conference phone works great. It's harder to set up in ShoreTel because it's a SIP phone, but it works just fine.
  • Make sure to explain the difference between parking and holding to your users. They are easily confused about these two features because they are so similar.
  • ShoreTel Director comes with a tool to troubleshoot trunks which lets you monitor all calls and digits dialed. This tool was immensely useful and is called the Trunk Test Tool. Oh how I wish we had this tool on our PBX!
  • Bite the bullet and get a spreadsheet of all phones, mac addresses and locations. You'll thank me later.
  • If you've got a small office, have the operator add all the extensions as contacts.  That way they can drag and drop calls with very little effort.

All in all I'm very pleased with the ShoreTel solution.  The fact that I don't need a dedicated "phone guy" to manage this system is a huge benefit as well. I can wait to get all my sites on ShoreTel.

Thursday, January 01, 2009

LiveView - boot up a static disk image

I just found this tool a few days ago and I haven't had time to fully test it, but it looks really cool.  Basically, this tool (which is Open Source under GNU) will use VMWare to mount a dd-style disk image.  I haven't really discussed dd on this blog, but it's kind of a Ghost like tool that takes a sector by sector image of a disk and stores it in a single (or set of) disk files.  My favorite way to do this is by livecd like Helix or Knoppix-STD. Anywho, back to LiveView....

Here is the short and simple description right from their website:

"Live View is a Java-based graphical forensics tool that creates a VMware virtual machine out of a raw (dd-style) disk image or physical disk. This allows the forensic examiner to "boot up" the image or disk and gain an interactive, user-level perspective of the environment, all without modifying the underlying image or disk. Because all changes made to the disk are written to a separate file, the examiner can instantly revert all of his or her changes back to the original pristine state of the disk. The end result is that one need not create extra "throw away" copies of the disk or image to create the virtual machine.

Live View is capable of booting

  • Full disk raw images
  • Bootable partition raw images
  • Physical Disks (attached via a USB or Firewire bridge)
  • Specialized and closed image formats (using 3rd party image mounting software)

Containing the following operating systems

  • Windows 2003, XP, 2000, NT, Me, 98
  • Linux (limited support)

Behind the scenes, Live View automates a wide array of technical tasks. Some of these include: resolving hardware conflicts resulting from booting on hardware other than that on which the OS was originally installed; creating a customized MBR for partition-only images; and correctly specifying a virtual disk to match the original image or physical disk. "

Brought to you by : image

I expect this tool to be great for security situations, but heck it's just as useful for daily admin tasks.  For example, if your company had a policy to take and store a dd image of each departing persons hard drive you could theoretically boot that image at a later date without worry about compatible hardware and see the machine in the state it was the day they left the company.  Even better, dd each person's machine before a rollout or rebuild.  Then get back to their image if something isn't working after the changes.

Enjoy and have a Happy New Year!

Tuesday, December 30, 2008

Network Activity Tool

I get calls from people all the time about "funny" stuff happening on their computers.

image

Many times it's due to adware, malware or viruses hiding out.  Heck even stuff down in the systray phoning home (Acrobat, Java, etc.) can load a system temporarily causing things to slow and studder.  So how can you tell what's happening?  Well I use netstat.  It's an old tool both on Windows and Linux that can reveal quite a bit about what's happening.  So let's to this Q & A style....just like I get on the phone. :)

Q:How can I tell who my computers talking to?

A: netstat -a
This will list all listening ports and established connections.

Q: What program is using that port shown as listening?

A: netstat -b   or   netstat -bv (windows)
    netstat -p  (Linux...but you gotta be root)
This will show the windows executable holding the port open or with the -v switch the .dll's used as well.  The linux switch -p shows the process, not necessarily the executable but hey....that's really what you want anyhow right?!??

That covers the basic topic I think.  There are a slew of tools for stuff like this if you look around a little. I'll try and point some out and how they are used as questions arise.

Thursday, December 18, 2008

Lenovo Thinkpad RANT

<Begin Rant>
Lenovo laptops require way too many complicated drivers.  We are adding the T400 to our supported models on our MDS server for automated builds and man...what a pain Thinkpads are.  Not only does it require like 25 separate installations (many of which are .exe's), most require a reboot and probably shouldn't be chained together with silent switches.  Plus, once you get them all up and running on an image, your processor gets dinged with a performance hit booting and shutting down.  Heck, there's more icons in my systray then there is illegitimate babies in the Palin family.

image

Note to Lenovo:   Please make it easier to use unattended installations with your drivers.  Good Lord what ever you do separate the driver from the handy dandy (and utterly useless) apps in the control panel. 
<End Rant>

Tuesday, December 09, 2008

Dell 910 - Awesome mini computer

So I've spent the last 2 days in the hospital with my oldest son.  Seems he has viral meningitis.  Thankfully he will be just fine and we hope to leave tomorrow. This of course was really really bad timing because I'm supposed to be in Denver setting up the computer room for our new office.  I'm blessed that my network administrator still was able to make the trip and he's been doing a great job getting it all up and running.  I've been able to jump on the wireless connection here at the hospital and VPN in to help out.  This is the first time I've used our Dell 910 mini laptop and it's been working great.  What a lifesaver. 

Now I didn't over load the box at all because I've followed the kiss principle setting up the box.  It's XP Home Edition SP3 with watered down Word, Excel, PowerPoint and Skype.  Most of the time I'm remoted into my desktop at work over our SonicWall VPN4000...another awesome device.  The keyboard is my biggest complaint because it's so cramped but hey...it works.  I think I'll trade my Thinkpad in for one of these.

Wednesday, November 26, 2008

Blackberry Confirmations

So popping around the web today I came across this little tidbit.  If you send a someone with a Blackberry a message with the subject line containing the <confirm> tag, you will get a confirmation of the delivery when the message is delivered.  Here's my test and confirmation:

image

and here is the confirmation:

image

I'd love to credit the blog I just took this from...but I kinda lost my place in the excitement!  Sorry man.

Enjoy the tasty messaging goodness!

Thursday, November 20, 2008

Driftnet

This cool little open source app (shown to me by Lance of the ILTA OSS group...thanks Lance) will let you monitor traffic streams passing by your nic. It reaches in, grabs valid graphic files passing by and tosses them up on your screen.  Cool stuff....albeit a bit "big brotherish" but still cool.

image

It runs on Linux so you Windose-only guys won't have much luck with it, however another similar project called EtherPEG runs on the MAC.

Monday, November 17, 2008

NetWitness Investigator

NetWitness has released a free version of their Investigator product. This tool reads and parses a capture file and lets you slice and dice the data in all kinds of interesting ways.  Basically, it can read a WireShark or tcpdump file as a source and give you the ability to analyze it in great detail.  Here is the link:

http://download.netwitness.com/

Here’s a quick and dirty youtube vid on how it works:

http://www.youtube.com/watch?v=QDxTPYn2O2g

In fact, they’ve even got training vids on a youtube channel dedicated to the Investigator product:

http://www.youtube.com/netwitness

Good Stuff.

Friday, November 14, 2008

Cool Tool of the Week

Ever see Net Tools? 

nettoolsbox

 

This cool little freeware app is packed with all kinds of crazy network troubleshooting goodness.  From ip scanning, port scanning, timesync, sniffing, spoofing to email bombs.  In fact it's got so much stuff I haven't even had a chance to find out all it can do!  My only complaint is that the menu structure to call each individual tool is a little cumbersome to work with, but hey...it's free so I can't say much.  Check it out..it's worth the effort.

Thursday, November 13, 2008

ShoreTel Server Backup

 

backup

So I wrote a little script to backup the mysql database.  Here it is (with appreciation to the manuals and help I got from our Integrator):

rem ----------------------------------------------------------------------------------------------------------------------

-------
rem backupshoretel.bat
rem
rem Author - Scott Rolf
rem Version - 1.0
rem Description - This script automatically backs up the shoretel mysql database
rem -----------------------------------------------------------------------------------------------------------------------------

rem Create Archive folder if it does not exist
if exist c:\shoretelbackup goto Label1
echo creating shoretelbackup
md c:\shoretelbackup

:Label1
rem Parse out the current date to a system variable
for /f "tokens= 1,2,3,4 delims=/ " %%I in ('date /t') do Call :MakeString %%J %%K %%L

rem Make new folder based on date in archive folder
md c:\shoretelbackup\%DateString%

rem Backup mysql
c:
cd \Program Files\Shoreline Communications\ShoreWare Server\MySQL\MySQL Server 5.0\bin
mysqldump.exe --add-drop-table --routines --user=root --password=yourpass --database shoreware > c:\\shoretelBackup\%DateString%\ShoretelBackup.sql

goto :Cleanup

:Cleanup
rem CLEANUP..dump dir of c:\shoretelbackup to a text file and delete old
set T=0
dir c:\shoretelbackup /b /o:-n > c:\scripts\edir.txt
for /F %%I in (c:\scripts\edir.txt) do Call :Killold %%I
goto END1

rem Function that set the environment variable DateString
:MakeString
Set DateString=%1%2%3
goto :EOF

:Killold - this subroutine kills logs older then 30 days
set /a T = 1+%T%
if %T% LEQ 30 goto :Killold_exit
rd /S /Q c:\shoretelbackup\%1
:Killold_exit
goto :EOF

:END1
goto :EOF
rem -------------------
rem End of Script
rem -------------------

Watch out for line breaks in this as a simple cut and paste may not work correctly.  I've scheduled it to run every morning and it only keeps the last 30 days worth of backups. Also change "yourpass" above to your mysql password. (The default password is in the manual.) 

Enjoy the scripty goodness...

Wednesday, November 05, 2008

Local Prefixes

As part of setting up the ShoreTel phone system, you need to load the local area codes and prefixes for calls that are not long distance.  It took me awhile to find out where to get these lists on the net so I thought I'd share the info.  You can find the codes here. Go for the spreadsheet at the bottom as they are easier to work with.  Then cut paste and replace the - with a comma and you're good to go.  Enjoy.

Thursday, October 30, 2008

Understanding ShoreTel Phones Boot up Process

So I was answering a friend who had inquired about how the boot up process works on a ShoreTel phone when I thought....hummmm...this would make a great blog entry because I'll forget iit n a few months. :)
So assuming we have the network configured as I have shown in the last blog entry (VOIP vlan 19, user vlan 14), we plug a brand spanking new phone into the switch on port A1.  Assuming you have your DHCP server set up correctly (which we will cover in just a minute) the phone will be into the untagged vlan 14 and request a DHCP address.  It gets one, but it also get the DHCP Option 156.  This option is used by the ShoreTel phone to determine where it's vmail server is as well as where it should live in the network. It see's that it should live in vlan 19 and reboots.  Now it uses tagged info on vlan 19 to request a new  DHCP address.  This time it gets one in the 10.3.9.x range and goes about its business.  One thing I fail to mention here is the first time this happens it's reboot city for the phone.  New phones, even out of the box seem to need an upgrade when the connect to the ShoreTel server.  On my gig network this first boot and config of the phone takes like 10 minutes.
Ok, on the DHCP server we have to set up option 156.  First right click on the DHCP server in the DHCP Server Manager tool and select "Set pre-defined options".  Here you need to add option 156 so it appears as an option at the vlan scope level. Set the data type to string.  Once the item is created go to vlan 14 (which the phone first boots looking for the info) and add scope option 156.    The string format should be something like:
ftpservers=10.3.19.99, country=1, language=1, layer2tagging=1, vlanid=19
10.3.19.99 is the address of the ShoreTel server, country is set to USA, language is set to english, layer2tagging is set to 1 or yes and vlanid is the vlan id of the vlan for voip.
Cool stuff.

Friday, October 24, 2008

ProCurve 5412zl and ShoreTel

So we've got the ProCurve set up for the ShoreTel system and phones now.  Here is the code snippet from the ProCurve:

interface A1
   name "Phone and PC Office 100"
   power-over-ethernet high
exit
interface A2
   name "Phone and PC Office 101"
   power-over-ethernet high
exit
interface D7 
   name "ShoreTel Voicemail Server"
   no power-over-ethernet
exit
interface D14
   name "ShoreTel 50"
   no power-over-ethernet
exit
interface D15
  name "ShoreTel T1"
   no power-over-ethernet
exit

vlan 14
   name "USER_VLAN14"
   untagged A1-A2
   ip address 10.3.14.1 255.255.255.0
   exit
vlan 19
   name "VOIP_Phone_VLAN"
   untagged D7, D14-D15 
   qos priority 7
   ip address 10.3.19.1 255.255.255.0
   tagged A1-A2 
   exit


qos udp-port 4102 priority 6
qos udp-port 1718 priority 6
qos udp-port 1719 priority 6
qos udp-port 1720 priority 6
qos udp-port 25 priority 6
qos udp-port 37 priority 6
qos udp-port 69 priority 6
qos udp-port 162 priority 6
qos udp-port 520 priority 6
qos udp-port 8089 priority 6
qos udp-port 8888 priority 6

You also need to configure your DHCP server so that when the phone boots up, it can determine the VOIP VLAN that you want to use.  To do this you need to set up the following DHCP options on your DHCP server in the untagged VLAN that the phones will first see when booting (VLAN 14 above):

042 = NTP Servers = NTP.Server.IP.Address1,  NTP.Server.IP.Address2
066 = Boot Server Host Name = ShoreTel Server IP address
067 = Bootfile Name = ShoreTel Server IP address

So far this ShoreTel stuff is pretty kick ass. I'm not regretting my decision at all.

Thursday, October 23, 2008

HP ProCurve 5412zl and Equallogic PS5000E

So we finally got everything configured on the ProCurve 5412zl for the Equallogic today.  According to the documentation you need to configure the following:

  • a separate iScsi VLAN
  • turn on flowcontrol
  • enable jumbo frames on the VLAN
  • turn off spanning-tree on iScsi ports
  • disable unicast storm control

Here is the snippet of the switch config for the Equallogic and server connected to it:


interface C19  
   name "ESX Server connection to iScsi VLAN"
   flow-control
   no power-over-ethernet
exit
interface D9  
   name "Equallogic NIC1"
   flow-control
   no power-over-ethernet
exit
interface D10 
   name "Equallogic NIC2"
   flow-control
   no power-over-ethernet
exit

vlan 25
   name "iScsi_VLAN"
   untagged C19, D9-D10
   ip address 10.3.25.1 255.255.255.0
   jumbo
   exit

spanning-tree
spanning-tree C19 bpdu-filter
spanning-tree D9 bpdu-filter
spanning-tree D10 bpdu-filter

spanning-tree C19 admin-edge-port
spanning-tree D9 admin-edge-port
spanning-tree D10 admin-edge-port
spanning-tree config-name "Calamazo"
spanning-tree force-version RSTP-operation

On the ProCurve, I couldn't find a setting for unicast storm control.  If you know how to do this hit me up in the comments.

Tuesday, October 21, 2008

Internet Access in Amerituckey

So from time to time I get requests for Internet access out of some back woods countrified hotel.  As anyone that has ever traveled anywhere in the U.S. knows...hotel Internet access is like a box of shitty chocolates.  You know it's gonna be horrible, but you're just not sure how horrible it's gonna be.  So I ran into this cellphone based router called Proxicast.

image

 imageYou can use any basic cell card you want. I chose the Alltel Huawei EC360 because...well....the Proxicast guy said it was the best!  Alltel, unlike other carriers, has not yet limited their unlimited Internet access  (gotta love telco providers).

The card needs to be activated by a PC first, but once that's done it plugs in and comes up pretty quickly in the Proxicast router.

Performance has been pretty decent..about what you would expect. If you've got occasional users an only a few (1-2) people driving it hard you'll be ok.

imageWe offer remote access through an SSL VPN box and we were able to get about 2-3 people running through the router successfully without constant complaining.  The big thing I noticed was that latency was pretty high.  I experienced latency in the range of 207ms all the way up and over a second. This is probably just the Alltel 3G network, but that's still pretty horrible. I wouldn't try and run Skype over this connection and expect not have to shout out "OVER" each time I finished a sentence.  In case you're curious here my speedtest.net results:

image

The nice thing about the Proxicast is you can plug it into the wall at the hotel and use the cell line as a backup.   If the hotel Internet goes down then you can swap over to cell access.  The fact that it's got a wireless access point baked in (a,b/g) makes it a nice piece of gear for a litigation lunchbox.

Friday, October 17, 2008

Data Forensics

image

It looks like Helix, a data forensics tool baked in a Live CD has been updated.  This is a cool tool that I've used in the past to analyze some images at work that we were given.  Rather then spending thousands of dollar on EnCase and other tools, I've used this tool to scour and search hard drive images.  As I'm not a forensic investigator, we generally pay for a licensed investigator to obtain the image and then we use our own tools to find the data.  There's also a forensic's wiki full of open source goodness.

Friday, October 03, 2008

VOIP

So we are moving to VOIP in our Denver office.  This will be a new area for us as we are  a long time Siemen's PBX customer.  After much consideration we've decided to go with ShoreTel

image

The decision was based on price, performance and ease of use.  Once again Cisco lost out on two of those issues...price and ease of use.  The performance metric was difficult to get a handle on (I'm not sure I ever did) because you'd almost have to do a bake off to tell the difference.  In the end, ease of use was the real motivation to go with ShoreTel.  We don't have a full time telcom person so I need my network admins to be able to configure and support the gear.  Cisco once again is just too complicated to deal with.  I'll let you know how it goes but so far I'm really excited.

Note to my open source homies: I did think about SwitchVox and given more time I may have decided to go with them.  However, in the interest of time (we go live 01/01/2009) and given the fact that there will be no IT support people in our Denver office I wanted a known, tested system.  So basically I whimped out.  Sometimes you gotta pick you battles.

Wednesday, October 01, 2008

Done Paying Ransom

We are opening a new office in Denver in January.  After doing some soul searching and research I've decided that I'm done paying Cisco ransom.  I'll be implementing HP ProCurve switches in the new office.  This is huge for me.  For many years I was a Cisco bigot.  I even sat in on the CCIE lab back in 2000. (Yep..I missed it by a few points but it was a cool experience.)  Now that I'm actually responsible for paying for the gear as well as configuring it, I can't justify Cisco anymore.  Here are the points on my reasoning:

  • These days, layer 2 & 3 switching is commodity.  There are few gains found between different vendors gear.
  • HP ProCurve gear has a lifetime warranty and free software updates.  Smartnet has always been painful to deal with because it's true extortion.  You are paying for them to fix things that were broken when you purchased the product.  Beyond that you are paying for insurance on the best made gear in the world.   Seems to me if it's the best gear it shouldn't need insurance...or at least cheaper insurance.
  • The long life of a Cisco box is stifled by it's Smartnet price rising at every renewal and the fact that in 6 months the box that will work for years becomes End of Sale...then End of Life.  What's the use of buying high end gear and then swapping it out every 3 years just so Cisco has a better bottom line? 
  • Cisco gear is a chain saw. It's really powerful to those who use it every day, but for those of us that want to set it and forget it....that's exactly what happens.  You spend hours researching a topic...figure out how to implement it..and then you forget about it.  When something breaks or needs adjusted the CLI forces you to "relearn" everything to get back to where you were.  They need to dumb some of this stuff down.
  • eBay.  So you buy a used box and you have to "re-certify" it just to pay the ransom of Smartnet?!?!?!   You'd think they'd be happy just to get the support contract as expensive as it is.

So that's it.  As far as switches are concerned I'm done with Cisco.  Once I find a replacement router I feel good about, I'll jump ship there too.  As for firewalls...I just received a SonicWall NSA5500 that's waiting for me to play with.

So long Cisco....you were good to me once....but you've priced yourself out of the market.

image

Saturday, September 27, 2008

Scripting tool for Windows

So there are a ton of ways to script stuff in Windows...batch files, VBScript, PowerShell, etc...   My favorite is AutoIT.  AutoIT is a freeware (unfortunately not Open Source) tool that is very similar to the old basic language and can be used to do a wide variety of things in Windows.  All your typical stuff like registry access and file access is available and because it can tap into Windows components you can do things like ftp.  I was first attracted to the tool because it lets you script "button pushing".  I was working on automating a standard image and we had a few applications that had poorly designed installation routines which you couldn't automate from the command line.  AutoIt will let  you wait for windows to pop up and then you can instruct it to press buttons in the window so you can have a "hands-off" installation.  Take a look...it's well worth the effort.

autoit_6_240x100

Friday, September 26, 2008

Remote Support Tool

I'm often asked to "jump in" to someone's PC and generally I  use a Terminal Services client, Remote Assistance (check out sora.exe to make this easier), Ultravnc or Ultravnc SC.  These solutions all have different benefits, but I've recently found another tool called CrossLoop that is pretty good too.  It's a bit deceiving because it look like you have to register the tool, but you really don't.  So, IMHO here is the low down on these tools:

Terminal Services - Great for remote control, but you're gonna knock off the local user at the box and there's no good way to shadow them and see what they are doing.  Best used for remote access to servers.  This is a very efficient tool from a bandwidth standpoint.

Remote Assistance - A decent tool, but it has to be enabled on the client and to take control of the mouse and keyboard the user has to first allow you in (meaning they have to be sitting at the machine waiting for you) and then they have to also let you remotely control their machine.  This two step process is a pain.  Also there's no easy way to get into a the client tool because it's buried in the Help and Support nonsense.  I did find a tool called SORA.EXE which acts as a client helper making it easier to connect, but the users still needs to accept twice.

UltraVNC - A great tool with lots of options, but you have to load the tool which requires a reboot.  It's pretty fast and seems to work well but walking a low tech user through loading the tool is a bit cumbersome.   Adding it to a standard image is great for helpdesk folks.  The benefit to this tool for helpdesk personnel is that the user need not be present to remotely control their PC.  This is big brother...you can easily spy on users so make sure you include a remote policy on what is and what isn't acceptable behavior.

UltraVNC SC - This is an extension to UltraVNC...think of it as a mini-ultravnc setup.  You edit and ini file and then create a .exe file which you can post on your website.  Anybody can then download and run the tool.  The install is seamless and it uninstall's when you disconnect so there is no permanent footprint.  Because you prepopulate the ini file with your Internet IP address the user can simply click on a "connect to Fred" link in the tool to give you remote access.   It supports encryption and can run on any port you want.  Downside is if you are on the road and need to help someone it's difficult because you've tied your IP address into the ini file. (I haven't played with PCHelpware yet, but I'll look into it.)

CrossLoop - This tool does require installation on both sides of the connection but it's pretty simple and doesn't require a reboot.  You can pass control both ways so they can see your screen or you can see theirs.  So far it's been great for me when I'm out of the office and someone needs help.  The one thing to note is that you can skip the registration during installation by clicking a little "skip" shortcut on the bottom right of the registration page.  Good stuff.

So lots of tools and lots of options...no one tool is perfect for every situation but a between these tools I've been able to do everything I've needed to.  If you've got a tool you think is better, drop me a comment.

Monday, September 22, 2008

I love me some WireShark!

I put on a session at this year's ILTA on WireShark.  I got pretty good feedback and this month for the Open Source call-in I was asked to share some links to info on the net that I used for preparation of the talk.  He are a few of them:

http://www.wireshark.org/  - The main WireShark Page

http://wiki.wireshark.org/ - The Wiki for WireShark

http://www.novell.com/connectionmagazine/laurachappell.html - Some old presentations by Laura Chappell gave at past Novell events.

http://laurachappell.blogspot.com/ - Laura Chappell's Blog

http://www.wireshark.org/news/20060714.html - A Beginning Tutorial and Podcast on WireShark from Chris Sanders

http://home.insight.rr.com/procana/ - Dated, but still relevant info on designing capture filters

http://thenetworkguy.typepad.com/nau/tips/index.html - Good general packet info site

http://www.linuxjournal.com/article/9398 - VOIP and WireShark article

http://www.lovemytool.com/blog/2007/08/span-ports-or-t.html - Nice little article on TAPS and Span Port use when sniffing

http://wiki.wireshark.org/SampleCaptures#head-6f6128a524888c86ee322aa7cbf0d7b7a8fdf353 - Sample Captures

http://www.techtraces.com/ - Another site with sample captures

http://gaia.cs.umass.edu/ethereal-labs/ - Even more sample captures (at the bottom of the page)

http://packetlife.net/ - a nice networking blog

Have Fun!

Friday, September 05, 2008

Cheap, Simple, websites

So I committed myself to help develop a web site for my son's Cub Scout pack.  I did a smallish site last year for his Den just to keep track of Calendar items and it worked pretty well. I hosted it at the time with 1and1.com which ended up costing about $3/month.  At the end of the year, they wanted to jack up the rates so I didn't want to renew or start over with them this year.  After a bit of searching I found a site called AirSet. (www.airset.com).  It looks pretty cool. We can use it to manage documentation, calendars, photos...all kinds of stuff.  The basic usage is free but once you use some decent amount of storage you need to pay a small fee. (5GB is $2/month) It looks like it might be a great way to collaborate...I'll let you know how it goes.

Monday, August 11, 2008

CentOS is now my favorite distro

After messing around with many different distros over the last few years, I've come to the conclusion that CentOS is my favorite.  I cut my teeth in Linux on Red Hat back when it was free and have always struggled with other Debian based or BSD based ditros because of the differences.  As CentOS is basically Red Hat without the invoice, it's nice to come home again.  I still have a few Ubuntu boxes around, mostly because Wireless and Media Codecs seem to be better on that platform, but my production stuff is all going to CentOS.

What's you favorite flavor?

Thursday, July 17, 2008

Bye Bye Trustix

image

Crapity crap crap.  Another decent distro bites the dust.  I really like the idea of a small, security specific linux distro for Internet applications.  Years ago I used OpenNA for both FTP and HTTP stuff. It was great. Then it died and I went to Trustix.  Now that's dead.  With all the great distros out there I haven't found a solid, stable, smallish, security specific distro as a replacement. I'll probably go to CentOS at this point because it's free.  The problem is backing out all the crap to get so a small footprint.

So long Trustix...we hardly even knew ya....

Saturday, July 12, 2008

Helpdesk, schmelpdesk

We've been running our IT Department without a helpdesk software package for way too long.  Initially, we only had one full time support person so it was pretty easy to just use email to track stuff.  Over time we've grown an distributed some responsibilities so it was time to get a decent package put in so nobody dropped the ball on anything.  I took a look at HelpStar, Cerberus, OSTicket, OTRS and SupportSuite.  Each has an interesting take on how it handles tickets, but I ended up going with SupportSuite.  My reasons were based on price; features we'd actually use, something that runs on Linux (CentOS), email ticket submission, visibility on a PDA (some type of decent web interface), unlimited users and techs (without having to pay ransom per tech) and ease of use. 

We are still in the configuration stage, but all looks good so far. I really like the LiveSupport piece which is kind of an IM client for the techs that are on-line. I also like the escalation, SLA, and Teamwork features.  All this for under $700.  Some of the solutions I looked at were almost $1000/tech.  That's just way too much spend on something like this.  Heck, if all goes well the users won't even see it.  Hard to justify something at $1000 per tech when there's little direct visibility for the users.

I'll let you know how it goes but so far so good.

Wednesday, June 11, 2008

Cheap Disk

My buddy was talking about a low cost SAN like solution based on Linux called CORAID.  Looks like good stuff.  Basically you buy the1U, 3U or tower shell and add your own SATA(I or II) disks.  It used a layer 2 protocol called AoE (ATA over Ethernet) which they claim is better then iSCSI because it doesn't have to deal with the overhead of TCP/IP.  At 64 cents/GB it sure looks like something I'm gonna have to try at some point.  Looks like it would make a great target for secondary storage for disk to disk backups or an imaging project.  The OS is based on Linux and all recent Linux kernels already support AoE so that's cool.  Good Stuff.

sr421 SR421                sr1521SR1521

 

                   coraid

 

Friday, June 06, 2008

"Scotty, I need more power!"

Ok...maybe I don't need more power I just need to know what I'm using.  That's always a pain in the butt.  Even with a degree in Electrical Engineering I don't get too excited about monitoring what each device uses for power but it really needs to be done if you wanna get an understanding over your overall consumption needs.

I found this little dealio on the web and bought one:

image

It's the Kill-A--WattEZ  power monitor.  What makes this gadget dope is that it will spit out all the normal stuff (volts, amps, etc.) but it also tells you Watts, VA, Power Factor and KWH.  If you drop in what your  pay rate is for electricity it will even calculate how much it costs per hour, day, week and year to keep a device running.  Good stuff.  Only limitation I've seen is that it's strictly a 120VAC device so big honking stuff you need to do the old fashioned way with a volt meter, calculator and cursing.

Thursday, June 05, 2008

Newsletter Rant

<begin Rant>
Vendors that send newsletters marked as Important emails should be shot. I say this because I have all critical/important emails automatically forwarded to my phone as a text message. Yes I have a Blackberry (actually a Samsung BlackJack with Goodlink), but to separate the wheat from the chaff I use Exchange Rules to forward specific messages as text messages to my phone....messages from the boss, the managing partner, loss of Internet access, etc.  As I pay for only 200 text messages a month, having newsletters forwarded is a real costly pain. 

Newsletters are bathroom reading people...they are not and have never been important reading. 
<end Rant>

Tuesday, May 20, 2008

WSUS that's not such a wuss

So Windows XP update management during an MD/BDD build is a pain in the butt.  The built in tools force you to identify, by hand, and download, one at a time, all the updates needed.  There is a nice step in the rules to allow you to run all the updates but come on..we're talking at least 2 days of work to get all this set up correctly and then tested.  Then. BAM. A service pack comes out and now you gotta go clean it all up and start over again.  Not a good thing.  So how did I handle this problem?  Open Source of course.  A little gem called CTUpdate.  Good stuff.  It even downloads updates for Microsoft Office if you want.

So here is how it works. Download the code, run the .exe and it will go out and get all "security" updates for you.  Yeah...not all the updates as it uses the Security Baseline Analyzer as it's database to know what to pull..but hey it's better then the alternative.  Now I just create a custom step to dump the "client" folder down to each client and start the install process.  Then a quick uninstall routine deletes the source.   This was done as a hands off process and added just a little time to the build process.

Monday, May 12, 2008

Lenovo T61 Sysprep bluescreen fun

I hit a nasty error today sysprepin' a T61 Lenovo laptop.  Basically, one single line in the sysprep.inf screwed me.  The line was

extendoempartition=1

Seems like this would use the whole disk for the image right?!?!?  Sounds like a good idea right?!?!?  Hey they document the setting right in the sysprep help file so it's gotta work right?!?!?!!?  Ah, no...but thank you for playing.

Basically, you sysprep the box on and on the first boot you get the "Windows XP" loading screen.  Then BAM...faster then a Brittany Spear's drug rehab visit it bluescreens with a 0x000000ED error.  Change that setting to 0 and it all works.  Details can be found here:

http://support.microsoft.com/kb/329826

 

...where'd I put that damn Ubuntu DVD's........ :)

Friday, May 09, 2008

ntop - network monitoring coolness

So this I've talked a lot in this blog so far about BDD/MD simply because that's the project I've been working on lately.  However, I'm a huge open source fan and you'll probably hear more and more about my open source favorites as time goes on.  Well, I finally got ntop (www.ntop.org) working on Ubuntu 8.04 the other day and man it is cool.  I haven't looked at this product in a few years but it's really a good tool.  Wanna catch file sharing, music download, porno watching network hoggers?!?!  ntop can do that for you.

Installing on Ubuntu takes a little effort because you won't see it in Add/Remove programs. I used apt-get to pull mine down.  It went something like this:

apt-get install ntop

Then I just run ntop from the command line and it comes up.  It defaults to port 3000 so to see the web interface on the same box open FireFox and go to http://localhost:3000   I had to reconfigure it for my second nic (because I have a regular nic and a monitoring nic) so once it was up I went through the web interface to Admin->Configure->Preferences and set the item called ntop.devices to eth1.  Then I did a Admin->Shutdown, waited 30 seconds and restarted it from the command line.  Good stuff.

Wednesday, May 07, 2008

Get Computer Make & Model for BDD

If you use the BDD database or if you script the variables to pick up the appropriate /Drivers folder (which is blogged about all over and well worth the effort) you need to determine what BDD thinks the computer name and model are.  You can certainly start a BDD build and hack through the logs to get this info or you can run the following under an OS and let it tell you:

Open a Command Prompt
type "wmic"  at the command prompt
type "csproduct get vendor"  <- This will spit out the vendor name
type "csproduct get name"  <- This will spit out the machine name

Now, on my drivers share I have folders for each machine name (for example, a Lenovo T61 is 888901U) which contains all the drivers for that model.  Point to this in sysprep.inf and unattend.inf and it will make your life a lot easier. If I can find the link to the full description of this I'll post it.

Microsoft Deployment from a USB drive

This is a shameless cut and paste from another blog, but here are the instructions for formatting and then creating a USB stick with a copy of the LiteTouch iso files on it:

1 Open admin cmd prompt.
2 Run "diskpart".
3 Run diskpart command "list disk".
4 Make note of the disk number your flash drive is.
5 Run diskpart command "select disk (drive number)".
6 Run diskpart command "clean".
7 Run diskpart command "create partition primary".
8 Run diskpart command "select partition 1".
9 Run diskpart command "active".
10 Run diskpart command "format fs=fat32".
11 Run diskpart command "assign"
12 Run diskpart command "exit"

From there just copy the contents of the Litetouch ISO directly to the USB drive and you're all set.  I bought a few 4GB sticks (Kingston 4GB DataTraveler 100's) and they worked just fine.