February 2009
Mon Tue Wed Thu Fri Sat Sun
« Jan   Mar »
 1
2345678
9101112131415
16171819202122
232425262728  

Month February 2009

Block An IP Range Using IPTables

One of the great things about hosting a website on a Virtual Private Server (VPS) is root access. This gives a website administrator the power to do a lot of interesting things. For example, one can easily block internet traffic from blog spammers using the built-in Linux packet filter iptables.

By way of example, let’s say a lot of comment spam begins to appear from an IP address like 194.8.74.0.

First, look up the owner of that address (and the associated address range) using the whois databases at ARIN or RIPE. Their entire address range — ie, every IP address they are ever likely to use — will be shown.

In this example, the entire address range is 194.8.74.0 – 194.8.75.255.

Under Ubuntu, blocking a port range is pretty simple. Start by backing up your current iptables rules and create a test rule set.

[root@agrajag]$ iptables-save > /etc/iptables.up.rules
[root@agrajag]$ iptables-save > /etc/iptables.test.rules
[root@agrajag]$ vim /etc/iptables.test.rules

In vim, add this line to the top of the test rule set to block the address range in question:

-A INPUT -m iprange --src-range 194.8.74.0-194.8.75.255 -j DROP

Then, save the new rules to the running iptables:

[root@agrajag]$ iptables-restore < /etc/iptables.test.rules

Last, list the running iptables rules and verify:

[root@agrajag]$ iptables -L

You should see something like this:

DROP       all  --  anywhere             anywhere            source IP range 194.8.74.0-194.8.75.255

That's all it takes to enjoy a spam-free existence.

(Obviously, I could use the Akismet plugin to accomplish the same thing. However, this has the advantage of dropping bad traffic before it's even processed by the web server. Thus saving server resources for more important things.)

The First Dinosaur On The Moon

200_the-first-dinosaur-on-the-moon

Now available as desktop wallpaper in three sizes: 1280×1024, 1680×1050, and 1920×1200.

Toward Patterns of Creativity by Merlin Mann

Merlin Mann is on to something with his thoughts on creativity. But then, I’ve advocated daily creative work for a couple of years now to anyone who would listen.

Daily creative efforts are a Jonbar Hinge.

4 Years, 15 Notebooks

20090220_the-power-of-this-battlestation_thumb

Not pictured: The notebook in which I’m currently working.

A Design Observer post regarding Michael Beirut’s notebooks, Kate’s amazing photographic retrospective, and Merlin Mann’s thoughts on creativity recently got me thinking about my own growing archive of work.

Like Mr. Beirut, my mind fills with questions when re-examining the worn pages of these tiny notebooks — filled as they are with hurriedly scribbled notes and half-finished sketches. Recorded within them is a kind of personal renaissance, an arc of experience, the daily curation of a creative habit.

The first few — dating from 2005 — are filled with jotted notes for kung-fu classes (written in a particularly shaky I’m-too-worn-out-to-write hand), games of Ravenloft played with friends, sporadic, tiny, humorous illustrations made as time permitted. Throughout 2006 and 2007, a greater and greater portion of these notebooks are given over to personal illustrations and unsent letters.

By mid-2007, I am drawing — more or less — every single day. Escaping into one story or another. Reviewing those images now, I clearly recall everything about them and the setting in which they were created: waking at 5AM into the darkness of the little apartment, the comforting smell of wood smoke from a bakery across the road, the brilliant light and heat of summer afternoons, isolation and loss, a terrible flu, a circuitous resurrection through online communication, Planetes, and new stories.

I feel such chronicles are important. They’re maps of our internal territory, a perpetual well of inspiration and guidance, a reminder of what we’ve survived, what we’ve accomplished. A testament to the fact we just keep showing up.

1966 10th Soviet Antarctic Expedition Stamps

1966_10th_soviet_antarctic_expedition_thumb

Yet more Antarctic expedition stamps! These appear to relate to the 10th Soviet Antarctic Expedition. According to Wikipedia, the 10th Soviet expedition was led by M.E.Ostrekin and I.G.Petrov.

Uplink Established!

uplink_established_thumb

1965 CCCP Aircraft Stamps

1965_aircraft_thumb

The various Soviet aircraft depicted in these stamps: Antonov An-22 (the world’s largest production aircraft until the advent of the C-5 Galaxy), Beriev Be-10 (jet-powered flying boat and patrol bomber), Antonov An-24, the Mil Mi-10 (a flying crane helicopter), and the Tupolev Tu-134.

The Man With The News

the_man_with_the_news_thumb

1965 CCCP Dog Stamps

1965_dogs_thumb

Various Soviet stamps depicting dogs from 1965. How many can you recognize?

Juan Enriquez On The Ultimate Reboot

This is something I’ve been expecting to see: a speculative viewpoint on the near future which accounts for both the current economic malaise and pending major advances in human technology. I don’t completely agree with some of assertions made in the presentation (for example, the hyperinflation of the dollar in the near term), but Mr. Enriquez does believably tie together the narratives supplied by Nassim Taleb, Craig Venter, Vernor Vinge, and Ray Kurzweil — among many others — in a humorous, thoughtful manner.