A small, comfortable nook pertaining to technology, current events, astronomy, and sailing and navigation.

Friday, January 30, 2009

Cisco ASA 5505 Static Assignment Issue

I've been fighting with a Cisco ASA 5505 for the past couple of days trying to pass traffic on a site-to-site VPN. One of my Google searches hit on this blog entry. This entry is a note to myself to remember (which I probably won't) that if you use a Cisco ASA 5505 with only a single outside IP address, ensure that you use the interface keyword when creating static routing entries. For example, the following entry will not work:

static (inside,outside) tcp 12.34.56.233 smtp 192.168.1.188 smtp netmask 255.255.255.255

The following entry, however, will work:

static (inside,outside) tcp interface smtp 192.168.1.188 smtp netmask 255.255.255.255

I'm familiar and comfortable with several Cisco routers and switches, but I have to admit that the ASA 5505 is one of the most confounding network products I've had the opportunity to use. That being said, I would not consider using networking hardware from anyone except Cisco.

Wednesday, January 14, 2009

Word Of The Century

I saw this word for the first time on Van Helsing's outstanding Moonbattery blog:

kakistocracy:
Government by the least qualified or most unprincipled citizens.
This word so accurately describes government at every level: local, state, and federal. We have absolutely no representation whatsoever; only greedy, corrupt, self-serving, self-aggrandizing hacks! I see no relief in sight -- especially what awaits us after January 20, 2009.

Israel vs. Hamas

In Michael Graham's superlative article on the war with Hamas, he articulates how I feel about the situation far better than I ever could.

Apple iPod Touch

Best. Electronic device. Ever.

I've had my iTouch for just about six months now, and I continue to be amazed by how extraordinary this device is. I bought the 16GB version and I'm completely satisfied with it as far as the storage space is concerned. In the interest of full disclosure, I also have a 60GB iPod (I have no idea what G (generation?) it is, but it does video), so storing my entire library on the iTouch was never a consideration.

Master Of My Domain

For the past couple of years, I parked my domain at an inferior hosting service (I'll divulge the name of the organization if you e-mail me) and did almost nothing with it. That's about to change! Years ago, before the dot-com implosion, I was the co-owner of an ISP up in Maine. My business partner (and friend) and I ran an exceptional operation and built a fiercely loyal customer base over the nearly three years we were in business. As you might expect, I grew accustomed to (and took for granted) having firsthand, direct access to an internet-connected network. Worse, however, was having to relinquish control of it to the party to whom we had sold the entire operation.

It's been almost ten years, but I will soon have complete control over my own personal domain (garychambers.com), and I am nearly as excited now as I was the day my friend and I opened the doors to our company.

Monday, June 23, 2008

VMware Fusion Command Line Access

I'm a command line person -- I always have been and I always will be. I am a very big fan of VMware Fusion and use it daily. I was pleasantly surprised to discover that I could control it by the command line and decided to write a quick script to do just that:

#!/bin/bash

VMWARE="/Applications/VMware Fusion.app/Contents/MacOS/vmware"
VMSTORE="/Users/gwc/Documents/Virtual Machines"

function vm_list()
{
local VMDIR="${1}"

IFS=$'\n'
[[ -z "${VMDIR}" ]] && exit 1
VMLIST=$(/bin/ls -1 ${VMDIR})
for VM in ${VMLIST}; do
# echo ${VM} | sed -e 's/\.vmwarevm$//'
echo ${VM}
done
}

[[ -x ${VMWARE} ]] || \
{ echo "** ${VMWARE} not found or not executable"; exit 1; }

# If user doesn't specify a command line option,
# show what's available, then exit

if [[ ${#} == 0 ]]; then
echo "-- Available VMs --"
vm_list "${VMSTORE}"
exit 0
fi

OLDIFS=${IFS}; IFS=$'\n'
USERVM=$(echo ${1} | /usr/bin/tr '[:upper:]' '[:lower:]')
VMLIST=$(vm_list "${VMSTORE}")

for VM in ${VMLIST}; do
VMLOWER=$(echo ${VM} | /usr/bin/tr '[:upper:]' '[:lower:]')
if [[ $(/opt/local/bin/gexpr match "${VMLOWER}" ${USERVM}) > 0 ]]; then
MATCH=1
break;
fi
done

if [[ -n ${MATCH} ]]; then
echo "-- Starting ${VM} Virtual Machine"
${VMWARE} "${VMSTORE}/${VM}"
RC=${?}
else
echo "-- No matching VMs"
RC=1
fi

echo "-- Exiting with code ${RC}"
exit ${RC}

One of the unintended benefits of using such a method of controlling VMs is the ability to easily break out of the VMware Fusion configuration process. If your VM doesn't require a GUI to interact with it, simply press CTRL-C and the configuration process quietly goes away leaving your VM running and freeing some valuable memory.

Friday, February 22, 2008

Notable Quote, February 22, 2008

A group of Americans, retired teachers, recently went to France on a tour. Robert Whiting, an elderly gentleman of 83, arrived in Paris by plane.

At French Customs, he took a few minutes to locate his passport in his carry on: "You have been to France before, Monsieur?", the customs officer asked sarcastically. Mr. Whiting admitted that he had been to France previously. "Then you should know enough to have your passport ready."

The American said, "The last time I was here, I didn't have to show it."

"Impossible. Americans always have to show your passports on arrival in France!"

The American senior gave the Frenchman a long hard look. Then he quietly explained: "Well, when I came ashore at Omaha Beach on D-Day in 1944 to help liberate this country, I couldn't find any damned Frenchmen to show it to!"