Another mouth to feed

August 4th, 2008

His name is Nermel, and he’s a Devon Rex.

Article Tags>> | |

Merry birthday!

July 27th, 2008

I just found out that my birthday is the same date as the Korean armistice. Rad.

My first cut-throat

July 20th, 2008

Ice Cube - You can do it

I love pay day. I can pay all my bills, chip away at my debts and then buy something for myself. This month, I noticed that The House of Knives was having a sale, so I decided to grab one of their cut throat razors. They had some absolutely beautiful razors in there, but at quite a hefty price even with the sale discount: perhaps too big a gamble if I decided that straight shaving isn’t for me. So I picked up their only Dovo Astrale:

It’s definately not shave ready, it needs a good honing and for me to purchase a strop before I use it. But it’s a start. Down from over $200 to about $140 :)

Article Tags>> | |

Roll your own high performance corporate firewall/router

July 14th, 2008

Jake Shimabukuro - Time after Time

So yesterday I was bored and contemplating some discussions we’ve been having around our team at work. After some complicated backhistory, our office had replaced its perfectly fine Linux based firewall with a string of Juniper Netscreens, which can be best described as prohibitively complicated and increasingly useless. We cannot do any decent logging, graphing or statistics. We cannot easily put in a VPN to a client. We cannot maintain reliability of our own VPN services. We are tied to a platform that simply isn’t working, is wasting a lot of time to maintain and simply providing no business value. And for what? The illusion that hey, we get support from Juniper, and we pay money so it must be better! etc

Now, geeks and tinkerers will all yell out loud about how you can just get commodity PC hardware from a pile of decommissioned junk and throw in some cheap $5 NICs and install TEH LUNIX! Linux will save the day, linux will feed your cat and pleasure your wife in ways the Kama Sutra could only dream about, blah blah blahnix, while I work in my basement getting a realtek driver ported to an older kernel so that I can get 0.0001% performance out of this 486! IN LUNIX!

And they’re right, you can recycle an old box with a couple of NICs and make yourself a very powerful router and firewall using something like Smoothwall, or, if you have a bit more grunt, Clarkconnect or Untangle.

But we’re talking corporate level stuff here. All the advantages of no vendor lock-in with all the performance of corporate level gear. And a Celeron with a few realtek cards from Dick Smith simply won’t cut it. Especially when you’re talking multiple gigabit ethernet connections which will completely flood an ancient PCI bus.

We specifically have a need for some 18 ports of routing, some of which can get by with plain old 10/100, but most if not all should be GbE if possible. So, you’re looking at a PCIe bus and maybe these, Intel Pro/1000 PT Quad PCIe cards. Also for the kind of theoretical maximum throughput, you’re looking at a CPU over 3GHz preferably.

Anyone got a 3GHz+ box with multiple PCIe slots just lying about? Didn’t think so.

So I was looking around for specific products that achieved this; looking specifically at SBC, PC/104, m-ITX etc with a scope for scalability, rack-mountability, and the ability to be used for other tasks such as graphing, logging, SNMP, DHCP, DNS caching and Transparent Squid proxying. I was disheartened to find no such devices at the easy end of a google search and contemplated rolling my own solution and on-selling it. There was plenty with lots of 10/100 ports, a few with GbE but only a PCI slot… none with quite the right combination.

Then I found this:

It’s almost perfect. Using a mix of PCI and PCIe, you could max that out with 10x GbE ports and 8x 10/100 ports. Throw in a mini-PCI VPN accelerator, a hard drive for logs and caching, then either hand craft OpenBSD or install pfsense. If you need more ports or redundancy, configure another one and link the two together using CARP.

I would also recommend maxing out the CPU at the fastest that the board can take, as well as maxing out the memory with a decent brand (crucial, mushkin). Sure, you could spec it lower and upgrade further down the track, but on the other hand will the components still be around when it comes time to upgrade? Max it out now and you should get a considerable life-time out of the device.

I’m still waiting on a local distributor to get back to me with a price, but it’s promising.

Article Tags>> | | |

Integrating Google Enterprise search in Opera and Firefox

July 4th, 2008

Ministry Of Sound - Bigger Than Big (Original Vocal Mix)

At work we have a Google Mini search appliance. Now they say that 70% of IT projects are destined for failure, however I’m not sure what their definition of failure is, but the Google Mini is firmly in my 30% camp, and I’m hoping to extend it to all of our global offices with Google Search Appliances building one consolodated enterprise search platform.

Now, one of the more enterprising developers at work developed an xpi for Firefox so that Firefox users could search against our Google Mini direct from their browsers. That was cool, I guess, but in Opera I can simply add a search engine and then search direct from my address bar. I can do that right now by going to the address bar and typing g < search term > to search against Google.

Now, to add a Google Enterprise appliance to Opera is very easy. First, go to your search home page and do a dummy search. A results page will appear with a likely very long URL. Copy that URL.

Now go to Tools > Preferences, then click on Add.

Opera Search Engine addition

Enter an appropriate name, and a keyword that you will remember that also is not being used (feel free to delete any unused ones to free up keywords, such as ’s’ for ’search’) and finally paste your results URL. Now look through your URL for q=whatever your search term was and change it to q=%s leaving the rest of the URL in place, so it might look something like this:

https://search.companyname.tld:443/search?q=%s&site=All&btnG=Search&entqr=0&ud=1&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=default_frontend&proxystylesheet=default_frontend

And that’s it. Go to your address bar and enter < keyword > < search term > (e.g. esg *.doc) and press enter. You’ll be taken straight to the results page of your Google Enterprise Search appliance.

To do this in Firefox is a bit more involved: Go to a search results page and bookmark it, you might like to organise the bookmark into a subfolder in your bookmarks menu. Then edit the bookmark, you might need to click on a “More” button to show the options you need to edit. As above, find your search term and replace it with %s. Then give the bookmark a keyword. That’s it! Test your keyword and some search terms directly in your Firefox address bar to see if it works.

The great news is that you can do this with practically any search engine. Let’s say you have an intranet with a search function that returns URL’s like http://intranet.companyname.tld/search.php?=searchterm, simply change the URL to http://intranet.companyname.tld/search.php?=%s and give it a keyword. Et Voila! You can now instantly search direct from the address bar.

Article Tags>> | | | |

Resourcefulness in the Datacentre

June 28th, 2008

Sting & Eric Clapton - It’s Probably Me

There are times when working in a server room where there is an equipment need that you simply cannot justify in either a business or common sense way. We recently had a project to move all of our fibre optic based equipment to the same rack cabinet, where we could seperate and secure the delicate fibre optic from the network, management network, and power cables.

Unfortunately, most equipment out there is for splicing, which is not what we want. We want a simple way to secure slack and ensure correct bend radius specs are adhered to. We went through a few potential vendors of cable management gear trying to find the best fibre management equipment for our realistically simple needs, and each of them had products, but in the few hundreds of US dollars. To make sure some fibre optic cable bends correctly. Yeah, just let that sink in for a while.

The other problem is that the non-technical people with control of the company purse strings did not consider this a critical expenditure, no matter how often we pointed out that fibre is extremely delicate, very expensive and also the most used equipment at present. And, should it fail, productivity will come to a screaming halt. Subsequently we won’t put out products on time, and people won’t get paid. “It is not a critical expense. My shoes/affair/drug-habit is a critical expense!” *sigh*

Today I went to my favourite hardware store: Mitre 10 Mega, and while buying other stuff for the new house I browsed around to see if anything inspired me. There’s actually a wide variety of options to suit this requirement, including large door handles, surface drainage, pulley wheels etc I eventually settled on some plain wheels, 150mm with a 38mm hub width.

Cutting off the rubber wheels reveals some concave hubs - perfect for keeping fibre in place, and at about the perfect size for a gentle bend radius that is well beyond the minimum spec, while not being too big for the rack cabinet for which it is intended. And the best thing: NZD$22 for two. If your mounting method allowed, you could potentially buy one wheel, cut it in half on a bandsaw (or similar) and use it like that to manage the bends.

My plan is to ream out the holes that I have drilled in the spokes, and use them to pass through some velcro cable ties to make sure that the fibre stays on the spools. I’m still undecided on how to affix it to the rack cabinet - either with a nut and bolt or with velcro, of which we have a large boxful.

Expect an update when this is put into production :)

fibre spools in progress

What cost-saving common-sense solutions have you readers ever put in place in a production environment?

Article Tags>>

Getting ahead at work: The beauty of syslogs

June 26th, 2008

Pendulum - 9000 Miles

So yesterday at work while sipping away at my godawful morning coffee, a ticket came into our fault logging system. Reverse DNS lookups, it said, were a little on the slow side. Oh great, I thought, children dying of starvation in third world countries, I’m all out of whiskey, and all this user can obsess about is DNS response times.

So I replicated the fault. Getting more interested, I jumped onto our primary DNS server and checked top and ps, nothing seemed out of the ordinary, so I restarted bind and watched what happened. For about ten seconds, everything behaved properly, then the lookups slowed back down again.

Double Ewe Tee Eff? rm /home/user/rawiri/sarcasm, now I’m interested.

So I tail -f‘ed /var/log/bind9-query.log and I was surprised to see that our ticketing system server was hammering DNS, trying to lookup for the same IP (192.168.0.15 - important to the story) a few thousand times per second. So I jumped onto the ticketing server, which also doubles as a syslog server, and issued a grep -r 192.168.0.15 /var/log/*

This spat up thousands upon thousands of results, from logs stored there by our firewall, sourced from an IP range assigned to our office in Jakarta, trying to get in touch with 192.168.0.15 on port 2048. Something in Jakarta was hammering our firewall, which was logging this on our ticketing server, which was hammering our DNS server trying to figure out who or what 192.168.0.15 is. Cool.

So I jumped onto the two boxes in our Jakarta office (at about 3am their time) and noticed that our Jakartan IT colleague had setup a peered/sibling Squid proxy configuration, which was very cool, however netstat -ap | grep 2048 on both boxes revealed that Squid was doing the dirty on this port. So I went into /etc/squid/ and issued a grep 192.168.0.15 *, the results were amusing:

wccp_router = 192.168.0.15

Back in the day, we had a cisco router on that IP address, and our NZ Squid server was configured to point to it on the wccp protocol to offer some transparency. That router has been gone for several months now, but the squid.conf was never updated to match this. Our Jakartan colleague had inherited our squid.conf file to setup his first proxy, and that was trying to poll the old cisco router. The wccp heartbeats fell into the background chatter of the firewall logs, and it wasn’t until the peered proxy configuration was put in place that things really started hammering away: the secondary proxy would try to heartbeat via the primary proxy, which would also try to heartbeat, resulting in an avalanche of wccp traffic slamming into our firewall.

Disabling that setting on two proxies in Jakarta, and two proxies in NZ, before restarting squid on the lot and voila! DNS in NZ started behaving again.

That was a pretty impressive catch, well I thought at least. But today I caught out a three-way IP conflict that was preventing a VPN from coming up, as well as an nfsmapid issue that was affecting all of our Solaris boxes, all by watching the appropriate logs. Three big catches, two days.

With these outstanding issues sorted, we were able to hammer away at dependant faults and got a lot of stuff resolved and out of our too-hard basket.

Related: To anyone wanting to try out the Octopussy log frontend on Debian - beware! It’s really designed to be a standalone product. If you install it on a server that has Apache configured for multiple services already, you might find that it will break stuff, remove the default site and rewrite your conf files.

Article Tags>> |

A sad day: The passing of George Carlin

June 23rd, 2008

Pendulum - 9000 Miles

Today was a pretty good day at work, with a lot of smaller jobs out of the way and a whole new feel around the office.

I got home to find out that my counter-culture superhero, George Carlin, had died at the age of 71.

Well, that sucks. He was one of my favourite comedians: I have an extensive library of his work, and I was hoping to see him perform on stage before he passed, but alas, it looks like that’s not going to happen now. Yes, I would have even put up with America’s airport security to see George Carlin at work.

George, if I may call you George, sir, this whiskey’s for you.

A waity weight: How to lose weight in 1 easy step

June 20th, 2008

Dirty Vegas - Days Go By

Weight on a chemists scales on the Champs-Elysées in Paris: 118kg
Weight this morning on my calibrated scales: 93.9kg
Average loss: roughly 3kg a month or so.

Diet: Still as awful as ever, with fast food and junk food, however with an increased metabolism I’m eating smaller servings. Ok, I’ll be honest, I have been having something for breakfast every day, no matter what - even McDonald’s, but usually flavoured oatmeal. The point behind breakfast is getting your body chemistry, blood sugar, protein etc levels up and ready for the day. This causes you to average out your intake over the course of the day, or at least it should.

I’ve also been having slightly better dinners and far less alcohol consumption. So I’m not packing my gut with an over-abundance of starch, sugars, empty carbs/cals or fat.

Exercise: Same as always; the walking during my commute to and from work everyday, so.. maybe 3-4km every day. I’m now even more motivated to get back on the bike though, even taking this morning’s unfortunate news into account.

Weight Retention: Seems to be stable, judging by the other readings on my fangdangled scales. This means I can jump on my bike and shed some kilos quite easily in a short time. This, by the way, is the secret behind the claims on those infomercial exercise machines:

lose a billion pounds in 12 days or your money back!

Yeah… if you start exercising, one of the first things to go is water retention - two to three weeks of rapid shedding followed by a steep drop off in loss, which I think is often a big demotivator - because people see diminishing returns and don’t understand why.

Method:
Step One: Learn and embrace techniques to increase your metabolism.

Article Tags>>

Moved house and still no intergeek

June 18th, 2008

Ministry Of Sound - Greg, Jeroenski & Roog - My Mind is Twisted

Well moving house took no time at all - a lot of stuff went to the Salvation Army across the street, I still have a bunch of stuff in the garage to sift through, but on the whole it went like clockwork.

Except, of course, for the internet connection. We got the WiMax antenna down, but the ability to move the ladder from the old place to the new place eludes us, so I have not been able to get onto the new roof and set it up. I’m posting this from work, because there’s a lull in my otherwise flat-out schedule.

So now I’m waiting on my older brother to get his van back from the shop, because I have to move a rack cabinet as well. Then we can get the ladder from the old place, then I can find a sunny moment to jump on the roof and setup the intergeek, and then all will be well in the world.

I have noticed though that I’m not really internet addicted, life goes on without chatting to people in DC or IM. What does suck though is if I’m potting around the house and I have an idea that I’d like to research - it sucks not being able to sit down and google away. I’ve also noticed that I’m a hypocrite: where workmates bemoaning not being able to access work from home would make me roll my eyes and suggest they get a life, I too have noticed that it’s a lot harder to clear out the night-time emails from my northern hemispherean colleagues.

So, hopefully I’ll get the internet connection back up and running sometime this week, then I can do some updates here

� Previous Entries