<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Information Systems Grad School</title>
        <link>http://cw.sampas.net/blog/</link>
        <description>Information Systems grad school from the perspective of an MCSE-CISSP geek.</description>
        <language>en</language>
        <copyright>Copyright 2010</copyright>
        <lastBuildDate>Sat, 07 Aug 2010 19:48:46 -0500</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>Updated Special Use Airspace KML</title>
            <description><![CDATA[<p>After losing a disk, I finally got around to rebuilding the database and scripts to generate KML files from the FAA's NFDC subscription. First to be redone is the<a href="http://cw.sampas.net/kml/US_Special_Use_Airspace_July_29__2010_-_September_23__2010.kml"> Special Use Airspace KML</a>. Microsoft's SQL Server 2008 does a far better job of importing files than SQL 2005 did.  The <a href="http://cw.sampas.net/kml">airspace KML archive is here</a>.</p>]]></description>
            <link>http://cw.sampas.net/blog/2010/08/updated-special-use-airspace-k.html</link>
            <guid>http://cw.sampas.net/blog/2010/08/updated-special-use-airspace-k.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Aviation</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">GIS</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">KML Airspace</category>
            
            <pubDate>Sat, 07 Aug 2010 19:48:46 -0500</pubDate>
        </item>
        
        <item>
            <title>Upgrading to MT 5: Comment Login via...</title>
            <description><![CDATA[<p>I just upgraded to Movable Type 5, and I'm testing the different comment sign-in possiblities. MT5 supports OpenID, LiveJournal, Vox, TypePad, Google, Yahoo, AIM, Wordpress.com, Yahoo!JAPAN, livedoor, and Hatena. You'll see these choices if you hit the sign in link below.</p>

<p>I have also enabled SSL with a self-signed cert, so if you're shy about signing in to comment via http, just switch it to https by typing the s in your link bar. And no, I have not found a way to globally change signins to SSL in MT 5.</p>]]></description>
            <link>http://cw.sampas.net/blog/2010/06/upgrading-to-mt-5-comment-logi.html</link>
            <guid>http://cw.sampas.net/blog/2010/06/upgrading-to-mt-5-comment-logi.html</guid>
            
            
            <pubDate>Tue, 08 Jun 2010 12:36:25 -0500</pubDate>
        </item>
        
        <item>
            <title>How to dial up encryption so high in Apache that it breaks IE and Chrome</title>
            <description><![CDATA[<p>So you want to require strong encryption in Apache's httpd 2.0? So strong that Firefox is the only browser that can connect?<br />
In /etc/httpd/conf.d/ssl.conf, edit the two lines as below:<br />
SSLProtocol TLSv1<br />
SSLCipherSuite HIGH<br />
Then go to <br />
/etc/httpd/conf/httpd.conf and edit your <PRE>&#60;Directory> &#60;/Directory> </PRE>to include the following line:<br />
    SSLRequire %{SSL_CIPHER_USEKEYSIZE} >= 256<br />
Then <br />
apachectl configtest<br />
to check for typos.<br />
Finally<br />
/etc/rc.d/init.d/httpd restart</p>

<p>What this does is make browsers do <br />
TLSv1 DHE-RSA-CAMELLIA256-SHA only.</p>

<p>You can then watch your SSL handshakes fail from IE and Chrome. If you want to require strong encryption across browsers, edit ssl.conf to look like this:</p>

<p>SSLProtocol TLSv1<br />
SSLCipherSuite AES256-SHA</p>

<p>Then you'll have reasonably strong encryption.</p>]]></description>
            <link>http://cw.sampas.net/blog/2010/06/how-to-dial-up-encryption-so-h.html</link>
            <guid>http://cw.sampas.net/blog/2010/06/how-to-dial-up-encryption-so-h.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Security</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Security</category>
            
            <pubDate>Fri, 04 Jun 2010 16:14:45 -0500</pubDate>
        </item>
        
        <item>
            <title>How Microsoft does security monitoring.</title>
            <description><![CDATA[<p><a href="http://technet.microsoft.com/en-us/library/ee943799.aspx">Great article by Microsoft</a> on their internal monitoring structure and organization.</p>]]></description>
            <link>http://cw.sampas.net/blog/2010/02/how-microsoft-does-security-mo.html</link>
            <guid>http://cw.sampas.net/blog/2010/02/how-microsoft-does-security-mo.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Microsoft Security</category>
            
            <pubDate>Tue, 02 Feb 2010 08:49:21 -0500</pubDate>
        </item>
        
        <item>
            <title>Commuter Bicycle Review: Breezer Uptown 8</title>
            <description><![CDATA[<p>After a year-and-a-half and over 1,000 miles on the <a href="http://www.breezerbikes.com/bike_details.cfm?bikeType=town&frame=d&bike=uptown">Breezer Uptown 8</a>, I thought I'd write a review. There is a dearth of material on <a href="http://www.bicycling.com/article/1,6610,s1-1-324-15818-1,00.html">commuter bicycles</a> and bicycling. The trade press is advertiser-focused and almost all of their bicycle reviews are non-critical and improve as the price increases. Most bicycle stores don't focus on the commuter cycle market segment. If one store started doing it in or around DC, I suspect they'd get a hardcore following pretty quick. There's a rush-hour on the <a href="http://www.cctrail.org/">CCT</a> even in the winter. (<a href="http://gearjunkie.com/winter-bike-commuting-10-tips-to-ride-safe">Minneapolis claims 3,000 winter bicycle commuters</a> -- they plow 50 miles of bicycle trails there.)</p>

<p>First: my ride. On days that I ride (I'm not a 5-day-a-week rider yet), I ride seven miles (mostly downhill) into work in 35 minutes. That same ride home (mostly uphill) takes about 45 minutes. I carry a laptop and a full set of work clothes each way in panniers on a rack.</p>

<p>Overall, the Breezer Uptown 8 is a great bicycle. However, there are some things to nit-pick about, mostly because commuter bicycles are relatively new in the United States. Nobody reviews them because they're not sexy. </p>

<p>First off, the Uptown is comfortable. I ride in an upright position. The seatpost is suspended, and overall it's a pleasure to ride. However, it's not a fast bike. It's got full fenders and a fully-enclosed chaincase. The only place I get splashed in rain is my feet. </p>

<p>The built-in Shimano front hub generator and lights are great. The headlight is pretty bright. I did get a <a href="http://www.niterider.com/#">Niterider</a> light because the trail is not lit and pitch black. The rear light connections are weak and the light failed after going over a few bumps. Some new wire fixed that. The generator does add a little drag when it turns itself on. It's great having lights without ever having to worry about a charger or batteries. I have two Planet Bike flashies (one works consisently) mounted on my panniers. That worked out especially well after I wrecked and my black laptop pannier fell off and onto the dark, unlit trail at night.</p>

<p>The stock tires, Schwalbe City, are heavy. I replaced the front with a Conti 1" which works fine. The rear tire I haven't replaced because the rear wheel is a pain to take off. You need to shift to 4th gear, remove the tiny screws in the chaincase, and then use a 15mm wrench. Not something to do on the trail after dark.</p>

<p>You can see photos of my <a href="http://cw.sampas.net/gallery2/v/breezer/">nitpicks here</a>.</p>

<p>I bought the bike at <a href="http://www.bikesatvienna.com/products">Bikes at Vienna</a> in Vienna, and get some help with maintenance from <a href="http://griffincycle.com/">Griffin Cycle</a> in Bethesda. There's nothing wrong with the service at Bikes at Viennna, it's just that Griffin Cycles is close to home.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/12/commuter-bicycle-review-breeze.html</link>
            <guid>http://cw.sampas.net/blog/2009/12/commuter-bicycle-review-breeze.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Commuting by Bicycle</category>
            
            <pubDate>Wed, 02 Dec 2009 10:24:07 -0500</pubDate>
        </item>
        
        <item>
            <title>Airspace KML files updated for the December 17 cycle</title>
            <description><![CDATA[<p>I updated the airspace KML files again -- skipping one release. The latest covers from December 17, 2009 throughFebruary 11, 2010. You can find them in the <a href="http://cw.sampas.net/kml/">archive here</a>.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/11/airspace-kml-files-updated-for.html</link>
            <guid>http://cw.sampas.net/blog/2009/11/airspace-kml-files-updated-for.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Aviation</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">GIS</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">airsapce kml</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">kml</category>
            
            <pubDate>Sun, 22 Nov 2009 14:30:18 -0500</pubDate>
        </item>
        
        <item>
            <title>Migrating Movable Type and Gallery2 to a new (Fedora) server</title>
            <description><![CDATA[<p>I loved my Dell 1750 server. It has plenty of power and a great <a href="http://www.3ware.com/products/serial_ata8000.asp">3Ware RAID card</a>, two 500 GB RAID-1 drives, 4 GB RAM, and ran Red Hat Linux. I bought it from the <a href="http://www.dell.com/outlet">Dell Outlet</a> site several years ago when my condo fee included electric. Since then I have moved. I pay my own electric bill, and my 1750 <a href="http://www.powermeterstore.com/p1206/watts_up_pro.php">consumes 150 watts at idle</a>. When I publish with <a href="http://www.movabletype.com/">Movable Type</a> or <a href="http://gallery.menalto.com/">Gallery</a>, power consumption exceeds 200 watts. I pay $0.150845894 per kilowatt-hour. (That's summing the separate generation, transmission, distribution, demand-side surcharge, and adding the gross-receipts tax. Pepco doens't make it easy to figure out what you're paying.) With a thirty-day month, that's 108 kwh, which comes to $16.29135658. That's $16/month, just for idling. And that doesn't use the noise of the server in my office or the additional AC required in summer. </p>
 
<p>That may seem expensive, but it's far cheaper than getting that much server capacity at <a href="http://www.rackspace.com/managed_hosting/configurations.php">Rackspace</a>. However, I don't need that much capacity. I can trade processor power for power savings, keep the disk space and RAID card, and switch to an Atom-based server. My current FreePBX Atom server runs at 40 watts with an analog card powering two FXS modules. I bet I can match that on a new server. I'd get the new <a href="http://www.supermicro.com/newsroom/pressreleases/2009/press050409.cfm">Supermicro Atom Server</a>, but it has space for only one 3.5 inch hard drive. I need two. Thus I'll be using another miniITX case. In the meantime, everything's running on another old Dell tower box.</p>

<p>How did I move it? First I though reinstalling all the software from scratch would be a good idea. I'd get a nice clean, efficient build. But that took way too long, and I'd have to re-customize my templates and tweaks. I had MySQL backups running for a while, why not start testing the restores? I used rsync:<br>
<pre><blockquote>rsync -avz /var/www/ -e ssh:user@mynewserver /var/www/</blockquote></pre><br>
(Note: Please study <a href="http://samba.org/rsync/">rsync syntax</a>. Those /  at the ends make a big difference.)
It worked. Next I had to tweak the new httpd.conf file. I couldn't just copy the old one, because I was using the latest Apache version. But I could use almost all of the old file. I just needed to adjust the modules it loaded, because several have changed names. </p>

<p>Then I restored the databases: <p>
<pre><blockquote>mysql -u root -p</blockquote></pre><br>
	enter your password. (You ARE using a PW for MySQL root, aren't you?)<br>
<pre><blockquote>mysql> create database mynewdb</blockquote></pre><br>
	then <br>
<pre><blockquote>mysql> quit;</blockquote></pre><br>
	then<br>
<pre><blockquote>$ mysql -u root -p [mynewdb] < [backupfile.sql]</blockquote></pre><br>

But that generally does not restore your user privs on the db. Back to mysql:<br>
<pre><blockquote>mysql -u root -p</blockquote></pre><br>
	then<br>
<pre><blockquote>mysql> use mynewdb;<br>
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'localhost' <br>
IDENTIFIED BY 'pAssW0rd' WITH GRANT OPTION;<br>
mysql> flush privileges;</blockquote></pre><br>
	Don't forget the above step or you'll need to restart MySQL to get it to work.
<pre><blockquote>mysql> quit;</blockquote></pre><br></p>

<p>Then double check that the user and pass from above match your config files. </p>

<p>Finally, test your applications. Gallery2 and MovableType worked fine. Your milage may vary. My office is almost silent now.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/11/migrating-movable-type-and-gal.html</link>
            <guid>http://cw.sampas.net/blog/2009/11/migrating-movable-type-and-gal.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Random</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">server migration</category>
            
            <pubDate>Fri, 20 Nov 2009 09:44:37 -0500</pubDate>
        </item>
        
        <item>
            <title>Using Logparser to dump Bluecoat log files into SQL</title>
            <description><![CDATA[<p>Working with Bluecoat files in the raw can be time-consuming. Findstr and grep only work so fast. Windows grep is slow. I know SQL syntax OK, so I tend to dump logfiles into databases to analyze them for activity. There are certainly other ways to do it, such as using a reporting tool for Bluecoat. (<a href="http://www.splunk.com">Splunk</a>'s free Bluecoat application, e.g.).  </p>

<p>Theoretically, Bluecoat logfiles are the same as W3C web server log files that logparser can consume via the -i:W3C directive. </p>

<p>You can see the fields in a Bluecoat log below. </p>

<p>#Fields: date time time-taken c-ip cs-username cs-auth-group x-exception-id sc-filter-result cs-categories cs(Referer) sc-status s-action cs-method rs(Content-Type) cs-uri-scheme cs-host cs-uri-port cs-uri-path cs-uri-query cs-uri-extension cs(User-Agent) s-ip sc-bytes cs-bytes x-virus-id</p>

<p>For some reason, Bluecoat leaves two spaces between cs(Referrer) and sc-Status, so all the columns to the right of sc(Referrer) past that will be one off. BlueCoat also leaves spaces in cs-categories and surrounds them with quotation marks, so you need to specify -dQuotes:on. Logparser doesn't have a quick and easy way to handle the double-spaces issue, so I wrote a VB Script to handle it. (VBScript is pretty quick at text handling and it's much faster than using search and replace in WordPad or Notepad on a 500-1000 MB File.)</p>

<p>Here's the <a href="http://cw.sampas.net/blog/cleanLog.txt">VBScript</a>:<br />
'start</p>

<p>Set objFSO = CreateObject("Scripting.FileSystemObject") <br />
'change this line to wherever you want to read the input from.<br />
Set objTextFile = objFSO.OpenTextFile("c:\myBluecoatlog.log",1) <br />
Set objNewFile = objFSO.CreateTextFile("c:\myCleanBlueCoatlog.log")<br />
Do Until objTextFile.AtEndOfStream</p>

<p>	myString = objTextFile.Readline<br />
	objNewFile.WriteLine(Replace (myString, "  ", " "))<br />
Loop<br />
'end vbscript<br />
Here's the <a href="http://cw.sampas.net/blog/bluecoat.sql">logparser </a>file:<br />
-------------------start<br />
SELECT	TO_LOCALTIME(TO_TIMESTAMP(date, time)) AS date,<br />
		time-taken,<br />
		c-ip,<br />
		cs-username,<br />
		cs-auth-group,<br />
		x-exception-id,<br />
		sc-filter-result,<br />
		cs-categories,<br />
		cs(Referer) AS Referer,<br />
		sc-status AS scStatus,<br />
		s-action,<br />
		cs-method,<br />
		rs(Content-Type) AS ContentType,<br />
		cs-uri-scheme,<br />
		cs-host,<br />
		cs-uri-port,<br />
		cs-uri-path,<br />
		cs-uri-query,<br />
		cs-uri-extension,<br />
		cs(User-Agent) AS UserAgent,<br />
		s-ip,<br />
		sc-bytes,<br />
		cs-bytes,<br />
		x-virus-id</p>

<p>INTO   BlueCoat4<br />
FROM   c:\myCleanBlueCoatlog.log<br />
------------------end<br />
And here's the command line for logparser. (Save the logparser file as c:\scripts\log\bluecoat.sql)</p>

<p>logparser file:c:\scripts\log\bluecoat.sql -i:W3C -o:SQL -server:sqlservername -database:BLUECOAT -createtable:ON -dQuotes:ON</p>

<p><br />
Statistics:<br />
-----------</p>

<p>Elements processed: 613076<br />
Elements output:    613076<br />
Execution time:     241.20 seconds (00:04:1.20)<br />
About 2500 lines/sec. Processor utilization is almost zero for SQL and logparser, so it's all about disk time.</p>

<p>The above is from a file that's 310,935,417 bytes large. That means BlueCoat logs are about 507 bytes per line, or 0.5k per line before compression. The last time I checked BlueCoat gz compression, it was about 15% of the original file size. Compressed, the line would cost you 76 bytes.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/10/using-logparser-to-dump-blueco.html</link>
            <guid>http://cw.sampas.net/blog/2009/10/using-logparser-to-dump-blueco.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Security</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">bluecoat</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">logparser</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">sql</category>
            
            <pubDate>Fri, 30 Oct 2009 17:23:51 -0500</pubDate>
        </item>
        
        <item>
            <title>How I compiled Darkice</title>
            <description><![CDATA[<p>Usually, installing an application from source on Linux/Solaris/BSD is easy:<br />
<ol><br />
	<li><strong>./configure --help</strong> (Always look at the help to see the options. It makes a difference if, for instance, you compile php without support for MySQL.)</li><br />
        <li><strong>./configure</strong> </li><br />
        <li> <strong>make</strong> </li><br />
        <li> <strong>make install </strong></li><br />
</ol></p>

<p>However, with Darkice, it's prerequisites are numerous, and Darkice's configure doesn't find it's prereqs if they're installed in the standard locations. I've done this twice so far without documenting how I did it, so this time, I'm writing it down.</p>

<p>Here's my configure line:<br />
<strong>./configure --with-vorbis-prefix=/usr/local/ --with-lame-prefix=/usr/local/lib/ --with-twolame=prefix=/usr/local/lib/ --with-faac-prefix=/usr/local/lib/</strong></p>

<p>Then you'll get this when you launch darkice:<br />
 darkice: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory</p>

<p>So you need to link that, and when you link that you'll get the next error, so here are both:<br />
<strong>ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libfaac.so.0 /usr/lib/libfaac.so.0.</strong><br />
If you're wondering what links you're missing, try <br />
<strong>ldd /usr/local/bin/darkice</strong><br />
If one of the links to the libraries reads "missing" then that's the one you need to link.</p>

<p>Yum install darkice might work for you, but then again, if you need all the features, it probably won't. <br />
Prereq links are below. Generally ./configure, make, make install works well with all of them, but you really want to track exactly where each lib gets installed -- usually /usr/local/lib/.<br />
<a href="http://sourceforge.net/projects/lame/files/lame/">Lame</a><br><a href="http://sourceforge.net/projects/twolame/files/">Twolame</a><br><a href="http://www.xiph.org/downloads/">libogg</a><br><a href="http://www.xiph.org/downloads/">libvorbis</a><br><a href="http://sourceforge.net/projects/faac/">faac</a><br><br />
Preqrequisite for faac or twolame -- I forget which:<br><a href="http://www.mega-nerd.com/libsndfile/">libsndfile</a><br>Prereqs I didn't neeed:<br><a href="mailto:http://www.alsa-project.org/main/index.php/Download">Alsa</a><br><a href="http://jackaudio.org/download">Jack</a></p>]]></description>
            <link>http://cw.sampas.net/blog/2009/10/how-i-compiled-darkice.html</link>
            <guid>http://cw.sampas.net/blog/2009/10/how-i-compiled-darkice.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">GIS</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">broadcast</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">darkice</category>
            
            <pubDate>Mon, 12 Oct 2009 22:13:07 -0500</pubDate>
        </item>
        
        <item>
            <title>How to tell when someone Googles you</title>
            <description><![CDATA[<p><strong>Case 1: You Google me and click on my page</strong></p>

<p>Yes, I'm using google as a verb. If you Google me and click on one of my pages, my web server logs the information: <br />
1.2.3.4 - - [01/Oct/2009:10:23:41 -0400] "GET / HTTP/1.1" 200 7186 "http://www.google.com/search?hl=en&source=hp&q=larry+s&aq=f&aqi=g10&oq=&fp=7d15299a959dbb33" "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)"</p>

<p>As you can see, I get your IP address, a date, an offset to Universal Time (-0400), a verb (GET, in this case / means my default site page), a status code (200=OK), and a referrer. From the referrer, I can tell you Googled me with the phrase "larry s". Finally, I also get some information about the browser you used, Firefox, and the operating system, Windows XP with service pack 2. There's a chance you may have used a anonymizing proxy, but I'd still get an entry. (Generally, <a href="http://www.anonymizer.com/">Anonymizer</a> says "TuringOS," so I know it's them.)</p>

<p><strong>Case 2: You Google me and don't click on my page.</strong></p>

<p>That's more difficult but not impossible, because I have a Google AdWords account. I bought my own name as a keyword. Google AdWords works by selling keywords for search insertion. It's an open market, with the second-highest bidder winning in a dutch auction that is Google's revenue machine. When you buy a keyword, you get two measures back from Google: <br />
<ol><br />
	<li>how many impressions it got (viewing) </li><br />
	<li>how many clickthroughs it got. (someone clicks on the ad) </li><br />
</ol><br />
A keyword ad's success is measured by the ratio of impressions to clickthroughs. The more clickthroughs per impression, the better. So if you don't click on my ad link, which I have made irresistable by promising dirt on me, I still know that someone Googled me, because the impression counter increments with each search. If you click on a regular page on my server rather than the keyword ad (Google calls this "organic"), we're also back to case one above. If you don't click on any of my  links, I don't get any of the details from case one.</p>

<p><br />
And that's how I know that you Googled me. If you're wondering if you've been Googled, but don't have a web site with logs you can comb through, or don't want to set up a Google AdWords account, try <a href="https://adwords.google.com/select/KeywordToolExternal">Google's external keyword tool</a>. Just don't forget to un-check the synonyms box.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/10/how-to-tell-when-someone-googl.html</link>
            <guid>http://cw.sampas.net/blog/2009/10/how-to-tell-when-someone-googl.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Random</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">Google AdWords</category>
            
            <pubDate>Sun, 04 Oct 2009 23:22:23 -0500</pubDate>
        </item>
        
        <item>
            <title> Did you know October is Cybersecurity Awareness Month?</title>
            <description><![CDATA[<p>Niether did I. Hardly anyone knows, because few people take DHS seriously, and nobody outside of the Federal government has said "Cyber" since the nineties. I attended a computer security conference recently and listened to a panel of current and former federal officials speak about "Cyber" security. They might one day be able to secure government systems, but they're a long way off from protecting you and me online. One of the few things they can do to protect us is to stage a public awareness campaign -- thus we have Cybersecurity Awareness Month.</p>

<p>Why doesn't Google have a<a href="http://www.google.com/logos/"> Cybersecurity graphic</a>? Online providers don't want you to think about security. Banks don't want you to think about online security. If you thought about security when you signed up for online banking, you might not do it. Without the regulatory agencies, the banks would leave you liable for all losses -- event those caused by the bank's own security lapses, <a href="http://www.cl.cam.ac.uk/~rja14/wcf.html">as happened in the UK</a>.</p>

<p>A banking-industry consultant at the same conference said two striking things:<br />
<ol><br />
	<li>Bank marketers fought tooth and nail against <a href="http://www.ffiec.gov">FFIEC regulations</a> requiring two-factor authentication for online banking logons. (That means you need your password AND something else to log on.) Banking marketers want to make easy for you (or a hacker) to log on and transfer funds.</li><br />
	<li>Banking customer service representatives are just as dumb as the customers when it comes to online security.</li><br />
</ol></p>

<p>If your bank account gets hacked, your bank isn't going to be of much help. They might get some money back, but in most cases, they won't. Your money's gone. The same goes for any other account of yours that gets hacked, whether it's Facebook, GMail, or Yahoo. Nobody's going to help you much.</p>

<p>So take the time now to do a few things to ensure your online security.<br />
<ol><br />
	<li>Use antivirus and make sure it's up to date. If you're on Windows, there are several free antivirus packages available, such as <a href="http://www.microsoft.com/Security_essentials/">Microsoft Security Essentials</a> , <a href="http://www.avast.com/eng/download-avast-home.html">Avast </a>, and <a href="http://www.free-av.de/en/trialpay_download/1/avira_antivir_personal__free_antivirus.html">Avira </a>. Password-stealing viruses infect computers every day. If you want to tweak out on antivirus effectiveness comparisons, <a href="http://www.av-comparatives.org/">go here</a>.</li><br />
<li>Patch your computer. It doesn't matter if you're windows, mac, unix, linux or bsd. Patch. </li><br />
	<li>Change your banking password. Change your email password, because all your password resets go there. Change your security questions, because those reset your passwords. If you're using the same password from college, and your college system gets hacked and reveals your password, then they <em>will</em> find your other accounts.</li><br />
	<li>Realize that you are a hundred times more likely to fall for a phishing email than you are to click on an online ad. (Phishing emails are now so common that you might get one that coincides with a recent transaction, making you think it's real.) Now that banks have increased their online security, the hackers are targeting you -- the soft spot.</li><br />
	<li>Also realize there are are now office buildings full of professional hackers working in shifts trying to get to your money. (Another panelist, <a href="http://www.cyopsis.com/company/executive-team/15">Chris Roberts</a>, talked about research he had done observing the building in an unnamed country in Eastern Europe. Some of his work is available on <a href="http://www.stophcommerce.com/">McAfee's hacker-commerce site</a>.)</li><br />
<li>Don't use <a href="http://pogue.blogs.nytimes.com/2007/01/04/04pogue-email/">unsecured wireless networks</a>. Secure your home wireless network. (Replace WEP encryption with <a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">WPA or WPA2</a>.)<br />
</li></p>

</ol>
]]></description>
            <link>http://cw.sampas.net/blog/2009/10/did-you-know-october-is-cybers.html</link>
            <guid>http://cw.sampas.net/blog/2009/10/did-you-know-october-is-cybers.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Security</category>
            
            
            <pubDate>Thu, 01 Oct 2009 09:04:30 -0500</pubDate>
        </item>
        
        <item>
            <title>Online Backups with Backblaze: Does it work?</title>
            <description><![CDATA[<p>Just because disk space is getting cheap, don't think that storage is cheap. A referral from <a href="http://slashdot.org/">Slashdot</a> to <a href="http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/#more-150">Backblaze's blog</a> charted the situation out accurately. The cost of a petabyte of storage on raw SATA hard drives is $81,000. On Amazon and EMC, it's $2.8 million. If Backblaze really could create their own enterprise storage devices, then it would be possible to offer backups at $5/month for unlimited storage. Backblaze even offers a <a href="https://www.backblaze.com/index.html">15-day free trial</a>, so I tried it, although I was skeptical.</p>

<p>Catches:<br />
1) You need to use their client.<br />
2) Their client doesn't run on Windows Server or Linux -- just WinXP, Vista, and Macintosh. (Even if you run the installer in XP compatible mode on Windows server, it still doesn't install.)<br />
3) The $5/month is for one computer, not all the computers in my house.<br />
4) rsync doens't work with Windows/samba shares. (You may, however, be able to get <a href="http://www.egg-tech.com/mac_backup/">rsync to work to a Macintosh</a>. I haven't tested yet.) (Update below: you can install an NFS server onto WindowsXP/Vista to get rsync to work, or you could do it from Windows via an SSH rsync script.)</p>

<p>Solution: I installed it on a Vista workstation, created a share, and copied the few things I really need backed up to it. I also wrote scripts to transfer my PBX backups to my backup and log host and then copy the files from the backup server to the windows share via <a href="http://www.samba.org/">smbclient.</a> I'll skip the part about configuring password-less logins for SSH via ssh-keygen keys, as well as the kinit for logging into windows via smbclient. (I also never was able to mount.cifs via kinit, just smbclient.)</p>

<p>So what happened when I tried to back up 15 GB on my Vista box to Backblaze? Not much -- the files just transferred. iPod library -- check. Photos -- check. My <a href="http://oss.oetiker.ch/mrtg/">mrtg</a> indicated that bandwidth increased to about 310 kbps for four days. I was still able to make phone calls via my SIP trunk to vitelity with no problems. (g729 to my SIP provider and alaw to my friends' PBX servers via IPSec VPN.)</p>

<p>Bandwidth used:<br />
`Weekly' Graph (30 Minute Average)<br />
<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="mrtgBackblaze.png" src="http://cw.sampas.net/blog/mrtg_backblaze2.png/mrtgBackblaze.png" width="500" height="135" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></span></p>

<p>	Max 	Average 	Current<br />
In 	501.9 kb/s (0.5%) 	56.4 kb/s (0.1%) 	47.9 kb/s (0.0%)<br />
Out 	1360.2 kb/s (1.4%) 	168.6 kb/s (0.2%) 	29.3 kb/s (0.0%) </p>

<p>Security comments: Backblaze says it encrypts files, but doesn't offer details on the algorithm or implementation. (e.g AES-CBC, etc.) Backblaze does offer you the option of using a private key, so that only you (assuming you don't forget the key) can access your files.</p>

<p>My advice: If it needs to stay secure, encrypt the files yourself before they hit the local hard disk. You can even do a<a href="http://users.softlab.ece.ntua.gr/~ttsiod/backup.html"> loopback mount (Super-awesome tutorial there)</a> to an AES-encrypted file on a samba share, and rsync will work, but the whole file will change, requiring it all to be sent to Backblaze.</p>

<p>Update: You can use rsync to get your Linux/BSD/Unix files over to your windows box, but you'll need to install an <a href="http://www.nfsforwindows.com/home">NFS Server</a> on your windows box. You could also use <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=896C9688-601B-44F1-81A4-02878FF11778&displaylang=en">Microsoft's Services for Unix</a>, but it's easier just using <a href="http://www.nfsforwindows.com/home">the Allegro server</a>.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/09/online-backups-with-backblaze.html</link>
            <guid>http://cw.sampas.net/blog/2009/09/online-backups-with-backblaze.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Random</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Security</category>
            
            
            <pubDate>Sun, 13 Sep 2009 13:11:25 -0500</pubDate>
        </item>
        
        <item>
            <title>Running pfSense on a WatchGuard x700 firewall</title>
            <description><![CDATA[<p>The original Firebox X series is nearing its end of life, so I was able to purchase an <a href="http://www.watchguard.com/products/x700.asp">x700</a> on <a href="http://shop.ebay.com/i.html?_nkw=watchguard+firebox+x700&_sacat=0&_trksid=p3286.m270.l1313&_odkw=watchguard+firebox+x&_osacat=0">eBay</a> for a song. Watchguard is no longer providing updates for it as of <a href="http://www.watchguard.com/products/endoflife.asp">October 2009</a>, so you might start seeing more of them on <a href="http://shop.ebay.com/i.html?_nkw=watchguard+firebox+x500&_sacat=0&_trksid=p3286.m270.l1313&_odkw=watchguard+firebox+x500&_osacat=0">eBay</a>. The original Watchguard X-series consisted of the x500, x700, x1000, and x2500. Since they were software-upgradable, I am assuming the hardware for all is identical. (Warning: WatchGuard has many stickers on the box and more inside indicating that opening the box or removing any hardware voids the warranty.) Why would I buy an end-of-life firewall? Because it's great hardware to run <a href="http://www.pfsense.org/">pfSense</a>, one of the best open-source firewall packages available.</p>

<p>WARNING: You should not pay more than $100 for the x500 through x2500. They're end-of-life. And don't let anyone confuse an even older, <a href="http://shop.ebay.com/i.html?_nkw=watchguard+firebox+II&_sacat=0&_trksid=p3286.m270.l1313&_odkw=watchguard+firebox+III&_osacat=0">2RU model</a>, with the x-series.</p>

<p>What's the hardware? (<a href="http://cw.sampas.net/watchguardTerminal.TXT">Boot console text here</a>, <a href="http://cw.sampas.net/gallery2/v/Firebox/">photos here</a>.) It's a 1.2 GHz Celeron processor, 256 MB of PC133 RAM, a SanDisk 64MB "Industrial Grade" compact flash card, an Intel Motherboard with six RealTek (!) LAN ports. There's a serial port, two fans, a PCI slot, and a mini-PCI slot occupied by a SafeNet SafeXcel 1141 v.1.1 card. Unfortunately, the SafeXcel 1141 is not supported in FreeBSD even thought the boot shows that it found something. (Maybe OpenBSD...) </p>

<p>Just to be sure, I did the OpenSSL speed check from the Watchguard's console after I installed pfSense.</p>

<p><u>Firebox Xseries, SafeNet 1141 v1.1 installed:</u><br />
The 'numbers' are in 1000s of bytes per second processed.<br />
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes<br />
aes-128 cbc      26917.66k    27987.75k    28248.74k    28359.04k    28376.05k<br />
aes-192 cbc      22900.88k    23917.93k    24122.93k    24210.67k    24213.70k<br />
aes-256 cbc      20624.38k    21210.58k    21364.18k    21430.52k    21439.17k</p>

<p><u>Firebox Xseries, Safenet removed:</u><br />
The 'numbers' are in 1000s of bytes per second processed.<br />
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes<br />
aes-128 cbc      26924.00k    27986.35k    28249.58k    28358.33k    28374.19k<br />
aes-192 cbc      22911.56k    23924.39k    24126.03k    24212.23k    24220.05k<br />
aes-256 cbc      20624.28k    21211.41k    21360.39k    21429.22k    21439.88k</p>

<p>While there's no difference, it blows away my <a href="http://www.netgate.com/product_info.php?products_id=450">Alix 2d3 Board</a> with the <a href="http://www.soekris.com/vpn1401.htm">Soekris mini-PCI HiFn 7955 </a>card. This is<br />
what I'm currently running pfSense on. To be fair, it was still live and sending 310k/sec to Backblaze, but that's another story.</p>

<p><u>Alix board w/Soekris VPN Card:</u><br />
The 'numbers' are in 1000s of bytes per second processed.<br />
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes<br />
aes-128 cbc       5186.19k     5310.60k     5423.67k     5473.56k     5487.10k<br />
aes-192 cbc       4548.62k     4671.94k     4780.79k     4802.54k     4801.88k<br />
aes-256 cbc       4117.25k     4157.12k     4243.48k     4263.61k     4257.15k</p>

<p>Finally, some commentary on  the original Watchguard Firebox series: <br />
I used one of these at a former client's main site. The user interface was great, and it offered superb logging and even offered a realtime view of connections that I have seen no-one duplicate since. That much let me identify info leak attempts in real time, because I did not leave all outbound ports open.</p>

<p>However, Watchguard included the encryption acceleration hardware, but didn't let you use it without an additional licen$e. pfSense is free.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/09/running-pfsense-on-a-watchguar.html</link>
            <guid>http://cw.sampas.net/blog/2009/09/running-pfsense-on-a-watchguar.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">pfSense</category>
            
            <pubDate>Sat, 12 Sep 2009 20:31:17 -0500</pubDate>
        </item>
        
        <item>
            <title>Update -- Receiving HDTV signals in Washington, DC</title>
            <description><![CDATA[<p>I was disappointed with my reception using my old <a href="http://www.radioshack.com/product/index.jsp?productId=2062081">Radio Shack 15-1868</a> indoor rabbit-ears antenna. I didn't receive channel 66, and I wanted to at least see what was on channel 66. I received the three major networks and Fox fine, but none of the fringe-UHF stations the FCC said I should be able to receive at my location.</p>

<p>I bought another Radio Shack antenna -- this time the "Outdoor HTDV Antenna," SKU number 15-2152 with the last money left on my two-year-old Radio Shack gift card. Since it was a huge, 80-something-inch antenna, it must receive better, right? I mounted it in my attic, two floors above the indoor rabbit ears, and hooked it up via quad-shield RG58. Excitedly, I ran back down to my man-cave and scanned through the channels again.</p>

<p>At first, I lost channels 4, 26, and 32. After minor direction adjustments, I received all previous channels as well as 23 (analog), 25 (analog), 30, 47 and 66. While there's nothing I'm going to be watching on channel 66, I definitely receive more stations than before. Best of all, the new stations are free, so I'm one step closer to eliminating my cable bill.</p>

<p>If you can run a cable to your attic, and you have a traditional, non-steel roof (like the asphalt shingle here), then you can mount your antenna there. I'm not about to distract from the beauty of my <a href="http://www.universal-radio.com/CATALOG/scanants/0828.html">Icom Discone</a> mounted on my chimney with a cheap aluminum TV antenna. And that antenna is cheap and I got aluminum dust all over my hands assembling it. Since it's going to stay in a corner of my attic, I don't mind. If you're looking for the 15-2152 antenna on Radio Shack's site, it's gone. It was discontinued and cheap to buy.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/09/update----receiving-hdtv-signa.html</link>
            <guid>http://cw.sampas.net/blog/2009/09/update----receiving-hdtv-signa.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">HDTV</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">HDTV Antenna</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">HDTV Washington DC</category>
            
            <pubDate>Sun, 06 Sep 2009 11:44:28 -0500</pubDate>
        </item>
        
        <item>
            <title>Airport AWOS Frequency/Phone KML file updated</title>
            <description><![CDATA[<p>I have updated the AWOS frequency, phone, phone and type file based on the FAA's 56-day subscription data. However, instead of using latitude and longitude included in the file, I joined the main airport file by airport ID. This requires making an assumption that all AWOSes are at the airport they serve. While that might not be the case, I get 643 more airports into the file then before. The AWOS file has 2,185 entries of which 1,542 have latitude and longitude. Almost every corresponding airport in the APT file has latitude and longitude. Thus, DCA will now show up with a phone number, but no frequency. The new KML will also show the AWOS <a href="http://maps.avnwx.com/help/asos.html">type</a>: ASOS, AWOS-1, AWOS-2, AWOS-3, or AWOS-A. </p>

<p>Finally, matching airports to AWOS increases the complexity. I had hoped to write a simple script that does text manipulation for all KML files -- one script altering one FAA text file to produce one KML file. As with the Special Use Airspace, however, there wasn't a good way to do it without using a database and <a href="http://en.wikipedia.org/wiki/Relation_%28database%29">relations</a>.</p>

<p>Find them in the <a href="http://cw.sampas.net/kml/">KML archive</a>.</p>]]></description>
            <link>http://cw.sampas.net/blog/2009/08/airport-awos-frequencyphone-km.html</link>
            <guid>http://cw.sampas.net/blog/2009/08/airport-awos-frequencyphone-km.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Aviation</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">GIS</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">AWOS</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">FAA NFDC</category>
            
            <pubDate>Tue, 25 Aug 2009 21:11:32 -0500</pubDate>
        </item>
        
    </channel>
</rss>
