<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Steve Glendinning &#187; Work</title>
	<atom:link href="http://www.steveglendinning.com/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.steveglendinning.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 10:26:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Xensource updates apt repository missing GPG key</title>
		<link>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/</link>
		<comments>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 09:49:24 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=85</guid>
		<description><![CDATA[Here's how to add the Xensource GPG key to a debian VM, so aptitude doesn't warn you that no public key is available]]></description>
			<content:encoded><![CDATA[<p>Xensource&#8217;s Debian VM templates have always added a xensource updates repository (under /etc/apt/sources.list.d/xensource.list), but until recently it&#8217;s been empty.  Now they&#8217;ve added some updates (replacement xen kernel and xen guest tools) aptitude displays big red warnings that this repository isn&#8217;t trusted:</p>
<blockquote><p>W: GPG error: http://updates.xensource.com etch Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY 841D6D8DFE3F8BB2<br />
W: You may want to run apt-get update to correct these problems</p></blockquote>
<p>This is because the GPG key Xensource use to sign their packages hasn&#8217;t been added to the VM&#8217;s apt keyring, and here&#8217;s how to fix it:</p>
<p><code>wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -</code></p>
<p>(From <a href="http://tiri.li/apt-key-add-xen-gpg-key-aktualisiern">tiri.li</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2009/07/15/xensource-updates-apt-repository-missing-gpg-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to stop Vista waking up from sleep</title>
		<link>http://www.steveglendinning.com/2008/10/27/how-to-stop-vista-waking-up-from-sleep/</link>
		<comments>http://www.steveglendinning.com/2008/10/27/how-to-stop-vista-waking-up-from-sleep/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 09:57:18 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=54</guid>
		<description><![CDATA[One of the features of Vista that I really like is it&#8217;s &#8220;sleep&#8221;.  Unlike XP, which usually used S1 sleep, Vista puts the system into the much lower power S3 state.  On my Core2Quad workstation, this takes the power usage down to 3W (from ~62W running at idle).  To put this into perspective, the power [...]]]></description>
			<content:encoded><![CDATA[<p>One of the features of Vista that I really like is it&#8217;s &#8220;sleep&#8221;.  Unlike XP, which usually used S1 sleep, Vista puts the system into the much lower power S3 state.  On my Core2Quad workstation, this takes the power usage down to 3W (from ~62W running at idle).  To put this into perspective, the power usage when the system is fully shut down is ~2W, but wakeup is MUCH quicker than a full boot.</p>
<p>Vista allows you to configure which hardware sources can wake up the system from sleep, so for example you can enable or disable Wake On Lan.  It also allows software to schedule a wakeup, and Media Centre is one such beast.  Ever since I started playing with Media Centre, the system has randomly woken up from sleep (and not returned to sleep afterwards), which kinda defeats the purpose of sleep!</p>
<p>It&#8217;s quite easy to find out the source of the most recent wakeup (powercfg /lastwake), but this lists all software sources as &#8220;RTC&#8221;.  It doesn&#8217;t identify *which* process (or scheduled task) was responsible.</p>
<p>I found one solution over at <a title="disable vista software wake from sleep" href="http://thegreenbutton.com/forums/8/286420/ShowThread.aspx" target="_blank">thegreenbutton</a> (thanks to mxcrowe):</p>
<blockquote><p>If you do this, your computer will not auto-wake for any reason (s/w reason &#8211; I suppose WOL etc. will still work).  This info was given to me by another poster here on the Green Button:</p>
<p>1. Open a CMD prompt<br />
2. powercfg -setacvalueindex scheme_current sub_sleep bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0<br />
3. powercfg -setdcvalueindex scheme_current sub_sleep bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 0<br />
4. powercfg -setactive scheme_current</p>
<p>This changes and applies a new power scheme that stops the machine from being woken from sleep. In my case, I have a desktop system and probably didn&#8217;t need to set the DC option, but I did both anyway.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/10/27/how-to-stop-vista-waking-up-from-sleep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to boot Vyatta on Microsoft Virtual PC</title>
		<link>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/</link>
		<comments>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 16:54:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Vyatta]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=49</guid>
		<description><![CDATA[Vyatta 3.0.3 (and its community equivalent VC4) boots fine on Virtual PC, which is really handy for firing up a &#8220;test&#8221; router.  Unfortunately, the latest subscription release 3.1.3 (and probably VC5) fails shortly after the bootloader prompt with this error:
The solution is to pass the linux kernel boot argument noreplace-paravirt.  This is done on the [...]]]></description>
			<content:encoded><![CDATA[<p>Vyatta 3.0.3 (and its community equivalent VC4) boots fine on Virtual PC, which is really handy for firing up a &#8220;test&#8221; router.  Unfortunately, the latest subscription release 3.1.3 (and probably VC5) fails shortly after the bootloader prompt with this error:</p>
<div id="attachment_51" class="wp-caption alignnone" style="width: 310px"><a href="http://www.steveglendinning.com/wp-content/uploads/2008/09/vyatta-virtual-pc-fail.png"><img class="size-medium wp-image-51" title="Vyatta Virtual PC Fail" src="http://www.steveglendinning.com/wp-content/uploads/2008/09/vyatta-virtual-pc-fail-300x117.png" alt="Vyatta Virtual PC boot error" width="300" height="117" /></a><p class="wp-caption-text">Vyatta Virtual PC boot error</p></div>
<p>The solution is to pass the linux kernel boot argument <strong>noreplace-paravirt</strong>.  This is done on the live CD by typing &#8220;<strong>live noreplace-paravirt</strong>&#8221; and pressing enter (instead of simply pressing enter or waiting for the CD to automatically boot).</p>
<p>When you&#8217;ve installed to the virtual hard disk (using the install-system command), you&#8217;ll find it displays the same error.  To boot the first time you&#8217;ll need to press Escape to access the grub menu, then press &#8220;e&#8221; to edit the default entry.  Add the word <strong>noreplace-paravirt</strong> to the end of the line (after &#8220;console=tty0&#8243;) and press ctrl-x to boot.</p>
<p>When you get the login prompt, you can log in as root and edit the grub config file (<strong>nano /boot/grub/grub.cfg</strong>) to add the option to the command line permanently.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/09/23/how-to-boot-vyatta-on-microsoft-virtual-pc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Orange Samsung i200 missing MSN Messenger</title>
		<link>http://www.steveglendinning.com/2008/09/16/orange-samsung-i200-missing-msn-messenger/</link>
		<comments>http://www.steveglendinning.com/2008/09/16/orange-samsung-i200-missing-msn-messenger/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 11:38:32 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[activesync]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[mobile phone]]></category>
		<category><![CDATA[msn messenger]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=41</guid>
		<description><![CDATA[I&#8217;ve had an Orange Samsung i200 (running Windows Mobile 6.1) for just over a week now, and I have to say I like it! It&#8217;s noticeably more responsive than the Nokia N73 it replaced (TBH i think that mostly illustrates how sluggish the N73 was), and I&#8217;ve *nearly* got used to the different keypad.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had an Orange <a href="http://www.amazon.co.uk/gp/product/B001CW6C3Y?ie=UTF8&#038;tag=wwwsteveglend-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B001CW6C3Y">Samsung i200</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=wwwsteveglend-21&#038;l=as2&#038;o=2&#038;a=B001CW6C3Y" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> (running Windows Mobile 6.1) for just over a week now, and I have to say I like it! It&#8217;s noticeably more responsive than the Nokia N73 it replaced (TBH i think that mostly illustrates how sluggish the N73 was), and I&#8217;ve *nearly* got used to the different keypad.  Honestly, why do all the different manufacturers use a different key for &#8220;space&#8221;?!</p>
<p>Being a Windows Mobile handset, it came loaded with all the expected Microsoft applications&#8230; except one!  It seems Orange have decided to remove the MSN Messenger client, presumably because they&#8217;re worried it&#8217;ll dent their extremely profitable SMS revenue.  And Microsoft no longer makes the client available for download (&#8221;ask your operator for MSN access&#8221;).</p>
<p>After several hours of trawling through forums, I found the nice chaps at xda-developers have many builds of the <a href="http://forum.xda-developers.com/showthread.php?t=334621&#038;page=21">mobile msn client available for download</a> (although you need to register to get access).  Most are for the full PocketPC (PDA) OS, but the file attached to post #202 works on SmartPhones like the i200.</p>
<p>As expected, Pocket Outlook&#8217;s Microsoft Exchange synchronisation works seamlessly, so I now have real-time push email, contacts and calendar sync.  And it&#8217;s actually usable as a phone too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/09/16/orange-samsung-i200-missing-msn-messenger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find the cause of a Vista blue screen</title>
		<link>http://www.steveglendinning.com/2008/05/16/find-the-cause-of-a-vista-blue-screen/</link>
		<comments>http://www.steveglendinning.com/2008/05/16/find-the-cause-of-a-vista-blue-screen/#comments</comments>
		<pubDate>Fri, 16 May 2008 10:29:24 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/?p=33</guid>
		<description><![CDATA[I finally managed to get to the bottom of my vista blue screen problem, so I thought I&#8217;d share how I determined which driver was causing the problems.
Vista keeps a log of application and kernel crashes in Control Panel -&#62; Problems Reports and Solutions -&#62; View problem history:

Double clicking on the latest Windows &#8220;shut down [...]]]></description>
			<content:encoded><![CDATA[<p>I finally managed to get to the bottom of my <a title="Vista SP1 bsod" href="http://www.steveglendinning.com/2008/04/12/vista-sp1-blue-screen-resuming-from-hibernate-or-suspend/" target="_blank">vista blue screen problem</a>, so I thought I&#8217;d share how I determined which driver was causing the problems.</p>
<p>Vista keeps a log of application and kernel crashes in Control Panel -&gt; Problems Reports and Solutions -&gt; View problem history:</p>
<p><a href="http://www.steveglendinning.com/wp-content/uploads/2008/05/problem-reports.jpg"><img class="aligncenter size-full wp-image-34" title="Vista problem reports" src="http://www.steveglendinning.com/wp-content/uploads/2008/05/problem-reports.jpg" alt="Vista problem reports" width="499" height="376" /></a></p>
<p>Double clicking on the latest Windows &#8220;shut down unexpectedly&#8221; shows the blue screen details.  These don&#8217;t give much useful information, for example which driver was responsible:</p>
<p><a href="http://www.steveglendinning.com/wp-content/uploads/2008/05/problem-detail.jpg"><img class="aligncenter size-full wp-image-35" title="problem-detail" src="http://www.steveglendinning.com/wp-content/uploads/2008/05/problem-detail.jpg" alt="Problem report detail" width="499" height="396" /></a></p>
<p>Clicking on &#8220;View a temporary copy of these files&#8221; opens an explorer window with the crash dump file, which you can copy to your own directory.</p>
<p>To analyse the crash dump you&#8217;ll need to install the <a title="Microsoft Windows Debugging Tools" href="http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx" target="_blank">Microsoft Windows Debugging Tools</a> (17MB msi).  This adds a whole set of command line tools under &#8220;C:\Program Files\Debugging Tools for Windows (x86)&#8221;.  Use the dumpchk.exe tool to analyse the crash file:</p>
<p><a href="http://www.steveglendinning.com/wp-content/uploads/2008/05/startdumpexam.jpg"><img class="aligncenter size-full wp-image-36" title="startdumpexam" src="http://www.steveglendinning.com/wp-content/uploads/2008/05/startdumpexam.jpg" alt="Start examining the crash dump" width="500" height="252" /></a></p>
<p><a href="http://www.steveglendinning.com/wp-content/uploads/2008/05/dumpexamresult.jpg"><img class="aligncenter size-full wp-image-37" title="dumpexamresult" src="http://www.steveglendinning.com/wp-content/uploads/2008/05/dumpexamresult.jpg" alt="Crash dump analysis result" width="500" height="251" /></a></p>
<p>And there&#8217;s the culprit: &#8220;Probably caused by: eacfilt.sys&#8221;.  This is the driver used by Nortel&#8217;s Contivity VPN client.  I&#8217;m using the &#8220;vista friendly&#8221; version, which worked fine before I applied Vista SP1, but I guess SP1 broke its driver.  The solution to all my problems? Uninstall it!</p>
<p><a href="http://www.steveglendinning.com/wp-content/uploads/2008/05/uninstallnortel.jpg"><img class="aligncenter size-full wp-image-38" title="uninstallnortel" src="http://www.steveglendinning.com/wp-content/uploads/2008/05/uninstallnortel.jpg" alt="Uninstalling Nortel\'s Contivity VPN client" width="500" height="376" /></a></p>
<p>Hurrah! My T61&#8217;s suspend and hibernate work again!</p>
<p>For help with this and other Vista problems, these books may be useful:</p>
<p align="center"><iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=wwwsteveglend-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0132354500&#038;md=0M5A6TN3AXP2JHJBWT02&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=wwwsteveglend-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0273719386&#038;md=0M5A6TN3AXP2JHJBWT02&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=wwwsteveglend-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0471754218&#038;md=0M5A6TN3AXP2JHJBWT02&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/05/16/find-the-cause-of-a-vista-blue-screen/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Vista SP1 blue screen resuming from hibernate or suspend</title>
		<link>http://www.steveglendinning.com/2008/04/12/vista-sp1-blue-screen-resuming-from-hibernate-or-suspend/</link>
		<comments>http://www.steveglendinning.com/2008/04/12/vista-sp1-blue-screen-resuming-from-hibernate-or-suspend/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 10:36:00 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2008/04/12/vista-sp1-blue-screen-resuming-from-hibernate-or-suspend/</guid>
		<description><![CDATA[Since installing service pack 1 on Vista, my shiny new laptop (Thinkpad T61) has a problem coming out of a hibernated or suspended state.  When resuming from hibernation or suspend it&#8217;ll give me the BAD_POOL_CALLER error (and automatically reboot) roughly 50% of the time.  It&#8217;s so bad I&#8217;ve stopped using hibernate and suspend [...]]]></description>
			<content:encoded><![CDATA[<p>Since installing service pack 1 on Vista, my shiny new laptop (Thinkpad T61) has a problem coming out of a hibernated or suspended state.  When resuming from hibernation or suspend it&#8217;ll give me the BAD_POOL_CALLER error (and automatically reboot) roughly 50% of the time.  It&#8217;s so bad I&#8217;ve stopped using hibernate and suspend entirely.</p>
<p>I found a solution on the <a href="http://forums.lenovo.com/lnv/board/print?board.id=T_Series_Thinkpads&amp;message.id=3824&amp;page=1&amp;format=page">lenovo forum</a>, apparently the T61&#8217;s UPEK fingerprint reader driver 1.9.2.99 can be responsible.  I&#8217;ve installed version 1.9.2.111 (<a title="UPEK fingerprint reader driver" href="http://www.upek.com/support/downloads/drivers/windows.asp">download directly from UPEK</a>), but I still get blue screens if I hibernate.</p>
<p>Other drivers known to be incompatible with SP1 are listed on <a href="http://support.microsoft.com/kb/948343">Microsoft KB 948343</a>, but I&#8217;m pretty sure I&#8217;m not running any of them.  Any ideas?</p>
<p><strong>Update (16th May 2008):</strong> The problem turned out to be Nortel&#8217;s Contivity VPN client.  They don&#8217;t appear to have released an updated version since SP1 was released.  I no longer have a need for this VPN client, so I simply uninstalled it.  Problem solved!</p>
<p>While I was trying to get to the bottom of this I read many suggestions.  Dodgy memory seems to be a common cause, and this can be checked by booting memcheck and leaving for a few hours.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/04/12/vista-sp1-blue-screen-resuming-from-hibernate-or-suspend/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Protecting against SSH brute-force password attacks</title>
		<link>http://www.steveglendinning.com/2008/01/27/protecting-against-ssh-brute-force-password-attacks/</link>
		<comments>http://www.steveglendinning.com/2008/01/27/protecting-against-ssh-brute-force-password-attacks/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 12:36:01 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2008/01/27/protecting-against-ssh-brute-force-password-attacks/</guid>
		<description><![CDATA[I run an internet facing ssh server, so my logs are regularly full of brute-force password attacks like this:
Jan 20 02:59:21 drevil sshd[12803]: error: PAM: Authentication failure for illegal user root from 213.136.100.86
Jan 20 02:59:24 drevil sshd[12806]: error: PAM: Authentication failure for illegal user root from 213.136.100.86
Jan 20 02:59:27 drevil sshd[12816]: error: PAM: Authentication failure [...]]]></description>
			<content:encoded><![CDATA[<p>I run an internet facing ssh server, so my logs are regularly full of brute-force password attacks like this:</p>
<blockquote><p>Jan 20 02:59:21 drevil sshd[12803]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:24 drevil sshd[12806]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:27 drevil sshd[12816]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:30 drevil sshd[12820]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:34 drevil sshd[12827]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:37 drevil sshd[12830]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:40 drevil sshd[12833]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:44 drevil sshd[12836]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:47 drevil sshd[12840]: error: PAM: Authentication failure for illegal user root from 213.136.100.86<br />
Jan 20 02:59:51 drevil sshd[12843]: error: PAM: Authentication failure for illegal user root from 213.136.100.86</p></blockquote>
<p>There are several simple ways of reducing the chance of a break-in through this method:</p>
<p><strong>1. Use strong passwords</strong></p>
<p>This is an obvious place to start.  The vast majority of these attacks come from automated scanning tools.  These attempt to log in using passwords from a commonly used &#8220;dictionary&#8221;, so avoid simple words like &#8220;password&#8221;.  Using a combination of letters, lower and upper case letters, and even symbols (!&#8221;Â£$%^&amp;*) will give a password that is unlikely to be listed in a &#8220;common passwords&#8221; dictionary.</p>
<p><strong>2. Restrict the users who can connect via ssh</strong></p>
<p>OpenSSH has the capability to specify a &#8220;white list&#8221; of allowed users and deny all others.  Simply add this line to your /etc/sshd_config and restart the sshd service:</p>
<blockquote><p>AllowUsers dave mike sarah</p></blockquote>
<p>This will block attempts to connect as any of the common system users (root, postfix, mysql etc), EVEN if the attacker guesses the correct password.  If this list is kept as small as possible, it is much easier to verify these users have strong passwords.</p>
<p><strong>3. Rate limit new ssh connections</strong></p>
<p>A simple iptables script can be used to rate limit new incoming connection attempts.  There are two ways of doing this, using the limit and recent iptables modules.  Here&#8217;s the limit solution:</p>
<blockquote><p>iptables -N NEW_SSH<br />
iptables -A INPUT -p tcp &#8211;dport 22 -m state &#8211;state NEW -j NEW_SSH<br />
iptables -A NEW_SSH -s 10.0.0.0/24 -j ACCEPT<br />
iptables -A NEW_SSH -m limit &#8211;limit 3/min &#8211;limit-burst 3 -j ACCEPT<br />
iptables -A NEW_SSH -j DROP</p></blockquote>
<p>The third line ensures that connections from the internal network (in this example 10.0.0.0/24) are not subject to rate-limiting.  The weakness of this approach is that while an attack is underway, ALL new ssh connections from outside are blocked.  The recent module allows a slightly different approach (taken from <a href="http://www.debian-administration.org/articles/187" title="Debian Administration">debian administration</a>):</p>
<blockquote><p>iptables -N NEW_SSH<br />
iptables -A INPUT -p tcp &#8211;dport 22 -m state &#8211;state NEW -j NEW_SSH<br />
iptables -A NEW_SSH -s 10.0.0.0/24 -j ACCEPT<br />
iptables -A NEW_SSH -m recent &#8211;set<br />
iptables -A NEW_SSH -m recent &#8211;update &#8211;seconds 60 &#8211;hitcount 4 -j DROP<br />
iptables -A NEW_SSH -j ACCEPT</p></blockquote>
<p>This module &#8220;blacklists&#8221; IP addresses that exceed the rate limit, while still allowing other IP addresses to connect.  If a connection makes it past this rate limiting, we accept it (last line).</p>
<p><strong>4. Run your ssh server on a different port</strong></p>
<p>The automated scanners look for ssh services on the default port (22), so if you move your sshd to a non-standard port less scanners will find you.  It&#8217;s worth noting that this approach doesn&#8217;t improve security at all against a determined attacker.  Personally I don&#8217;t use this technique, my SSH servers run on port 22.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/01/27/protecting-against-ssh-brute-force-password-attacks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dell D630 display options</title>
		<link>http://www.steveglendinning.com/2008/01/18/dell-d630-display-options/</link>
		<comments>http://www.steveglendinning.com/2008/01/18/dell-d630-display-options/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 18:35:48 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Laptop]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2008/01/18/dell-d630-display-options/</guid>
		<description><![CDATA[I&#8217;m trying to buy a new laptop from Dell, but they aren&#8217;t making it easy for me! I&#8217;ve got everything prepared: a great broadband service, budget for the laptop etc. All I need is for Dell to let me place an order for the actual laptop specification I want!
My old laptop is a Dell D600, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to buy a new laptop from Dell, but they aren&#8217;t making it easy for me! I&#8217;ve got everything prepared: a great <a href="http://broadband.o2.co.uk/">broadband</a> service, budget for the laptop etc. All I need is for Dell to let me place an order for the actual laptop specification I want!</p>
<p>My old laptop is a Dell D600, so I&#8217;m looking at the equivalent D630.  When I bought the D600 there were two display options: <a title="XGA" href="http://en.wikipedia.org/wiki/XGA">XGA</a> (1024&#215;768) or <a title="SXGA+" href="http://en.wikipedia.org/wiki/SXGA%2B" target="_blank">SXGA+</a> (1400&#215;1050).  I went with the higher resolution option, and it&#8217;s been fantastic.</p>
<p>Reading the <a title="Dell D630 product details" href="http://www.dell.com/downloads/emea/products/latit/latit_d630_en.pdf">product pages</a>, the D630 also has two options: <a title="WXGA" href="http://en.wikipedia.org/wiki/Wide_XGA">WXGA</a> (1280&#215;800) or <a title="WXGA+" href="http://en.wikipedia.org/wiki/WSXGA_Wide_XGA%2B">WXGA+</a> (1440&#215;900).  I can live with the slightly lower widescreen resolution of 1440&#215;900, but 1280&#215;800 is just too much of a step down.</p>
<p>Unfortunately, this display option is missing from the UK &#8220;customise and buy your laptop&#8221; section.  Only one option is listed, and it&#8217;s the low-res one:</p>
<p><a title="Dell D630 display options UK" href="http://www.steveglendinning.com/wp-content/uploads/2008/01/delld630lcduk.png"><img src="http://www.steveglendinning.com/wp-content/uploads/2008/01/delld630lcduk.png" alt="Dell D630 display options UK" /></a></p>
<p>A visit to the Dell USA website shows the option exists over there:</p>
<p><a title="Dell D630 display options USA" href="http://www.steveglendinning.com/wp-content/uploads/2008/01/delld630lcdus.png"><img src="http://www.steveglendinning.com/wp-content/uploads/2008/01/delld630lcdus.png" alt="Dell D630 display options USA" /></a></p>
<p>I don&#8217;t really want the hassle of ordering a laptop over there, getting it shipped over here, replacing the USA keyboard with a UK one&#8230;</p>
<p>Ah well, there must be plenty of other laptop manufacturers who WILL give me a high-res screen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/01/18/dell-d630-display-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2003 DNS serial number problems</title>
		<link>http://www.steveglendinning.com/2008/01/06/windows-server-2003-dns-serial-number-problems/</link>
		<comments>http://www.steveglendinning.com/2008/01/06/windows-server-2003-dns-serial-number-problems/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 15:33:18 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SmallBusinessServer]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2008/01/06/windows-server-2003-dns-serial-number-problems/</guid>
		<description><![CDATA[I&#8217;ve been having a recurring problem with my Windows small business server 2003.  Sometimes when I reboot it, it decrements the serial number of one of its DNS zones.  This causes repeated warnings to be logged on a Linux slave DNS server:
Dec  3 06:53:49 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a recurring problem with my Windows small business server 2003.  Sometimes when I reboot it, it decrements the serial number of one of its DNS zones.  This causes repeated warnings to be logged on a Linux slave DNS server:</p>
<p><code>Dec  3 06:53:49 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:03:48 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:11:26 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:21:24 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:29:18 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:37:54 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:47:10 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)<br />
Dec  3 07:56:11 drevil named[2765]: zone 20.0.10.in-addr.arpa/IN: serial number (61) received from master 10.0.20.10#53 &lt; ours (62)</code></p>
<p>The solution is simple: Log onto the windows server, open the DNS management console, find the zone and click &#8220;increment&#8221; a couple of times on the serial number (SOA).  But it&#8217;s very annoying, especially when the damn thing reboots itself every month for patch Tuesday!</p>
<p>It seems this was a documented problem in Windows Server 2000 (fixed in SP4): <a href="http://support.microsoft.com/kb/304653" title="KB304653">http://support.microsoft.com/kb/304653</a>, but I can&#8217;t find any reference to the same problem in Server 2003.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2008/01/06/windows-server-2003-dns-serial-number-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How much memory is in my Linux system?</title>
		<link>http://www.steveglendinning.com/2007/11/04/how-much-memory-is-in-my-linux-system/</link>
		<comments>http://www.steveglendinning.com/2007/11/04/how-much-memory-is-in-my-linux-system/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 17:06:41 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Etch]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2007/11/04/how-much-memory-is-in-my-linux-system/</guid>
		<description><![CDATA[ I came across a really handy tool for listing the number of RAM sockets you have, and what&#8217;s currently in them all.  The tool is dmidecode, and it&#8217;s installed by default on Debian Etch:
drevil:~# dmidecode -t memory
# dmidecode 2.8
SMBIOS 2.3 present.
Handle 0&#215;1000, DMI type 16, 15 bytes
Physical Memory Array
     [...]]]></description>
			<content:encoded><![CDATA[<p> I came across a really handy tool for listing the number of RAM sockets you have, and what&#8217;s currently in them all.  The tool is dmidecode, and it&#8217;s installed by default on Debian Etch:</p>
<blockquote><p>drevil:~# dmidecode -t memory<br />
# dmidecode 2.8<br />
SMBIOS 2.3 present.</p>
<p>Handle 0&#215;1000, DMI type 16, 15 bytes<br />
Physical Memory Array<br />
        Location: System Board Or Motherboard<br />
        Use: System Memory<br />
        Error Correction Type: None<br />
        Maximum Capacity: 4 GB<br />
        Error Information Handle: Not Provided<br />
        Number Of Devices: 2</p>
<p>Handle 0&#215;1100, DMI type 17, 23 bytes<br />
Memory Device<br />
        Array Handle: 0&#215;1000<br />
        Error Information Handle: Not Provided<br />
        Total Width: 64 bits<br />
        Data Width: 64 bits<br />
        Size: 256 MB<br />
        Form Factor: DIMM<br />
        Set: None<br />
        Locator: DIMM_1<br />
        Bank Locator: Not Specified<br />
        Type: SDRAM<br />
        Type Detail: Synchronous<br />
        Speed: 333 MHz (3.0 ns)</p>
<p>Handle 0&#215;1101, DMI type 17, 23 bytes<br />
Memory Device<br />
        Array Handle: 0&#215;1000<br />
        Error Information Handle: Not Provided<br />
        Total Width: 64 bits<br />
        Data Width: 64 bits<br />
        Size: 256 MB<br />
        Form Factor: DIMM<br />
        Set: None<br />
        Locator: DIMM_2<br />
        Bank Locator: Not Specified<br />
        Type: SDRAM<br />
        Type Detail: Synchronous<br />
        Speed: 333 MHz (3.0 ns)</p></blockquote>
<p>Thanks to <a href="http://mjr.towers.org.uk/blog/2007/software#currentram" title="Current RAM">MJ Ray</a> and <a href="http://www.kryogenix.org/days/2006/10/26/memory-scanner-for-linux" title="Memory scanner for Linux">Stuart Langridge</a>, hopefully this will save me getting the screwdriver out in future!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2007/11/04/how-much-memory-is-in-my-linux-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
