<?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>Gareth Marlow &#187; work</title>
	<atom:link href="http://www.marlow.org.uk/blog/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marlow.org.uk</link>
	<description>IT Management, Photography, Music, DIY, The Eternal Sleepless Nights of the New Parent</description>
	<lastBuildDate>Tue, 13 Dec 2011 09:31:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>PPTP VPN, dd-wrt and private DNS resolution</title>
		<link>http://www.marlow.org.uk/blog/2011/03/24/pptp-vpn-dd-wrt-and-private-dns-resolution/</link>
		<comments>http://www.marlow.org.uk/blog/2011/03/24/pptp-vpn-dd-wrt-and-private-dns-resolution/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 01:01:44 +0000</pubDate>
		<dc:creator>gtm12</dc:creator>
				<category><![CDATA[home]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.marlow.org.uk/?p=51</guid>
		<description><![CDATA[The number of network devices in our house has increased significantly recently. With two Apple TVs, a wii, iPad, two iPhones, a Kindle, an xbox, two laptops, a desktop and a nettop, my creaky old AirPort Extreme was struggling to cope, particularly streaming media across the network. I also need to bridge two sections of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2011%2F03%2F24%2Fpptp-vpn-dd-wrt-and-private-dns-resolution%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2011%2F03%2F24%2Fpptp-vpn-dd-wrt-and-private-dns-resolution%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The number of network devices in our house has increased significantly recently. With two Apple TVs, a wii, iPad, two iPhones, a Kindle, an xbox, two laptops, a desktop and a nettop, my creaky old AirPort Extreme was struggling to cope, particularly streaming media across the network. I also need to bridge two sections of wired network and as I need to reach the work network from several devices at home, I wanted to share a VPN connection into the office. All of this took some figuring out and some heavy googling, so in the interests of helping out anyone with a similar problem, here&#8217;s what I did.</p>
<h2>Network Layout</h2>
<p><a href="http://www.marlow.org.uk/wp-content/uploads/2011/03/homenetwork1.png"><img class="alignnone size-full wp-image-53" title="homenetwork" src="http://www.marlow.org.uk/wp-content/uploads/2011/03/homenetwork1.png" alt="Home Network" width="646" height="461" /></a></p>
<p>&nbsp;</p>
<h2>Hardware Requirements</h2>
<ul>
<li>A simultaneous dual-band wireless-n router at the gateway</li>
<li>A normal dual-band wireless-n router to bridge to the LAN</li>
<li>Gigabit switches at both ends</li>
<li>dd-wrt support on both devices (PPTP support at the gateway, and bridging or WDS at the LAN)</li>
<li>Same chipset on both routers for compatability</li>
</ul>
<p>I ended up with a Cisco Linksys WRT610n for the gateway router, and a Cisco Linksys WRT320n for the LAN bridge. Both second-hand/refurbished models from eBay. Total cost £80.</p>
<h2>Gateway Configuration</h2>
<ol>
<li>Flash the WRT610n with <a href="http://www.dd-wrt.com/">dd-wrt</a>.</li>
<li>Create two wireless networks. The 2.4GHz carries 802.11b/g/n for maximum compability. The 5GHz carries 802.11n for maximum bandwidth.</li>
<li>Add a virtual interface to the 5GHz network with its own SSID to carry the inter-router link.</li>
<li>Set WPA2 AES encryption on all networks with pre-shared key.</li>
<li>Connect to the cable modem, reboot and check that internet connection is established by connecting with the iPad to each of the wireless networks in turn and web surfing.</li>
</ol>
<h2>LAN Bridge Configuration</h2>
<p>I wanted to use WDS to link the two routers but I ran into some problems. I could establish a connection, but the link bandwidth fluctuated significantly, and I also couldn&#8217;t get PPTP traffic to tunnel successfully. Data transfer over the VPN stalled for larger packets. This is a classic symptom of incorrect network MTU but despite resorting to packet sniffing, I couldn&#8217;t get this working properly. I ended up using dd-wrt Repeater Bridge mode which solved these problems straight away. The steps were:</p>
<ol>
<li>Flash the WRT320n with dd-wrt.</li>
<li>Disable the WAN connection and give the router a static IP address (192.168.1.2) with the gateway router&#8217;s IP as the gateway address.</li>
<li>In &#8220;Advanced Routing&#8221;, set the Operating Mode to &#8220;Router&#8221;.</li>
<li>In Wireless Basic Settings, set the Wireless Mode to &#8220;Repeater Bridge&#8221;, and the Wireless Network Mode to &#8220;N-Only (5 GHz). Give it the same SSID as the inter-router link in step 3 of &#8220;Gateway Configuration&#8221;</li>
<li>Add the appropriate Security Mode, WPA Algorithm and WPA Shared Key in the &#8220;Wireless Security&#8221; section.</li>
<li>Under &#8220;Services -&gt; Services&#8221;, Disable DNSMasq (which turns off the DNS and DHCP servers).</li>
<li>Reboot, connect the desktop PC to the gigabit switch on the bridge router, check it picks up an IP address from the gateway DHCP server and that it can reach the internet.</li>
</ol>
<p>At this point, I added the rest of the wireless and wired devices to the network and checked that things were working properly. AirPlay working from an iPhone to one of the Apple TVs, streaming audio and video from the PC to the TVs and download content from the internet were all evidence that dd-wrt was correctly bridging between the different networks and things were behaving properly.</p>
<p>The final stage was the VPN, and this is where information online started to run a bit thin.</p>
<h2>DD-WRT, PPTP VPN, routing DNS queries correctly and handling unqualified hostnames</h2>
<p>The requirements for the VPN connection were:</p>
<ol>
<li>The gateway router establishes the VPN connection and handles routing.</li>
<li>Only work traffic crosses the VPN &#8211; everything else gets routed straight to the Internet.</li>
<li>Home LAN access to the work LAN is NATted to remove the need to add routes back to the home LAN.</li>
<li>Unqualified hostnames are in use both on the host LAN and on the work network.</li>
<li>DNS resolution for the work domain should be handled by the work internal DNS servers; DNS resolution for the home LAN should be handled locally; everything else gets handled by my ISP&#8217;s DNS servers.</li>
<li>All LAN client configuration is done via DHCP, so that all devices including the iPhones and iPad will work immediate on connection.</li>
</ol>
<p>Steps 1 to 3 are straightforward:</p>
<ol>
<li>On the Gateway router, under Services-&gt;VPN, enable the PPTP Client.</li>
<li>Use the IP address rather than the DNS name for the server &#8211; this will not change frequently, and makes DNS configuration more straightforward.</li>
<li>Configure the remote Subnet and Subnet Mask as appropriate &#8211; my work uses an RFC1918 Class A address space.</li>
<li>I changed the MPPE Encryption settings to &#8220;mppe required,no40,no56,stateless&#8221;. This was in the middle of my &#8220;trial and error&#8221; phase of trying to troubleshoot WDS &#8211; it might not therefore be necessary but if it works, it won&#8217;t hurt!</li>
<li>Leave MRU and MTU as the defaults. Enable NAT and complete the User Name and Password fields as appropriate. NB if this is authenticating against a Windows domain, you need to put username in the form DOMAIN\\username.</li>
<li>Hit &#8220;Apply Settings&#8221;. Reboot the router.</li>
</ol>
<p>If all is well, you should now be able to ping IP addresses of machines on your work network from client machines on the home LAN. traceroute should also show that this traffic is being carried across the VPN, where traceroute to www.bbc.co.uk goes via your gateway and across your ISP&#8217;s networks in several hops.</p>
<p>Next step is to confirm that you can reach your work DNS servers. Ping them first, and then attempt a hostname lookup: our intranet server is called &#8220;intranet&#8221; so &#8220;nslookup intranet &lt;WORK DNS IP&gt;&#8221; should return the correct IP address. To complete requirements 4-6, we need to use the dd-wrt DNS/DHCP server DNSMasq to manage home LAN DNS registrations, pass off work DNS queries to the work servers over the VPN, to send the rest to the ISP and to send appropriate search domain information to all LAN DHCP clients so unqualified hostname resolution will still work. I have to admit that these settings were reached through some trial and error so there could be a better way of doing this. But at least this works:</p>
<ol>
<li>In &#8220;Services-&gt;Services&#8221;, under &#8220;Services Management&#8221; &#8220;DHCP Server&#8221;, add a local value to LAN Domain. I use &#8220;marlow.org.uk&#8221; here. This will be added to the hostnames of your LAN devices while they&#8217;re on the home network to give them an FQDN.</li>
<li>DNSMaq should already be enabled, but you should enable &#8220;Local DNS&#8221; and disable &#8220;No DNS Rebind&#8221;.</li>
<li>In &#8220;Additional DNSMasq Options&#8221;, add the following (changing the bits in red):
<pre>dhcp-option=15,"<span style="color: #ff6600;">workdomain.com homelandomain.org.uk</span>"
strict-order
no-resolv
no-poll
server=/<span style="color: #ff6600;">workdomain.com</span>/<span style="color: #ff6600;">ipaddressofworkdnsserver
</span>server=<span style="color: #ff6600;">yourispprimarydnsip
</span>server=<span style="color: #ff6600;">youridpsecondarydnsip</span></pre>
</li>
<li>Hit &#8220;Apply Settings&#8221;</li>
<li>Renew the DHCP lease of one of your home LAN clients and check that DNS resolution is behaving as expected by pinging www.bbc.co.uk, followed by the unqualified hostname of a machine on the work network and then one of the clients on your home network.</li>
<li>Pour yourself a stiff drink.</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marlow.org.uk/blog/2011/03/24/pptp-vpn-dd-wrt-and-private-dns-resolution/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Working in Cambridge with clever people doing clever things with computers</title>
		<link>http://www.marlow.org.uk/blog/2010/10/24/why-am-i-doing-this/</link>
		<comments>http://www.marlow.org.uk/blog/2010/10/24/why-am-i-doing-this/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 20:24:44 +0000</pubDate>
		<dc:creator>gtm12</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.marlow.org.uk/?p=37</guid>
		<description><![CDATA[We were the first generation to grow up with computers at home. Iain got one first &#8211; a BBC Micro, just as we were leaving primary school, but many of my friends got BBCs, Spectrums and Commodore 64s for Christmas 1983. Although 1984 has significance in the history of computing in other ways, it was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2010%2F10%2F24%2Fwhy-am-i-doing-this%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2010%2F10%2F24%2Fwhy-am-i-doing-this%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We were the first generation to grow up with computers at home. Iain got one first &#8211; a BBC Micro, just as we were leaving primary school, but many of my friends got BBCs, Spectrums and Commodore 64s for Christmas 1983. Although 1984 has significance in the history of computing in other ways, it was the year when it became clear that this wasn&#8217;t just a fad; this was here to stay. My sister and I got an <a href="http://en.wikipedia.org/wiki/Acorn_Electron" target="_self">Acorn Electron</a> for Christmas 1984.</p>
<p style="text-align: center;"><a href="http://www.marlow.org.uk/wp-content/uploads/2010/10/Acorn_Electron_4x3.jpg"><img class="size-medium wp-image-38 aligncenter" title="Acorn_Electron_4x3" src="http://www.marlow.org.uk/wp-content/uploads/2010/10/Acorn_Electron_4x3-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The Electron was an interesting machine. It was an attempt to provide BBC Micro features for a ZX Spectrum price. Problem was &#8211; the games weren&#8217;t as good as the Spectrum and the limitations compared to the BBC were significant. Acorn struggled to manufacture enough units for sale until Christmas 1984 by which point it was a bit too late. But I couldn&#8217;t get enough of it. I read the manual cover to cover. We got Electron User and Acorn User, and I typed in all of the listings I could. My friend Daniel and I discovered that if he brought his official Acorn tape player round to ours and plugged it into my parents&#8217; hifi, we could copy games. Good times.</p>
<p>Just before my fourteenth birthday, I read something which changed everything.</p>
<p><a href="http://www.marlow.org.uk/wp-content/uploads/2010/10/issue46.jpeg"><img class="aligncenter size-full wp-image-40" title="issue46" src="http://www.marlow.org.uk/wp-content/uploads/2010/10/issue46.jpeg" alt="" width="190" height="268" /></a></p>
<p>The <a href="http://www.acornuser.com/acornuser/year5/issue46.html" target="_self">May 1986 edition of Acorn User</a> contained an article called <em>Exploring the Mandlebrot Set</em> by David Johnson-Davies. It blew my mind. In one article, a few lines of code and the hours of experimentation which came afterwards, I encountered complex numbers, the fascinating beauty of fractals &#8211; and the realisation that exploring these things was only possible with computers &#8211; but the computers that we now all had at home. Things like this were happening to lots of us (like <a href="http://ewx.livejournal.com/561349.html" target="_self">Richard Kettlewell</a>).</p>
<p>I read Natural Sciences and Chemical Engineering at university &#8211; but there was only one place I ever wanted to go. An early page of my Electron manual says &#8220;All correspondence should be addressed to: Technical Enquiries, Acorn Computers Limited, Fulbourn Road, Cherry Hinton, Cambridge CB1 4JN&#8221;. A lightbulb moment. Cambridge was where to find all the clever people doing clever stuff with computers. That&#8217;s what I wanted to do. I&#8217;ve worked for a couple of Cambridge colleges, for a couple of software companies and I ran the IT team at DAMTP, Stephen Hawking&#8217;s department at Cambridge. Now I&#8217;m at Red Gate and it&#8217;s 26 years since we got the Electron, and 20 years since I came down here &#8211; but I&#8217;m still doing what I&#8217;ve wanted to do since I was fourteen &#8211; working in Cambridge with clever people doing clever things with computers.</p>
<p><em>Footnote</em></p>
<p>Luke has just started secondary school. All of the kids have been given a Toshiba netbook, and when he was with us a couple of weekends ago, we struggled for a while to get it to connect to our wireless network. I tried to open a command prompt to diagnose, but the machines had been locked down so I couldn&#8217;t.</p>
<p>&#8220;Dad,&#8221; he said, last time he was down, &#8220;You remember when you couldn&#8217;t open that command prompt on my laptop? All you have to do is open notepad, type in <code>command.com</code> and save it on your desktop as a file called <code>command.bat</code>. Then if you double-click it&#8230;&#8221;</p>
<p>That&#8217;s my boy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marlow.org.uk/blog/2010/10/24/why-am-i-doing-this/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Russell Brand and SQL Monitor</title>
		<link>http://www.marlow.org.uk/blog/2010/10/22/russell-brand-and-sql-monitor/</link>
		<comments>http://www.marlow.org.uk/blog/2010/10/22/russell-brand-and-sql-monitor/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 21:37:02 +0000</pubDate>
		<dc:creator>gtm12</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.marlow.org.uk/?p=29</guid>
		<description><![CDATA[Watching Russell Brand on the PVR, and looking at the servers at work. Cube looks a bit busy. Nupe. Quiet again. Cool. One more beer before bed?]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2010%2F10%2F22%2Frussell-brand-and-sql-monitor%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2010%2F10%2F22%2Frussell-brand-and-sql-monitor%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.marlow.org.uk/wp-content/uploads/2010/10/photo-1-1.jpg"><img class="alignnone size-medium wp-image-30" title="photo 1-1" src="http://www.marlow.org.uk/wp-content/uploads/2010/10/photo-1-1-300x225.jpg" alt="SQL Monitor shot 1" width="300" height="225" /></a></p>
<p>Watching Russell Brand on the PVR, and looking at the servers at work. Cube looks a bit busy.</p>
<p><a href="http://www.marlow.org.uk/wp-content/uploads/2010/10/photo-2-1.jpg"><img class="alignnone size-medium wp-image-31" title="photo 2-1" src="http://www.marlow.org.uk/wp-content/uploads/2010/10/photo-2-1-300x225.jpg" alt="SQL Monitor" width="300" height="225" /></a></p>
<p>Nupe. Quiet again. Cool. One more beer before bed?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marlow.org.uk/blog/2010/10/22/russell-brand-and-sql-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poisson d&#8217;Avril</title>
		<link>http://www.marlow.org.uk/blog/2009/04/01/5/</link>
		<comments>http://www.marlow.org.uk/blog/2009/04/01/5/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 19:28:11 +0000</pubDate>
		<dc:creator>gtm12</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[red gate]]></category>

		<guid isPermaLink="false">http://www.marlow.org.uk/?p=5</guid>
		<description><![CDATA[Password Resets &#8211; please read This message was sent with High importance. Sent: 01 April 2009 08:31 To: Red-Gate A few people have run into problems where they’ve been asked for their password, mid-afternoon while accessing file shares or Exchange. This is occurring because we’re changing our password expiry cycle from the current 1 year. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2009%2F04%2F01%2F5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.marlow.org.uk%2Fblog%2F2009%2F04%2F01%2F5%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<blockquote>
<h2>Password Resets &#8211; please read</h2>
<p>This message was sent with High importance.</p>
<p><strong>Sent:  	 01 April 2009 08:31</strong></p>
<p><strong>To: 	Red-Gate</strong></p>
<p class="x_MsoNormal">A few people have run into problems where they’ve been asked for their password, mid-afternoon while accessing file shares or Exchange. This is occurring because we’re changing our password expiry cycle from the current 1 year. We were reducing it bit-by-bit to avoid affecting everyone straight away – but we’ve realised that we need to accelerate this program.</p>
<p class="x_MsoNormal">The new policy will require you to change your password every <strong>14 days</strong>, and this will come into effect at <strong>12pm (noon) today</strong>. We will require you to have a stronger password than before, with more non-alphanumeric characters (i.e. punctuation). An example of an appropriate password would be <strong>@pr1!FuLe</strong></p>
<p class="x_MsoNormal">If this is likely to cause you great inconvenience, we can arrange for a slightly more lenient reset frequency – we recognise it’s the job of the IS team to remove the treacle, so if you could write us a letter on company-headed paper, counter-signed by your line manager and both Neil and Simon, that would be great.</p>
<p class="x_MsoNormal">Have a good morning,</p>
<p class="x_MsoNormal">Gareth</p>
<p class="x_MsoNormal">&#8211;</p>
<p class="x_MsoNormal">Gareth Marlow, Head of Information Systems, Red Gate Software Ltd.</p>
</blockquote>
<p class="x_MsoNormal">Pwned at least five people with that one. The more serious point is that there was an expectation that an IT department would even <em>consider</em> pulling a stunt like that. IT departments have bad PR but sometimes, we&#8217;re our own worst enemies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marlow.org.uk/blog/2009/04/01/5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

