<?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>ursecta.com &#187; Hardware</title>
	<atom:link href="http://ursecta.com/wp/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://ursecta.com/wp</link>
	<description>J. Martin Wehlou on Security, Software Development, and Medicine</description>
	<lastBuildDate>Tue, 08 May 2012 10:19:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>If all else fails, try Preview</title>
		<link>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/</link>
		<comments>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 13:02:29 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[lide 60]]></category>
		<category><![CDATA[osx drivers]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[twain]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1102</guid>
		<description><![CDATA[I&#8217;m totally amazed at all the things Preview does in OSX Snow Leopard. I already use it for knocking out backgrounds, using the &#8220;Instant Alpha&#8221; tool in the &#8220;Select&#8221; dropdown. But what happened today is more interesting. To my everlasting regret I got me a Canon Lide 60 scanner a couple of years ago. Canon&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m totally amazed at all the things Preview does in OSX Snow Leopard. I already use it for knocking out backgrounds, using the &#8220;Instant Alpha&#8221; tool in the &#8220;Select&#8221; dropdown. But what happened today is more interesting.</p>
<p>To my everlasting regret I got me a Canon Lide 60 scanner a couple of years ago. Canon&#8217;s hardware is pretty nice, but their driver support stinks, especially for OSX. This scanner costs me on average much more work than it should to keep going. Same for my Pixma 5200 Canon printer, by the way. Awful.</p>
<p>Anyway, I needed to scan a page from a mag to show on a slide. Hooked up the scanner, tried Canon Toolbox, and sure enough &#8220;Failed to open driver&#8221;. Internet next, user groups, downloads, complicated shit about uninstalling, reinstalling, rebooting the Mac Pro ten times. No joy. After a few hours (!) of this, I got an inspiration: hey, since I saw &#8220;Twain&#8221; mentioned, maybe Acrobat Pro 9 (CS4) could import it, instead of using Canon Toolbox? Sure enough, Acrobat found the scanner, looked it over, and promptly crashed.</p>
<p>And then I got my second inspiration: check out OSX Preview. And yes, that one worked. Not only that, but it automatically calibrated the scanner, proceeded to analyze the page, divided it into sections, scanned it, and served it up already partitioned into useful chunks. See the screenshots below. All the time I was just sitting there watching, doing nothing. The only thing I had to do was select the image and hit cmd-R twice to turn it the right way up. </p>
<p>Jeez, that innocent looking little Preview app is becoming mighty useful for any number of things.</p>
<p>I probably should mention that the driver I installed came in a file called &#8220;lide60osx11131en.dmg&#8221; to be found, somehow, on Canon&#8217;s support site. It installs both the drivers and the toolbox, but the toolbox doesn&#8217;t work.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/11/083.png" title="(94 hits)"><img src="http://ursecta.com/wp/wp-content/uploads/2010/11/083-279x300.png" alt="" title="083" width="279" height="300" class="aligncenter size-medium wp-image-1104" /></a></p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/11/084.png" title="(89 hits)"><img src="http://ursecta.com/wp/wp-content/uploads/2010/11/084-300x246.png" alt="" title="084" width="300" height="246" class="aligncenter size-medium wp-image-1106" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/11/if-all-else-fails-try-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An ode to Juniper</title>
		<link>http://ursecta.com/wp/2010/10/an-ode-to-juniper/</link>
		<comments>http://ursecta.com/wp/2010/10/an-ode-to-juniper/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 14:26:05 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=1059</guid>
		<description><![CDATA[I have a Juniper SSG-5 and the school I&#8217;m doing the network setup for also got one identical unit on my recommendation. I wanted to set up a fixed VPN between the two but failed miserably, so I logged a support request with Juniper on my machine, which is still in warranty but without any [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Juniper SSG-5 and the school I&#8217;m doing the network setup for also got one identical unit on my recommendation. I wanted to set up a fixed VPN between the two but failed miserably, so I logged a support request with Juniper on my machine, which is still in warranty but without any kind of support contract. Oh, boy, do these guys have great service.</p>
<p>After just a day I got an engineer connecting to my system with desktop sharing software and we together went through a number of different configurations. It wasn&#8217;t really trivial, since the first config took us nearly three hours. Then I had another question of how to implement more finegrained control over the firewall policies in one direction, but not the other, which had us online another two hours using desktop sharing. The final result was perfect and I&#8217;ve learned so much more about the details of autokey VPN tunnels.</p>
<p>I&#8217;m totally blown away by the level and quality of support I got for this issue from Juniper. Maybe this particular engineer was exceptionally good and persistent, but I have the impression that it is more of a rule with Juniper. When I bought the SSG-5 I thought it was a little expensive, but after this experience, I&#8217;ve totally changed my mind. The support level and quality makes it worth the price hands down.</p>
<p>No, I don&#8217;t have shares in Juniper, but after this experience I think I may get some.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/10/an-ode-to-juniper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ode to a printer</title>
		<link>http://ursecta.com/wp/2010/05/ode-to-a-printer/</link>
		<comments>http://ursecta.com/wp/2010/05/ode-to-a-printer/#comments</comments>
		<pubDate>Sat, 29 May 2010 20:01:59 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HP Laserjet 2300]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=850</guid>
		<description><![CDATA[We&#8217;re always complaining about stuff not working, but I just want to say how happy I&#8217;ve been, and still am, with our HP Laserjet 2300 DTN. Sounds like a commercial, doesn&#8217;t it? Anyway, as I replaced the drum today, I checked the numbers. We got it in the summer of 2003 and it&#8217;s never failed [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re always complaining about stuff not working, but I just want to say how happy I&#8217;ve been, and still am, with our HP Laserjet 2300 DTN. Sounds like a commercial, doesn&#8217;t it?</p>
<p>Anyway, as I replaced the drum today, I checked the numbers. We got it in the summer of 2003 and it&#8217;s never failed yet. It has printed more than 64,000 pages, most in duplex, and has jammed less than 20 times total, according to the event log. The last jam was more than a year ago. It&#8217;s running as network printer for all the machines we have and it works flawlessly with any OS we&#8217;ve tried so far. The printouts are always just fine. Scrambled output has only appeared maybe twice during all these years. I can&#8217;t even remember when it last happened.</p>
<p>There&#8217;s always an up to date software package to be had from HP for any Windows version I&#8217;ve used. Admittedly, I don&#8217;t know about Win 7; I&#8217;ve stopped getting new versions of Windows a while back. It has been automatically located and installed on every Mac I&#8217;ve had, up to and including Snow Leopard, without any intervention by the user. Just like that. Options and all. Probably due to it running Bonjour flawlessly. I&#8217;ve never done a bios update.</p>
<p>As a final bonus, I&#8217;ve noticed that its actual consumption of cartridges is not one per 6,000 pages as advertised, but somewhere between 8,000 and 10,000 pages per cartridge.</p>
<p>I simply can&#8217;t believe what a good investment this has been. Amazing. Now let&#8217;s hope it doesn&#8217;t die just because I sang its praises&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/05/ode-to-a-printer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX, FreeRadius, Netscreen, and me</title>
		<link>http://ursecta.com/wp/2010/05/osx-freeradius-netscreen-and-me/</link>
		<comments>http://ursecta.com/wp/2010/05/osx-freeradius-netscreen-and-me/#comments</comments>
		<pubDate>Sat, 29 May 2010 14:19:04 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[Netscreen]]></category>
		<category><![CDATA[Radius]]></category>
		<category><![CDATA[Snow Leopard Server]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=782</guid>
		<description><![CDATA[Oh, wow, this was crazy. What I needed to get done is to have a Juniper SSG-5 firewall (which runs Netscreen OS 6.2) authenticate users from the FreeRadius server that runs by default in OSX Snow Leopard server (10.6.3). And I needed the SSG-5 to differentiate depending on groups on Open Directory on the OSX. [...]]]></description>
			<content:encoded><![CDATA[<p>Oh, wow, this was crazy. What I needed to get done is to have a Juniper SSG-5 firewall (which runs Netscreen OS 6.2) authenticate users from the FreeRadius server that runs by default in OSX Snow Leopard server (10.6.3). And I needed the SSG-5 to differentiate depending on groups on Open Directory on the OSX. But, man, is this poorly documented&#8230; the only thing you find in the OSX documentation is how to get an accesspoint to allow users in. That&#8217;s it. Not good enough.</p>
<p><em>You can click any of the images in this post to see the screenshots full size</em></p>
<p>First, a list of documents you may need, or I may need later and don&#8217;t want to lose:</p>
<p><a href="http://ursecta.com/wp/go.php?http://www.opensource.apple.com/source/freeradius/freeradius-11/freeradius/share/dictionary.freeradius.internal" target="_blank" title="(131 hits)">dictionary.freeradius.internal</a> &#8211; an Apple document listing the attributes passed to FreeRadius.</p>
<p><a href="http://ursecta.com/wp/go.php?http://old.nabble.com/Freeradius-Netscreen-help-td16769356.html" target="_blank" title="(165 hits)">A usegroup message with some useful examples</a></p>
<p><a href="http://ursecta.com/wp/go.php?http://blog.irisproservices.com/2009/12/18/using-mac-os-x-servers-radius-service-with-third-party-devices/" target="_blank" title="(140 hits)">Using OSX Radius with third party devices</a> &#8211; has some info on hunt groups</p>
<h2>Make sure radius is running</h2>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz004.png" title="(135 hits)"><img class="aligncenter size-medium wp-image-793" title="Server AdminScreenSnapz004" src="http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz004-300x241.png" alt="" width="300" height="241" /></a></p>
<p>Via Server Admin, make sure Radius is selected in the services tab so it occurs in your list of services in the left pane.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz005.png" title="(92 hits)"><img class="aligncenter size-medium wp-image-798" title="Server AdminScreenSnapz005" src="http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz005-300x241.png" alt="" width="300" height="241" /></a></p>
<p>Then select &#8220;Radius&#8221; in the left panel, select &#8220;Settings&#8221; and click the dropdown for &#8220;RADIUS Certificate&#8221;. There you should either select a cert you already have installed on the server, or else select &#8220;Manage Certificates&#8230;&#8221; to go and create one. I already had one, and I had it created by <a href="http://ursecta.com/wp/go.php?https://www.cacert.org" title="(106 hits)">CAcert</a>, a free service for certificates of all kinds.</p>
<p>When you&#8217;ve got the cert sorted out, click the button &#8220;Edit Allowed Users&#8230;&#8221; and you&#8217;ll get to this screen:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz001.png" title="(96 hits)"><img class="aligncenter size-medium wp-image-801" title="Server AdminScreenSnapz001" src="http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz001-300x241.png" alt="" width="300" height="241" /></a></p>
<p>See to it that you&#8217;ve selected &#8220;For selected services below:&#8221; in the left half of the right pane and that &#8220;RADIUS&#8221; is selected in the list. Then use the plus sign below right to add all groups you want to manage through Radius. Don&#8217;t forget to click the &#8220;Save&#8221; button when you&#8217;re done.</p>
<p>If you have any regular wireless access points you want to add, you can do that through the Server Admin as well, but you can&#8217;t add any other devices this way.</p>
<p>Just to see if things are more or less right, try to start the Radius server and then check the logs. You can do that by selecting RADIUS in the left panel, click the &#8220;Logs&#8221; tab on top and then play with the &#8220;Start RADIUS&#8221; and &#8220;Stop RADIUS&#8221; button at the bottom of the screen:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz0061.png" title="(101 hits)"><img class="aligncenter size-medium wp-image-845" title="Server AdminScreenSnapz006" src="http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz0061-300x241.png" alt="" width="300" height="241" /></a></p>
<p>If it complains about the lack of any clients, don&#8217;t bother. Just leave it off, since we&#8217;ll add clients through the command line shortly.</p>
<p>Once you&#8217;ve played with this for a while and are satisfied that it is not too bad, you can leave the Radius server off. We&#8217;ll start it from the command line later.</p>
<blockquote><p>It&#8217;s important to understand that all the groups you select here, and only those groups, are copied over to the user database in the Radius server. Any users that are not in one of these groups cannot ever be enabled through Radius; they&#8217;re simply not seen by the Radius server.</p></blockquote>
<blockquote><p>Also important to understand is the fact that this is as far as Apple goes in its GUI implementation of Radius. That is, any user that is enabled for Radius this way can log in to any Radius enabled wireless access points on your net. They don&#8217;t make any distinction according to user or group as to what you can do, nor do they implement anything else but wireless access points. This means that for more sophisticated usage, you have to proceed on your own, largely through the command line and config files.</p></blockquote>
<h2>Add clients to radius</h2>
<p>A &#8220;client&#8221; is a piece of equipment that will ask the radius server to authenticate users, so clients are accesspoints, firewalls, maybe switches and routers. Each of these pieces of equipment that you want to have call the radius server needs to be configured in the server with its IP number and a shared secret (password). This shared secred is the same on both sides, so each piece has its secret shared with the radius server, but each pairing has another shared secret. If you want to add just Apple supported wireless access points, you can do that through Server Admin, but for everything else you have to do it as follows.</p>
<p>To add a client to the radius server, you use the radiusconfig utility on the OSX server:</p>
<pre>sudo radiusconfig -addclient 172.16.200.241 ssg5 firewall</pre>
<p>After you enter this command, radiusconfig will ask you for the shared secret. Remember it, because this is the same secret we will need to enter in the SSG-5 later.<em> A side note: the last parameter is the type and I gave it as &#8220;firewall&#8221;. As far as I can see, it&#8217;s purely descriptive and you can call it &#8220;bigbrownbear&#8221; for all the difference it makes.</em></p>
<p>If you check the list of &#8220;Base Stations&#8221; in Server Admin, you&#8217;ll should see this client in the list, at least if Radius is running:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz003.png" title="(107 hits)"><img class="aligncenter size-medium wp-image-811" title="Server AdminScreenSnapz003" src="http://ursecta.com/wp/wp-content/uploads/2010/05/Server-AdminScreenSnapz003-300x241.png" alt="" width="300" height="241" /></a></p>
<h2>Add the DEFAULT entries to the users file</h2>
<p>Even though Radius users are held in an sql-lite database under OSX, the users file still does exist and is read. In this file, we can add in rules that will be processed for any user that is accepted by Radius, so we can add on values to be returned to the Radius client (in our case, the firewall). In the users file, you also have access to some information from Open Directory on OSX, so the users file is the place where information is transformed from OSX Open Directory to Radius clients. This is where the magic happens. We write all our rules for the magic user &#8220;DEFAULT&#8221;, which matches any user accepted by Radius. More than one rule may match a real user, and all of the matching rules will be applied.</p>
<p>Open the &#8220;/etc/raddb/users&#8221; file on the server with pico as root:</p>
<pre>sudo pico /etc/raddb/users</pre>
<p>In that file, towards the end, in among the other &#8220;DEFAULT&#8221; rules, add this one:</p>
<pre>DEFAULT   Group-Name == "Parents"
     NS-User-Group = "majors"</pre>
<p>What this rule does is that it checks if the user under OSX in open directory belongs to a group called &#8220;Parents&#8221; and if so it sends the NS-User-Group attribute with the value &#8220;majors&#8221; to the client, in this case our firewall. We&#8217;ll add another rule:</p>
<pre>DEFAULT   Group-Name == "Children"
     NS-User-Group = "kids"</pre>
<p><em>Note: I made the group names very different on the OSX Open Directory side (&#8220;Parents&#8221; and &#8220;Children&#8221;) and on the Radius client side (&#8220;majors&#8221; and &#8220;kids&#8221;) just to make it extra clear which group is which.</em></p>
<h2>Set up authentication server on the SSG-5</h2>
<p>Now we have to tell the SSG-5 how to find and talk to the Radius server. Log in on the SSG-5, go to &#8220;Configuration&#8221; &#8211; &#8220;Auth&#8221; &#8211; &#8220;Auth Servers&#8221; and click &#8220;New&#8221;.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz001.png" title="(154 hits)"><img class="aligncenter size-medium wp-image-816" title="FirefoxScreenSnapz001" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz001-300x197.png" alt="" width="300" height="197" /></a></p>
<p>Give the OSX Server a name, any name. It&#8217;s used to refer to this server when you create policies in the SSG-5 later. Enter the IP number, and select the &#8220;Auth&#8221; under &#8220;Account type&#8221;.</p>
<p>In the lower part, select &#8220;Radius&#8221; radio button, set the &#8220;RADIUS Port&#8221; to 1812, which is the default on the OSX FreeRadius server. Set the &#8220;RADIUS Accounting Port&#8221; to 1813, even though we don&#8217;t use accounting in this example. In the field &#8220;Shared Secret&#8221; you have to enter the same shared secret you entered while defining the SSG-5 client on the OSX Server using radiusconfig (see above). Leave the other fields unchanged and click &#8220;Save&#8221; at the bottom of the screen.</p>
<h2>Add external groups to the SSG-5</h2>
<p>We configured the OSX FreeRadius, via the DEFAULTS in the users file, to return groups &#8220;majors&#8221; and &#8220;kids&#8221; depending on who is logging on. Now we have to set up these groups on the SSG-5 as well. Go to &#8220;Objects&#8221; &#8211; &#8220;Users&#8221; &#8211; &#8220;External Groups&#8221; and click &#8220;New&#8221;.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz002.png" title="(101 hits)"><img class="aligncenter size-medium wp-image-819" title="FirefoxScreenSnapz002" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz002-300x264.png" alt="" width="300" height="264" /></a></p>
<p>In &#8220;Group Name&#8221;, write &#8220;majors&#8221;, then select the &#8220;Auth&#8221; checkbox for &#8220;Group Type&#8221;. Click the Ok button, then repeat the process for the &#8220;kids&#8221; group.</p>
<h2>Now we do a policy</h2>
<p>Now we finally arrive at the writing of policies that make use of the groups. In this example, I&#8217;m going to limit access to the dn.se site, Sweden&#8217;s largest newspaper, and I&#8217;ll only make it accessible to OSX users that belong to the &#8220;Parents&#8221; group on OSX. To do this, I&#8217;ll first have to make a policy that by default disallows everyone from accessing dn.se, then add a policy that allow members of the external group &#8220;majors&#8221; to access it anyway (remember that the OSX group &#8220;Parents&#8221; is translated to the group &#8220;majors&#8221; in the users file, so the external group is &#8220;majors&#8221; on the SSG-5). Let&#8217;s first do the policy that disallows all access to dn.se for everyone.</p>
<p>Go to &#8220;Policy&#8221; &#8211; &#8220;Policies&#8221;.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz005.png" title="(90 hits)"><img class="aligncenter size-medium wp-image-822" title="FirefoxScreenSnapz005" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz005-300x138.png" alt="" width="300" height="138" /></a></p>
<p>Select from &#8220;Trust&#8221; in upper left, to &#8220;Untrust&#8221; in upper right dropbox, then click &#8220;New&#8221;.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz003.png" title="(97 hits)"><img class="aligncenter size-medium wp-image-826" title="FirefoxScreenSnapz003" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz003-300x162.png" alt="" width="300" height="162" /></a></p>
<p>Use dig or nslookup from the command line to find the IP number for dn.se. As of the writing of this post, it was a single IP number: 62.119.189.4.</p>
<p>When the form opens, give the policy a reasonable name like &#8220;No DN&#8221;, leave the source address set to &#8220;Any&#8221;, but change the destination address to &#8220;62.119.189.4&#8243; and put in &#8220;32&#8243; in the mask field. The &#8220;Action&#8221; dropdown should be set to &#8220;Reject&#8221; and you can leave everything else as it was and click &#8220;Ok&#8221;.</p>
<p>Use the move tools in the policy list (far right) to move this policy to the top of the list. The policies are processed from top to bottom, so we want to make sure the rejection happens before any other policy may allow the connection.</p>
<p>Add another policy from &#8220;Trust&#8221; to &#8220;Untrust&#8221;, then fill it in as in the following screen:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz006.png" title="(95 hits)"><img class="aligncenter size-medium wp-image-830" title="FirefoxScreenSnapz006" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz006-300x240.png" alt="" width="300" height="240" /></a></p>
<p>Give it another name, in this case &#8220;Allow DN&#8221;. You can now select the destination address from the address book entry dropbox so you don&#8217;t have to type it in, it&#8217;s just a convenience since the SSG-5 now knows about this IP from the previous policy. The &#8220;Action&#8221; dropbox should now be set to &#8220;Permit&#8221;.</p>
<p>If this was all we did, we just simply nullified the previous policy, at least if we put this one above it in the policy list, and that would be pointless. Instead, click on the &#8220;Advanced&#8221; button at the bottom of the screen.</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz008.png" title="(110 hits)"><img class="aligncenter size-medium wp-image-831" title="FirefoxScreenSnapz008" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz008-300x213.png" alt="" width="300" height="213" /></a></p>
<p>Now everything comes together. Enable &#8220;Authentication&#8221; by selecting that checkbox, then select &#8220;Auth Server&#8221; using the radio buttons. In the dropbox, select the auth server you created earlier, the MiniSL. Slightly to the right, you can select who is going to be authenticated and here you select &#8220;User Group&#8221;, then &#8220;External &#8211; majors&#8221;. If this selection isn&#8217;t available, check that you did define that external group as I described a bit earlier.</p>
<p>With all this done, save. In the list of policies, you should put this new policy at the top using the move tools in the last column so it ends up above the first policy we did that is set to reject connections to dn.se for everyone. The result should look like this:</p>
<p><a href="http://ursecta.com/wp/go.php?http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz009.png" title="(104 hits)"><img class="aligncenter size-medium wp-image-832" title="FirefoxScreenSnapz009" src="http://ursecta.com/wp/wp-content/uploads/2010/05/FirefoxScreenSnapz009-300x111.png" alt="" width="300" height="111" /></a></p>
<h2>Testing it all</h2>
<p>If you started the Radius server through Server Admin, go there and stop it first. Log in to the OSX server and open a terminal shell. Start the Radius server in debug mode from here by:</p>
<pre>sudo radiusd -X</pre>
<p>This should get your Radius server running and you&#8217;ll see how it handles requests. Now go to a browser on any other machine on the local net and try to open dn.se. You should get a login dialog from the browser itself and if you provide a username and password from someone who is defined in the OSX Workgroup manager, is in the &#8220;Parents&#8221; group, then you should get access, else not.</p>
<p>I hope it works for you. If not, explore the raclient tool as well, since it&#8217;s very useful for finding configuration errors. Once it all works, stop the Radius server on the command line and go start it from Server Admin instead, so it runs as it normally would.</p>
<p>A little remark: if you change settings in the users file, you have to stop and start the Radius server again each time, else it won&#8217;t see the changes.</p>
<p>I&#8217;m planning to do a post on hunt groups as well, but I haven&#8217;t done them yet, so it could be a while.</p>
<h2>Additional notes</h2>
<p>You will find files with all the predefined attributes in the folder /usr/share/freeradius. Each type of equipment has its own file. The attribute names I used above come from the file &#8220;dictionary.netscreen&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2010/05/osx-freeradius-netscreen-and-me/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Another neat machine</title>
		<link>http://ursecta.com/wp/2009/12/another-neat-machine/</link>
		<comments>http://ursecta.com/wp/2009/12/another-neat-machine/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 22:08:45 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=426</guid>
		<description><![CDATA[In my current upgrading of my local net, and in anticipation of my new ISP business account, which gives me a /28 segment of public IPs (16 adresses, of which 13 useable), I had to get VLAN capable switches to replace the cheapo Netgear Gigabit dumb switches I had. That way I can place my [...]]]></description>
			<content:encoded><![CDATA[<p>In my current upgrading of my local net, and in anticipation of my new ISP business account, which gives me a /28 segment of public IPs (16 adresses, of which 13 useable), I had to get VLAN capable switches to replace the cheapo Netgear Gigabit dumb switches I had. That way I can place my router/firewall anywhere I want without pulling a truckload of cables everywhere. I can also dedicate a public IP to a segment leading directly to a victim machine or virtual machine across a VLAN, for malware studies, and other little experiments.</p>
<p>After a lot of soulsearching and getting up to speed on lightly managed L2 switches, I settled for two HP Procurve 1810G with 24 ports each. I&#8217;ll probably get another 1810G 8 port unit, too.</p>
<p>So, I put one in the office and the other in the back room. First and foremost, these little buggers are fan-free. No moving parts. Lifetime warranty, low power (8 W or so). The totally silent part was my absolutely major requirement.<br />
<img src="http://ursecta.com/wp/wp-content/uploads/2009/12/DSC04392-1024x768.jpg" alt="DSC04392" title="DSC04392" width="550" class="aligncenter size-large wp-image-427" /><br />
This unit allows setting up using a browser and has trunking, VLANs, measurements and not least, monitoring ports. That is, I can hook into any other port and send that output through a selectable monitoring port. Ideal for sniffing on whatever port you desire.<br />
Another totally unexpected boon was that I was able to read the entire manual and learn it all. This is the first time in maybe ten years I&#8217;ve ever been able to learn all the features of a non-trivial piece of equipment. And that feels so good.</p>
<p>Oh, and I discovered that OSX Snow Leopard, both server and client, has a super simple graphic UI for setting up virtual interfaces matching VLANs. All I need now is a router/firewall with a couple of connectors, a number of zones, and ability to match zones to interfaces and VLANs. </p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/12/another-neat-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The cutest little muscle machine ever</title>
		<link>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/</link>
		<comments>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 17:36:05 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OSX Dev]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=382</guid>
		<description><![CDATA[I got me that brand new Apple Mini with Snow Leopard OSX Server unlimited edition included. This is such an adorable machine, you wouldn&#8217;t believe it. It has everything you can wish for in a server, as far as I can make out after just a couple of hours with it. It&#8217;s super easy to [...]]]></description>
			<content:encoded><![CDATA[<p>I got me <a href="http://ursecta.com/wp/go.php?http://www.apple.com/macmini/server/" target="_blank" title="(118 hits)">that brand new Apple Mini with Snow Leopard OSX Server unlimited edition</a> included. This is such an adorable machine, you wouldn&#8217;t believe it. It has everything you can wish for in a server, as far as I can make out after just a couple of hours with it. It&#8217;s super easy to set up and to monitor. It&#8217;s small, it&#8217;s beautiful, it&#8217;s almost totally noiseless, and seems to use hardly any power. When you feel the case, it&#8217;s just barely warmer than the environment and the same goes for the power supply. When I switch off everything else in the room, I can only hear the server running from less than a meter&#8217;s distance. It seems to produce about the same noise level my 13&#8243; white MacBook does when it&#8217;s just started and perfectly cool. In other words, practically inaudible. Still, it&#8217;s running two 500 Gb drives in there, which I&#8217;ve set up as a mirrored (Raid 1) set.</p>
<p>I&#8217;ll probably brag about this system some more once I get to know it better. But meanwhile, it&#8217;s the nicest computer purchasing experience I&#8217;ve ever had. Except for the Mac Pro. And the MacBook. And the iMac, of course. And the iPhone. And Apple TV.</p>
<p><img class="aligncenter size-full wp-image-385" title="server_dimensions_20091020" src="http://ursecta.com/wp/wp-content/uploads/2009/11/server_dimensions_20091020.jpg" alt="server_dimensions_20091020" width="207" height="142" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/11/the-cutest-little-muscle-machine-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powering up your ReadyNAS NV+ remotely</title>
		<link>http://ursecta.com/wp/2009/03/powering-up-your-readynas-nv-while-indecent/</link>
		<comments>http://ursecta.com/wp/2009/03/powering-up-your-readynas-nv-while-indecent/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 21:37:34 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[ReadyNAS]]></category>
		<category><![CDATA[remote control]]></category>
		<category><![CDATA[remote power-on]]></category>
		<category><![CDATA[wake on lan]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=212</guid>
		<description><![CDATA[I have two ReadyNAS NV+ units from Netgear and I&#8217;ve put them in a backroom where nobody normally goes. I don&#8217;t either. Now, for extra security in case of fire or a break-in, I&#8217;m actually moving them to a neighbor&#8217;s spare room, which means I can&#8217;t easily get at them anymore and the energy consumption [...]]]></description>
			<content:encoded><![CDATA[<p>I have two ReadyNAS NV+ units from Netgear and I&#8217;ve put them in a backroom where nobody normally goes. I don&#8217;t either. Now, for extra security in case of fire or a break-in, I&#8217;m actually moving them to a neighbor&#8217;s spare room, which means I can&#8217;t easily get at them anymore and the energy consumption could become a problem. As could the constant whining, but I don&#8217;t think so.</p>
<p>The problem with the ReadyNAS is that even though you can power them down through their config pages using a browser, there is no way to switch them on again short of actually, physically, walking over there and pressing the blue button. There&#8217;s no wake-on-lan or any other similar provision. The only alternative is to have it power on and off according to a schedule, which is what I have done so far. But if you do that, that schedule will be unnecessarily liberal, just in case you need access to the units. I&#8217;m mainly using them for Retrospect backups and disk images when doing recovery, and very little else, so I don&#8217;t even use them every day. I calculated that the 16 hours a day these two boxes are running, costs me around 900 kWh per year. That&#8217;s around $150 in electricity per year. And it&#8217;s ecologically rude, too.</p>
<p><span id="more-212"></span></p>
<p><img class="alignnone" title="Two NAS" src="/images/20090317/p07.jpg" alt="" width="640" height="480" /></p>
<p>So, I got me a little unit from <a href="http://ursecta.com/wp/go.php?http://www.controlbyweb.com/" target="_blank" title="(252 hits)">Control by Web</a>. The unit is called <a href="http://ursecta.com/wp/go.php?http://www.controlbyweb.com/webrelay/" target="_blank" title="(259 hits)">WebRelay</a> and you can get it in several different versions. The <a href="http://ursecta.com/wp/go.php?http://www.controlbyweb.com/webrelay-quad/index.html" target="_blank" title="(170 hits)">version I ordered</a> has four outputs and is powered by 5V or PoE (hoping I&#8217;ll ever get a switch with PoE, that looked like a good idea). This thing actually has a built-in web server that let&#8217;s you configure and use it.</p>
<p><img class="alignnone" title="Quad unit" src="/images/20090317/p02.jpg" alt="" width="640" height="480" /></p>
<p>I also ordered a separate power supply from an unrelated brand, so I had to cut off the plug and just screw down the bare leads.</p>
<p><img class="alignnone" title="Cutting the plug" src="/images/20090317/p05.jpg" alt="" width="640" height="480" /></p>
<p>Now that I had the WebRelay powered up, I could configure it from a browser (see the <a href="http://ursecta.com/wp/go.php?http://www.controlbyweb.com/webrelay-quad/webrelay-quad_um_V2.2.pdf" target="_blank" title="(146 hits)">downloadable user manual</a> for details). It&#8217;s done using a little arp and a little browser work. That&#8217;s it. Very easy. The end result is that you can switch on, switch off, or pulse, any of the four outputs over the lan or the internet.</p>
<p>Time to modify the ReadyNAS boxes. Time to give you a straight warning, too.</p>
<p><em>I&#8217;m only describing what I did, not recommending you do the same. By opening up the box like this <strong>you definitely void any warranty you may have</strong>. You have a fair chance of <strong>destroying</strong> the unit, <strong>electrocuting</strong> yourself, and <strong>setting fire to your house</strong>. Your wife may <strong>divorce</strong> you for making burn holes in the curtains or setting the house on fire. Your dog may bite you. Your parents may disinherit you. So, don&#8217;t do it. Unless you know what you&#8217;re doing, and if so, you wouldn&#8217;t be reading this anyway, you&#8217;d just do it.</em></p>
<p>So, that being said, let&#8217;s prepare the unit for slaughter. First of all, make four labels for the discs. Strangely, the disc carriages have no identification on the front, so they&#8217;re easy to mix up when putting back and I can&#8217;t imagine that would do your RAID volumes much good.</p>
<p><img class="alignnone" title="The discs" src="/images/20090317/p10.jpg" alt="" width="480" height="640" /></p>
<p>This is what the discs should look like, properly labeled:</p>
<p><img class="alignnone" title="Labeled discs" src="/images/20090317/p13.jpg" alt="" width="640" height="480" /></p>
<p>Now, put those aside in some safe spot.</p>
<p>Remove the four screws from the back panel on the ReadyNAS:</p>
<p><img class="alignnone" title="Backside screws" src="/images/20090317/p14.jpg" alt="" width="640" height="480" /></p>
<p>Take off both side panels. On the left side (seen from the back) you have to unplug the flatcable connector close to the top. (It connects the display to the motherboard.) Remove the four screws, including the one under the warranty label (you did read my disclaimer above, didn&#8217;t you?).</p>
<p><img class="alignnone" title="Left side" src="/images/20090317/p15.jpg" alt="" width="640" height="480" /></p>
<p>The right side also has four screws which you should remove while fending off any four-year-olds that try to stuff half-eaten apples into the unit:</p>
<p><img class="alignnone" title="Right side screws" src="/images/20090317/p16.jpg" alt="" width="640" height="480" /></p>
<p>Remove the four screws from the top panel:</p>
<p><img class="alignnone" title="Top panel" src="/images/20090317/p17.jpg" alt="" width="640" height="480" /></p>
<p>And this is the access opening for adding RAM, by the way:</p>
<p><img class="alignnone" title="RAM access" src="/images/20090317/p18.jpg" alt="" width="640" height="480" /></p>
<p>The back panel with the main connector and the big fan now comes off easily. Disconnect the fan feed at the bottom left in the picture and put the whole thing aside:</p>
<p><img class="alignnone" title="Back panel removal" src="/images/20090317/p22.jpg" alt="" width="480" height="640" /></p>
<p>Next, disconnect the huge Molex power connector on the right side and slide out the power supply. Put it aside as well:</p>
<p><img class="alignnone" title="Power supply" src="/images/20090317/p23.jpg" alt="" width="480" height="640" /></p>
<p>Just for kicks, behind the power supply, up agains the front panel, is a board with the LCD display on it (the unit is upside down in this shot):</p>
<p><img class="alignnone" title="LCD panel board" src="/images/20090317/p25.jpg" alt="" width="640" height="480" /></p>
<p>Now, take out the seven screws that hold the SATA backplane in place. So far all the screws were of the same kind, but these are different, so keep track of which is which:</p>
<p><img class="alignnone" title="backplane screws" src="/images/20090317/p23a.jpg" alt="" width="480" height="640" /></p>
<p>Now you can easily unplug the SATA backplane and slide it out:</p>
<p><img class="alignnone" title="Slide out the backplane" src="/images/20090317/p27.jpg" alt="" width="640" height="480" /></p>
<p>Turning it over, you&#8217;ll see the SATA connectors:</p>
<p><img class="alignnone" title="SATA connectors" src="/images/20090317/p28.jpg" alt="" width="640" height="480" /></p>
<p>Next, we&#8217;ll slide out the entire motherboard (the unit is face down in this shot):</p>
<p><img class="alignnone" title="Motherboard slides out" src="/images/20090317/p29.jpg" alt="" width="640" height="480" /></p>
<p>And you&#8217;ll notice that the motherboard and the frontpanel LEDs and switches board are together on a single carrier of steel:</p>
<p><img class="alignnone" title="Board carrier" src="/images/20090317/p30.jpg" alt="" width="480" height="640" /></p>
<p>If you look carefully, you&#8217;ll see a little bit too many switches here. Netgear simply put in two switches behind each of the front panel buttons. If you line up the board with the front panel it becomes obvious:</p>
<p><img class="alignnone" title="Front panel lineup" src="/images/20090317/p31.jpg" alt="" width="640" height="480" /></p>
<p>Taking a peek into the box, you can see that the two frontpanel buttons (&#8220;backup&#8221; and &#8220;on/off&#8221;) are wide enough to press both their respective buttons at the same time:</p>
<p><img class="alignnone" title="Front panel buttons from the back side" src="/images/20090317/p32.jpg" alt="" width="640" height="480" /></p>
<p>Beeping out the wiring with a Fluke 77 (from the &#8217;80s), it becomes clear that the switches are in parallel, as one would expect (a sight of relief, actually, since if there had been some other arrangement, I would have been up the proverbial creek here):</p>
<p><img class="alignnone" title="Switch wiring from behind" src="/images/20090317/p33.jpg" alt="" width="640" height="480" /></p>
<p>This makes a terrific amount of sense, actually. Not only will the front panel buttons be nicely balanced, but you have built-in redundancy that is bound to prolong the useful life of the unit considerably. I imagine those switches to be the weak point is the system, so having them doubled is great.</p>
<p>To beep out the traces, you need a multimeter with a beep function that won&#8217;t blow out your circuits if you misapply it. A regular ohmmeter may deceive you since it gives much too little load, and a battery and beeper may overload the circuits. On the Fluke, this is the setting:</p>
<p><img class="alignnone" title="Fluke beep setting" src="/images/20090317/p36.jpg" alt="" width="480" height="640" /></p>
<p>Following the paths and confirming by beeping with the Fluke, we find that these two pins on the connector are connected together when pressing the on/off button:</p>
<p><img class="alignnone" title="pinout of connector" src="/images/20090317/p34.jpg" alt="" width="640" height="480" /></p>
<p>You can see in the images that I took out the front panel board from the carrier, but you don&#8217;t need to do that at all. You can get at all the places as is.</p>
<p>Take a piece of wire and strip it out like in the picture. I chose microphone wire. It should have been a dual lead, each 0.2 mm2, but the store delivered a quad lead. No matter. I cut the extra two leads off very short as well as the screen. Add a bit of solder to the leads:</p>
<p><img class="alignnone" title="Stripped leads" src="/images/20090317/p37.jpg" alt="" width="640" height="480" /></p>
<p>We need to tie down the cable to the board somehow and I chose to use the connector leads on the motherboard side for that. I wrapped a small tie around one of the legs. Don&#8217;t wrap it around multiple legs, since you may push them together if you pull too hard on the tie.</p>
<p><img class="alignnone" title="Tie" src="/images/20090317/p38.jpg" alt="" width="640" height="480" /></p>
<p>And then I tied down the cable: (don&#8217;t forget to trim down the tie)</p>
<p><img class="alignnone" title="Strap it down" src="/images/20090317/p39.jpg" alt="" width="640" height="480" /></p>
<p>Finally, solder down the two leads to the right pins on the connector (doesn&#8217;t matter which lead goes to which pin, it&#8217;s symmetrical):</p>
<p><img class="alignnone" title="solder to the pins" src="/images/20090317/p40.jpg" alt="" width="640" height="480" /></p>
<p>Cut the cable to about this length, so it sticks out a bit beyond the end of the motherboard:</p>
<p><img class="alignnone" title="length of cable" src="/images/20090317/p41.jpg" alt="" width="640" height="480" /></p>
<p>Now comes the time to the chassis connector. I chose a 3.5 mm stereo phone plug. <strong>Don&#8217;t use mono!</strong> None of the two leads we use should be connected to the chassis of the ReadyNAS, so we have to have a stereo plug and use only the tip and the distal ring.</p>
<p><img class="alignnone" title="Stereo 3.5 mm chassis connector" src="/images/20090317/p42.jpg" alt="" width="640" height="480" /></p>
<p>Flipping it over we can identify the two tabs we need to use:</p>
<p><img class="alignnone" title="other side of chassis connector" src="/images/20090317/p43.jpg" alt="" width="640" height="480" /></p>
<p>So, let&#8217;s strip the cable at this end. This time I cut the shield short, but saved the two unused leads as an anchor.</p>
<p><img class="alignnone" title="stripping" src="/images/20090317/p44.jpg" alt="" width="640" height="480" /></p>
<p>I&#8217;ll solder those to the tab that connects the chassis, that is the tab closest to the threaded cylinder to the right in the image above. That way, the cable is well anchored. Give a little extra slack to the other two leads, solder all of them carefully:</p>
<p><img class="alignnone" title="soldered" src="/images/20090317/p45.jpg" alt="" width="640" height="480" /></p>
<p>Slide the motherboard and front panel board on their carrier back into the case, while letting the cable with the chassis connector dangle on the outside:</p>
<p><img class="alignnone" title="motherboard slides in" src="/images/20090317/p47.jpg" alt="" width="640" height="480" /></p>
<p>Take care to place the cable to the side of the backplane connector. There&#8217;s no lack of space, really:</p>
<p><img class="alignnone" title="backplane connector" src="/images/20090317/p48.jpg" alt="" width="640" height="480" /></p>
<p>Then slide in the backplane and put back the seven screws that holds it to the chassis:</p>
<p><img class="alignnone" title="backplane" src="/images/20090317/p49.jpg" alt="" width="640" height="480" /></p>
<p>Slide in the power supply and connect the big white Molex:</p>
<p><img class="alignnone" title="power supply" src="/images/20090317/p50.jpg" alt="" width="640" height="480" /></p>
<p>Reconnect the LCD display cable to the motherboard (the unit is face down in this shot):</p>
<p><img class="alignnone" title="LCD connector" src="/images/20090317/p51.jpg" alt="" width="640" height="480" /></p>
<p>It&#8217;s time for drilling a hole in the backpanel for our connector. Find a drill bit that is just a tiny size larger than the threaded part of your chassis connector, then drill for king and country.</p>
<p><img class="alignnone" title="drill" src="/images/20090317/p46.jpg" alt="" width="640" height="480" /></p>
<p>Except, <em>think</em> a bit first about the exact spot, so that you won&#8217;t conflict with components on the motherboard. Don&#8217;t rush into it, or you&#8217;ll end up with a back panel looking like a swiss cheese. After drilling, bring the back panel close enough so you can put in the new connector and don&#8217;t forget to reconnect the fan:</p>
<p><img class="alignnone" title="connector" src="/images/20090317/p52.jpg" alt="" width="640" height="480" /></p>
<p>Anchor the connector with the threaded ring that comes with the connector, and tighten it well, but don&#8217;t go wild:</p>
<p><img class="alignnone" title="nut" src="/images/20090317/p53.jpg" alt="" width="640" height="480" /></p>
<p>This is the right spot to drill that hole (I hope you read this far before starting to drill&#8230;):</p>
<p><img class="alignnone" title="backpanel" src="/images/20090317/p54.jpg" alt="" width="480" height="640" /></p>
<p>Let&#8217;s make the external cable. Don&#8217;t make it too long, since it&#8217;s not impossible it will work as an antenna and bring in external electrical noise into the system. Make it just long enough and have the shield connected at the ReadyNAS end (see below):</p>
<p><img class="alignnone" title="External cable" src="/images/20090317/p55.jpg" alt="" width="640" height="480" /></p>
<p>Screw apart the plug and slide the housing over the cable (it&#8217;s so shameful to discover you forgot after soldering on the connector, but in this case you can get it on from the other end, of course):</p>
<p><img class="alignnone" title="housing connector" src="/images/20090317/p56.jpg" alt="" width="640" height="480" /></p>
<p>Strip the cable, preserving the shield this time, but cutting off the two extra leads (if you have those) and make the remaining leads about this long:</p>
<p><img class="alignnone" title="leads" src="/images/20090317/p59.jpg" alt="" width="640" height="480" /></p>
<p>It&#8217;s best if you have some kind of clamp to hold on to the plug while soldering, but sticking it into the chassis connector works if you don&#8217;t:</p>
<p><img class="alignnone" title="into connector" src="/images/20090317/p60.jpg" alt="" width="640" height="480" /></p>
<p>Solder the shield to the long, outer ring connection and the two active leads to the tip and middle ring, like so:</p>
<p><img class="alignnone" title="soldered" src="/images/20090317/p61.jpg" alt="" width="640" height="480" /></p>
<p>If you have teflon crimp tubing, you could have used that to protect the solder joints, but I don&#8217;t have any. Or can&#8217;t find it, at least.</p>
<p>For clarification, it&#8217;s the tip and the distal ring that are connected to the active leads and to the front panel switch:</p>
<p><img class="alignnone" title="plug" src="/images/20090317/p62.jpg" alt="" width="640" height="480" /></p>
<p>The other end of the external cable should simply be stripped to the two active leads. Cut the other leads and the screen short. If you feel like it, solder the ends so they won&#8217;t fray (not a good idea for higher amperage leads like for house lighting, but quite ok for low voltage electronics):</p>
<p><img class="alignnone" title="solder leads" src="/images/20090317/p63.jpg" alt="" width="640" height="480" /></p>
<p>And connect them to the first relay in the WebRelay unit. Note that you have to connect to the &#8220;C&#8221; (Common) terminal and to the &#8220;NO&#8221; (Normally Open) terminal. <strong>Not to the &#8220;NC&#8221; (Normally Closed) under any circumstances!.</strong> (If you do, you&#8217;ll have the same effect as if you pressed the power button on the ReadyNAS forever without ever letting go. Diagnostics&#8230; reset&#8230; etc, etc&#8230;)</p>
<p><img class="alignnone" title="connect to relay 1" src="/images/20090317/p64.jpg" alt="" width="640" height="480" /></p>
<p>Connect the WebRelay to the local net:</p>
<p><img class="alignnone" title="connect the LAN" src="/images/20090317/p65.jpg" alt="" width="640" height="480" /></p>
<p>Follow the WebRelay user manual to give it an IP number, then configure it via the browser interface (read up on it yourself). Then finally, cross your fingers, click &#8220;Pulse&#8221; in the web interface (I set it to a 1.5 second pulse) and watch the ReadyNAS start&#8230;</p>
<p>&#8230;or blow up, or whatever. Mine started. Yihaa!!!</p>
<p>So now I can start this ReadyNAS from anywhere in the house, or even from anywhere on the internet if I open a port in the main router (which I didn&#8217;t). I can shut it down using the regular ReadyNAS web interface. I&#8217;m a very happy person and tomorrow I&#8217;ll do the other unit.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/03/powering-up-your-readynas-nv-while-indecent/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Merging mice</title>
		<link>http://ursecta.com/wp/2009/02/merging-mice/</link>
		<comments>http://ursecta.com/wp/2009/02/merging-mice/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 16:46:56 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[disassembly]]></category>
		<category><![CDATA[intuos]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[switch bounce]]></category>
		<category><![CDATA[wacom]]></category>

		<guid isPermaLink="false">http://ursecta.com/wp/?p=197</guid>
		<description><![CDATA[I&#8217;ve got this Wacom Intuos 3 tablet and I like it. The mouse, in particular, is very nice. Good feeling. As long as it works. The problem I&#8217;ve had is that my first mouse started to give switch bounce on the left button, and a problem with the scroll wheel, after about 16 months. Out [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got this Wacom Intuos 3 tablet and I like it. The mouse, in particular, is very nice. Good feeling. As long as it works. The problem I&#8217;ve had is that my first mouse started to give switch bounce on the left button, and a problem with the scroll wheel, after about 16 months. Out of warranty, of course. So I ordered a new one for around $40. That one lasted eight months before it succumbed to switch bounce, but this time it was the right button. The distributor just sent me a replacement for free, and didn&#8217;t ask for the defective one in return. So I ended up with one good and two bad Wacom mice. Since I&#8217;m pretty sure the new one won&#8217;t last more than a year, or max two, it seemed prudent to start assembling a fully working spare from the two failed mice. That&#8217;s what this picture story is about.</p>
<p><span id="more-197"></span>My first mouse has the model number ZC-100-00, while the two more recent ones have the number ZC-100-02. Internally, however, I see no difference, as you&#8217;ll notice.</p>
<p>This is how the oldest one looks before being disassembled:</p>
<p><img class="alignnone" title="Old mouse" src="/images/20090228/DSC03517.jpg" alt="" width="640" height="480" /></p>
<p><img class="alignnone" title="Old mouse" src="/images/20090228/DSC03518.jpg" alt="" width="640" height="480" /></p>
<p><img class="alignnone" title="Old mouse" src="/images/20090228/DSC03519.jpg" alt="" width="640" height="480" /></p>
<p>So, let&#8217;s take it apart. On the bottom, there&#8217;s a felt mat loosely glued to a stiff piece of hard and transparent plastic. Insert a thin screwdriver between the stiff plastic and the case and carefully fold back, starting from the side away from the buttons, that is the side where the the label &#8220;Wacom&#8221; is on the mouse.</p>
<p><img class="alignnone" title="Taking off the bottom plastic" src="/images/20090228/DSC03524.jpg" alt="" width="640" height="480" /></p>
<p>Don&#8217;t peel off the whole thing, and don&#8217;t bend it too sharply either, since you may want to put it back later. Peeling of 2-3 cm should be enough to get at the screw below it. Unscrew the screw.</p>
<p><img class="alignnone" title="Unscrewing the bottom screw" src="/images/20090228/DSC03527.jpg" alt="Unscrewing the bottom screw" width="640" height="480" /></p>
<p>There&#8217;s only this one screw so now you can easily open the case from this side and unhook it from the other side.</p>
<p><img class="alignnone" title="Opening the case" src="/images/20090228/DSC03528.jpg" alt="" width="640" height="480" /></p>
<p>Now, admire the inside and take note of all the potential spare parts you see inside the top half.</p>
<p><img class="alignnone" title="Inside upper case" src="/images/20090228/DSC03529.jpg" alt="" width="640" height="480" /></p>
<p>The lower part is more interesting for our immediate purpose. Note from left to right: the scroll wheel in it&#8217;s optical encoder, the induction spool that picks up power and transmits information to the tablet (I assume), the ballast weight to make it feel more substantial, and below it all, the green circuit board.</p>
<p>There are five switches on this circuitboard. The two red switches are for the side buttons. Two other very similar switches, but entirely black, are to the left, one in each corner, and they are for the two regular mouse buttons. Finally, the scroll wheel rests on a different kind of switch for clicking, but it is hidden from view in this image. You&#8217;ll see it better later.</p>
<p><img class="alignnone" title="Circuit board in case" src="/images/20090228/DSC03530.jpg" alt="" width="640" height="480" /></p>
<p>The circuit board isn&#8217;t fixed to the case in any way, but it cannot be removed yet, since both the ballast weight and the induction spool hold it down.</p>
<p><img class="alignnone" title="Sideview of board in case" src="/images/20090228/DSC03531.jpg" alt="" width="640" height="480" /></p>
<p>The scroll wheel, however, is just resting in a fork, so that is not a problem. (Please disregard the disgusting hairs and muck you see and which very likely explains why the optical encoder to the left had a problem as well). To the left you see the optical encoder, as I already pointed out, and to the right you see the switch the scroll wheel axle rests on, and that allows you to click the wheel. Oh, by the way, if you think the scroll wheel has too much resistance, you can see the metal notched shim next to the encoder to the left. That&#8217;s what you need to attack in your useable mouse. I don&#8217;t mind the resistance, so I didn&#8217;t touch it.</p>
<p><img class="alignnone" title="View of scroll wheel and dirt" src="/images/20090228/DSC03533.jpg" alt="" width="640" height="480" /></p>
<p>Now, remove the ballast.</p>
<p><img class="alignnone" title="Removing ballast" src="/images/20090228/DSC03535.jpg" alt="" width="640" height="480" /></p>
<p>The induction spool is resting over a plastic pin sticking up from the lower case and held in place by a rubber ring and some silicon glue.</p>
<p><img class="alignnone" title="Rubber ring and spool" src="/images/20090228/DSC03537.jpg" alt="" width="640" height="480" /></p>
<p>Now, take care not to damage the leads from the spool to the circuitboard, while you lift off the rubber ring with your fingers. Quite easy to do. That silicon doesn&#8217;t do much.</p>
<p><img class="alignnone" title="Rubber ring is off" src="/images/20090228/DSC03541.jpg" alt="" width="640" height="480" /></p>
<p>Now you can lift off the circuitboard with scroll wheel and all.</p>
<p><img class="alignnone" title="Lift off board" src="/images/20090228/DSC03543.jpg" alt="" width="640" height="480" /></p>
<p>And pull out the wheel from the encoder.</p>
<p><img class="alignnone" title="Scroll wheel removed" src="/images/20090228/DSC03545.jpg" alt="" width="640" height="480" /></p>
<p>The side with the thicker part is the side that goes into the encoder. To the right and up in the next picture. Remember that.</p>
<p><img class="alignnone" title="Scroll wheel on its own" src="/images/20090228/DSC03547.jpg" alt="" width="640" height="480" /></p>
<p>So, which switch should I take? The two normal button switches, the black ones, are suspect in this mouse. I know the left one is bad and I don&#8217;t trust the right one, so I&#8217;m having my eye on the two red switches. I see absolutely no difference in these switches except the color, but you can feel a slightly higher resistance in the red ones, so I think that is the difference. Since I think there&#8217;s a certain logic in having my right mouse button being slightly stiffer, I go for a red switch to put in place of the right switch in the other defect mouse. This is the one I&#8217;m going to take:</p>
<p><img class="alignnone" title="Replacement red switch" src="/images/20090228/DSC03548.jpg" alt="" width="640" height="480" /></p>
<p>&#8230;and put in the place of this black one in the other mouse:</p>
<p><img class="alignnone" title="Black defect switch" src="/images/20090228/DSC03549.jpg" alt="" width="640" height="480" /></p>
<p>To do that, I have to desolder the bad switch in mouse nb 2:</p>
<p><img class="alignnone" title="Desolder bad switch" src="/images/20090228/DSC03550.jpg" alt="" width="640" height="480" /></p>
<p>And the good, red switch from mouse nb 1:</p>
<p><img class="alignnone" title="Desolder good switch" src="/images/20090228/DSC03551.jpg" alt="" width="640" height="480" /></p>
<p>Oh, just a by the way, this is a good view of the optical encoder and the left mouse button switch:</p>
<p><img class="alignnone" title="Optical encoder" src="/images/20090228/DSC03556.jpg" alt="" width="640" height="480" /></p>
<p>The next steps require a few tools. First, a good temperature regulated and narrow-tipped soldering iron so you won&#8217;t turn the board or switch into a pool of burnt plastic. I recommend a 30 year old Weller with Curie tips, in a kitchen environment:</p>
<p><img class="alignnone" title="Weller station" src="/images/20090228/DSC03557.jpg" alt="" width="640" height="480" /></p>
<p>Use a fine tip:</p>
<p><img class="alignnone" title="Fine tip" src="/images/20090228/DSC03559.jpg" alt="" width="640" height="480" /></p>
<p>You also need either a tin suction tool with moderately worn teflon tip:</p>
<p><img class="alignnone" title="Tin suction" src="/images/20090228/DSC03560.jpg" alt="" width="640" height="480" /></p>
<p>&#8230;or soldering wick:</p>
<p><img class="alignnone" title="Soldering wick" src="/images/20090228/DSC03561.jpg" alt="" width="640" height="480" /></p>
<p>Personally, I much prefer the suction tool. You also need something to hold the circuit board, but I mislaid my circuit board frame, so I have to hold on to the circuitboard with one finger, while burning the others. Don&#8217;t follow my example.</p>
<p>Heat and suck off the liquid tin on each pin of the switch to remove. This is how it looks after one has been liberated:</p>
<p><img class="alignnone" title="After tin removal from one pin" src="/images/20090228/DSC03563.jpg" alt="" width="640" height="480" /></p>
<p>Carefully melting and removing the tin from the other pin, then carefully taking out the switch should leave the circuitboard intact. If you can&#8217;t do it without destroying this circuitboard, you&#8217;ll probably destroy the other one as well and end up with nothing, so take care.</p>
<p><img class="alignnone" title="After removing switch" src="/images/20090228/DSC03564.jpg" alt="" width="640" height="480" /></p>
<p>The good switch after removal:</p>
<p><img class="alignnone" title="The good switch" src="/images/20090228/DSC03566.jpg" alt="" width="640" height="480" /></p>
<p>Now the turn comes to the other board where the right switch needs to be removed.</p>
<p><img class="alignnone" title="Bad switch to remove" src="/images/20090228/DSC03567.jpg" alt="" width="640" height="480" /></p>
<p>Turn it over</p>
<p><img class="alignnone" title="Underside bad switch" src="/images/20090228/DSC03569.jpg" alt="" width="640" height="480" /></p>
<p>Heat and suck off (or wick off) the tin:</p>
<p><img class="alignnone" title="Tin removed" src="/images/20090228/DSC03572.jpg" alt="" width="640" height="480" /></p>
<p>Carefully take out the bad switch. Check that the board is intact and no tin in the way for the new switch:</p>
<p><img class="alignnone" title="Switch removed, top side" src="/images/20090228/DSC03573.jpg" alt="" width="640" height="480" /></p>
<p>And check the bottom too:</p>
<p><img class="alignnone" title="Bottom side, after removing switch" src="/images/20090228/DSC03574.jpg" alt="" width="640" height="480" /></p>
<p>Put in the new red switch. The orientation doesn&#8217;t matter as far as I can make out (there are only two ways to put it in and both work fine):</p>
<p><img class="alignnone" title="New switch in place, bottom" src="/images/20090228/DSC03575.jpg" alt="" width="640" height="480" /></p>
<p>Check the top side and make sure the switch is flush with the surface of the circuit board:</p>
<p><img class="alignnone" title="New switch top side" src="/images/20090228/DSC03576.jpg" alt="" width="640" height="480" /></p>
<p>Now we have three red switches and one black. Who cares.</p>
<p><img class="alignnone" title="Three red switches" src="/images/20090228/DSC03577.jpg" alt="" width="640" height="480" /></p>
<p>Time to solder in the new switch. I&#8217;m using bad, bad, leadbased solder. To my defense, however, this roll is also 30 years old. And still almost full. The point I do want to make is that it should be thin. And with flux, of course.</p>
<p><img class="alignnone" title="Leadbased solder" src="/images/20090228/DSC03579.jpg" alt="" width="640" height="480" /></p>
<p>Solder the switch into place, taking care not to cold solder and at the same time keep the amount of solder to just enough. This is how it should look after soldering:</p>
<p><img class="alignnone" title="After soldering" src="/images/20090228/DSC03581.jpg" alt="" width="640" height="480" /></p>
<p>Time to reassemble mouse nb 2. Clean out the bottom case first (I blew on it):</p>
<p><img class="alignnone" title="Clean bottom case" src="/images/20090228/DSC03583.jpg" alt="" width="640" height="480" /></p>
<p>Put back the circuit board, taking care to thread the spool over the pin:</p>
<p><img class="alignnone" title="Putting back the circuit board" src="/images/20090228/DSC03584.jpg" alt="" width="640" height="480" /></p>
<p>Put back the rubber ring with the silicon on the pin:</p>
<p><img class="alignnone" title="Rubber ring in place" src="/images/20090228/DSC03585.jpg" alt="" width="640" height="480" /></p>
<p>You may want to clean the scroll wheel if it&#8217;s grubby, then lift the circuit board a bit, stick the scroll wheel axis into the encoder, twisting it until it fits, then lower the circuit board back down:</p>
<p><img class="alignnone" title="Scroll wheel back in place" src="/images/20090228/DSC03588.jpg" alt="" width="640" height="480" /></p>
<p>Screw back the ballast into place:</p>
<p><img class="alignnone" title="Ballast put back" src="/images/20090228/DSC03590.jpg" alt="" width="640" height="480" /></p>
<p>The upper case has two slots:</p>
<p><img class="alignnone" title="Slot in upper case" src="/images/20090228/DSC03591.jpg" alt="" width="640" height="480" /></p>
<p>&#8230;and the lower case has corresponding tabs:</p>
<p><img class="alignnone" title="Lower case tab" src="/images/20090228/DSC03592.jpg" alt="" width="640" height="480" /></p>
<p>&#8230;so fit these together first:</p>
<p><img class="alignnone" title="Fit tabs into slots" src="/images/20090228/DSC03593.jpg" alt="" width="640" height="480" /></p>
<p>Then snap case together and put the screw back:</p>
<p><img class="alignnone" title="Screw back in" src="/images/20090228/DSC03594.jpg" alt="" width="640" height="480" /></p>
<p>Now, press back the stiff plastic (with or without the textile mat, in my case without):</p>
<p><img class="alignnone" title="Bottom plastic" src="/images/20090228/DSC03595.jpg" alt="" width="640" height="480" /></p>
<p>Pressing it hard usually makes it stick again:</p>
<p><img class="alignnone" title="Press hard" src="/images/20090228/DSC03596.jpg" alt="" width="640" height="480" /></p>
<p>So I&#8217;m left with the textile I took off the good mouse. (Note, the beginning of this story shows how to take off the bottom plastic without peeling off the textile, but my first try involved mouse nb 2, and there I first took off the textile, and only then the transparent plastic base sheet.)</p>
<p><img class="alignnone" title="The leftover mat" src="/images/20090228/DSC03597.jpg" alt="" width="640" height="480" /></p>
<p>So, now I have two fully functional Wacom mice. And a third non-functional that I&#8217;ll save for more spare parts. I&#8217;m sure I&#8217;ll need it.</p>
<p><img class="alignnone" title="Two new mice" src="/images/20090228/DSC03600.jpg" alt="" width="640" height="480" /></p>
<p>The repaired mouse doesn&#8217;t have the textile mat underneath, and I glides considerably more easily. So, I don&#8217;t know which I prefer, actually. (To the left, the brand new replacement mouse I got.)</p>
<p><img class="alignnone" title="Underside of both mice" src="/images/20090228/DSC03603.jpg" alt="" width="640" height="480" /></p>
<p>Once assembled, I compared the feeling of the repaired mouse to the brand new one, and yes, there is more resistance on the right mouse button compared to the left and to both buttons on the new mouse, so the red switch has a higher spring load. It may even possibly have a slightly longer stroke, but I&#8217;m not sure. But it feels just fine, I like it.</p>
<p>To see me test the repaired mouse in WoW, click the image. In the movie, I&#8217;m running using both mouse buttons and using the scroll wheel button. I&#8217;m changing direction using right button. Changing camera using left button and zooming using the scroll wheel. All work just fine.</p>
<div class="wp-caption alignnone" style="width: 650px"><a href="/images/20090228/Badlands__Kargath_022809_153652.mov"><img title="WoW movie" src="/images/20090228/445.jpg" alt="Click image for quicktime movie" width="640" height="507" /></a><p class="wp-caption-text">Click image for quicktime movie</p></div>
<p>For other guides to the Wacom mouse, and other mice, checkout <a title="Repair4Mouse site link (200 hits)" href="http://ursecta.com/wp/go.php?http://repair4mouse.org" target="_blank">Repair4Mouse</a>. If you&#8217;ve got your own guide to repair or disassembly of a mouse of some kind, that&#8217;s the place to leave a link to it as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://ursecta.com/wp/2009/02/merging-mice/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

