<?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>NetworksAreMadeOfString &#187; Networks</title>
	<atom:link href="http://blog.networksaremadeofstring.co.uk/category/datacenter/networks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.networksaremadeofstring.co.uk</link>
	<description>Cat5, Cat6, Fibre, or String.............</description>
	<lastBuildDate>Mon, 21 Jun 2010 19:37:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Providing Short Term Internet Connectivity to Remote Locations</title>
		<link>http://blog.networksaremadeofstring.co.uk/2010/05/24/providing-short-term-internet-connectivity-to-remote-locations/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2010/05/24/providing-short-term-internet-connectivity-to-remote-locations/#comments</comments>
		<pubDate>Mon, 24 May 2010 19:22:01 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[NAMOS]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=597</guid>
		<description><![CDATA[I recently had the opportunity to provide Internet connectivity to the first Airsoft Arms Fair so the Stall operators could show YouTube videos, Retailers could utilise Paypal and so media outlets could do Live blogging or upload high resolution pictures throughout the day. The core of this setup was a series of 3G Modems linked [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the opportunity to provide Internet connectivity to the first <a href="http://www.AirsoftArmsFair.co.uk">Airsoft Arms Fair</a> so the Stall operators could show YouTube videos, Retailers could utilise Paypal and so media outlets could do Live blogging or upload high resolution pictures throughout the day.</p>
<p>The core of this setup was a series of 3G Modems linked up with 3G to ethernet devices such as the Solwise NET-3G-3GWIFIMRW.<img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2010/05/net-3g-3gwifimwr-small.jpg" alt="net-3g-3gwifimwr-small" title="net-3g-3gwifimwr-small" width="185" height="200" class="aligncenter size-full wp-image-598" /></p>
<p>These were backed off onto a server running Squid and BIND with DHCP containing all the relevant proxy auto config data (plus some IPTables magic for those that didn&#8217;t play nice).</p>
<p>Couple this with three Access points with 8db omni&#8217;s spread about to acheive maximum coverage I was pleased to see that at one point the network was sustaining over 8mbit/s of throughput!</p>
<p>There was a lot of web browsing, I was streaming spotify, people were blogging and tweeting and despite the heat it all stayed alive.</p>
<p>Next time I&#8217;ll be doing it without mains power either so mount up the UPS&#8217;s and gas the generators!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2010/05/24/providing-short-term-internet-connectivity-to-remote-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utilising Read Only Domain Controllers to Leverage Hosted Active Directory</title>
		<link>http://blog.networksaremadeofstring.co.uk/2009/08/20/utilising-read-only-domain-controllers-to-leverage-hosted-active-directory/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2009/08/20/utilising-read-only-domain-controllers-to-leverage-hosted-active-directory/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 19:57:57 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Datacenter]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=533</guid>
		<description><![CDATA[One of the common issues that appears when integrating a hybrid vision of Hosted Exchange with someones existing infrastructure (so not really Hosted Exchange at all!) is synchronising credentials between the Exchange Server and the local machines or for the more tech savvy the &#8216;hackiness&#8217; of having disparate forests. Cross Forest trusts are a possibility [...]]]></description>
			<content:encoded><![CDATA[<p>One of the common issues that appears when integrating a hybrid vision of Hosted Exchange with someones existing infrastructure <em>(so not really Hosted Exchange at all!)</em> is synchronising credentials between the Exchange Server and the local machines or for the more tech savvy the &#8216;hackiness&#8217; of having disparate forests. </p>
<p>Cross Forest trusts are a possibility and merging one with the other <em>(i.e having the Hosted Exchange solution bound to the existing domain)</em> is another but there are many issues with that <em>(mostly political)</em>. </p>
<p>What I intend to do is utilise the &#8216;Branch office&#8217; concept that Read Only Domain Controllers were designed for to mock up a solution for Hosting the entire AD infrastructure remotely and having R/O DC&#8217;s on the customer premises. </p>
<h2>What now?</h2>
<p>For no other reason than that of satisifying my curiosity I built an entire AD infrastructure hosted at the data center and then had a remote &#8216;office&#8217; running for a day without a local DC and then the following day with a Read Only Domain Controller sitting there. </p>
<p>There&#8217;s nothing new or crazy here other than maybe the fact that most people move bits of their AD infrastructure to the DC when its bandwidth requirements overwhelm their resources. What I&#8217;m playing with is the idea of having everything remote and only putting the stuff you need (NAS etc) in the office.</p>
<h2><strong>The Test</strong></h2>
<p>In the Red Corner we have a full Active Directory and Exchange infrastructure at the DC and then the &#8216;offices&#8217; were built using a few Terminal Services servers  running a respective amounts of users. The idea is to monitor traffic before dropping in a RO DC and then again afterwards. </p>
<h2><strong>The Infrastructure</strong></h2>
<h2>Hosted Infrastructure</h2>
<p><a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/08/hosted-infrastructure.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/08/hosted-infrastructure-101x300.png" alt="" title="hosted-infrastructure" width="101" height="300" class="alignnone size-medium wp-image-170" /></a> The Hosted infrastructure consists of a relatively standard Exchange 2007 deployment (if you follow the guidelines) visible to the world (selected ports only) is an Edge Transport server for handling the initial mail connections and the Client Access Server. Behind those is the Mailbox and Hub Transport (in reality these were on the same box but the diagram wasn&#8217;t as symmetrical then!).<br />
<br/><br />
The Domain controller is a special case because whilst we have no reason for the Internet at large to talk to it we need the read only Domain Controller at the client site to be able to communicate with it so an IPSEC LAN to LAN VPN was required.<br />
<br/><br/><br/><br/></p>
<h2><strong>The Results</strong></h2>
<p><br/></p>
<h2>AD Traffic From the TS to the Remote DC No Local DC</h2>
<p><a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/replication_traffic_no_local_dc.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/replication_traffic_no_local_dc.png" alt="" title="Active Directory Traffic From the TS to the Remote DC" width="500" height="166" class="aligncenter size-full wp-image-187" /></a><br />
<br/><br/></p>
<h2>AD Traffic to the Remote DC with Local RODC</h2>
<p><a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/replication_traffic_rodc.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/replication_traffic_rodc.png" alt="" title="Active Directory Traffic to the Remote DC with A Local RODC" width="500" height="166" class="aligncenter size-full wp-image-189" /></a><br />
<br/><br/><br/></p>
<h2>OWA Traffic During the Tests</h2>
<p><em>Scripted behavior &#8211; so it was the same(ish) on both days</em><br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/traffic-owa.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/09/traffic-owa.png" alt="" title="OWA Traffic" width="500" height="203" class="aligncenter size-full wp-image-195" /></a><br />
<br/><br/><br/></p>
<h2>Conclusion</h2>
<p>Well it did exactly what I expected it to do so nothing ground breaking there. It was interesting to see the spike just after I logged all the fake users off the Terminal Servers.</p>
<p>R/O DC&#8217;s were used because in an ideal world customers shouldn&#8217;t have write access to an AD infrastructure that a SysAdmin has an SLA to honor!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2009/08/20/utilising-read-only-domain-controllers-to-leverage-hosted-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NAMOS LAN Native IPv6 &#8211; Complete</title>
		<link>http://blog.networksaremadeofstring.co.uk/2008/11/03/namos-lan-native-ipv6-complete/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2008/11/03/namos-lan-native-ipv6-complete/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 23:28:19 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[NAMOS]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=322</guid>
		<description><![CDATA[With the initial tests over it was time to actually move over to &#8216;real&#8217; IPv6 addresses. After applying for a tunnel from SixXS it was time to set it up. Unfortunately none of my JUNOS or Cisco IOS images have IPv6 support so rather than buying another 2600XM I decided to use the Windows Server [...]]]></description>
			<content:encoded><![CDATA[<p>With the <a href="http://blog.networksaremadeofstring.co.uk/2008/10/11/dual-stack-ipv4-ipv6-dhcp-in-windows-server-2008/">initial tests</a> over it was time to actually move over to &#8216;real&#8217; IPv6 addresses.</p>
<p>After applying for a tunnel from <a href="http://www.sixxs.net/">SixXS</a> it was time to set it up. Unfortunately none of my JUNOS or Cisco IOS images have IPv6 support so rather than buying another 2600XM I decided to use the Windows Server 2008 server that performs IPv6 DHCP as the router.</p>
<p>The advice for setting up a tunnel on the Wiki only covers up to Windows Server 2003 and is below:<br />
<code><br />
netsh interface ipv6 install<br />
netsh interface ipv6 add v6v4tunnel SixXS [Your IPv4 Endpoint] [PoP IPv4 Endpoint]<br />
netsh interface ipv6 add address SixXS [Your IPv6 Endpoint]<br />
netsh interface ipv6 add route [Tunnel Prefix]/[Prefix Length] SixXS<br />
netsh interface ipv6 add route 0::/0 SixXS publish=yes<br />
</code></p>
<p>The first line is redundant as IPv6 is already installed on 2008, the second to last command results in a warning that the object already exists and the last command needs to be:<br />
<code><br />
netsh interface ipv6 add route ::/0 interface=SixXS nexthop=[PoP IPv6 Endpoint] publish=yes<br />
</code></p>
<p>In order to &#8216;prove&#8217; your tunnel is alive it has to be pingable the advice on the SixXS site is to run the following command:<br />
<code><br />
netsh firewall set icmpsetting SixXS enable all<br />
</code></p>
<p>Unfortunately Windows Server 2008 now has the &#8216;Windows Firewall with Advanced Security&#8217;. In order to allow pings you need to set the &#8216;Public&#8217; profile to allow &#8220;File and Printer Sharing (Echo Request &#8211; ICMPv6-In).<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/echo_request_allow.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/echo_request_allow-258x300.png" alt="" title="echo_request_allow" width="258" height="300" class="aligncenter size-medium wp-image-323" /></a> You could add your own rule for ICMPv6 (Protocol type 58) but this was the easiest option at the time.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
With all that done we now have an IPv6 (in IPv4 tunnel) up and running on Server 2008:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/ipv6_tunnel_up.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/ipv6_tunnel_up-300x132.png" alt="" title="ipv6_tunnel_up" width="300" height="132" class="aligncenter size-medium wp-image-327" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h2>Windows Server 2008 &#8211; IPv6 Routing</h2>
<p>To get packets moving through the network you need to configure forwarding on both interfaces. Then on the internal interfaces (<em>the SixXS side of the Network has a static route</em>) enable advertising which will help IPv6 enabled hosts to configure their routes. Once this is done the interfaces should look like this:<br />
<strong>WAN [Tunnel] Interface</strong><br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/sixxs_interface_properties.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/sixxs_interface_properties-300x141.png" alt="" title="sixxs_interface_properties" width="300" height="141" class="aligncenter size-medium wp-image-331" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
<strong>LAN [Internal] Interfaces</strong><br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/lan_interface_properties.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/lan_interface_properties-300x141.png" alt="" title="lan_interface_properties" width="300" height="141" class="aligncenter size-medium wp-image-332" /></a>&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>Its now time to see if all this is working, a quick renew on a machine on the LAN and we see this:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/lan_machine_renew.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/lan_machine_renew-300x148.png" alt="" title="lan_machine_renew" width="300" height="148" class="aligncenter size-medium wp-image-336" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
The first thing that struck me about that output is that the Default Gateway is a Link Local address. It turns out that for indirect delivery of packets (<em>in which the destination is not on a local link</em>) the next-hop address is typically the link-local address of the neighboring router.</p>
<p>Trusting that the Autoconfiguration has done its thing I fired off a traceroute and it works!<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/linklocal_gateway_tracert_works.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/linklocal_gateway_tracert_works-300x148.png" alt="" title="linklocal_gateway_tracert_works" width="300" height="148" class="aligncenter size-medium wp-image-337" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
As a quick check I disabled the Firewall on the test box and it was publically available (<em>which is good</em>) but then leaving the local firewall disabled I added a rule on the Router to block ALL IPv6 packets but it carried on pinging which is because the Windows Firewall with Advanced Security is only for the Host itself not forwarded interfaces.</p>
<p>So how do I protect my precious IPv6 beer fridge from attackers?</p>
<h2>Windows Server 2008 IPv6 Tunnel Security</h2>
<p>I went through the Microsoft Press Understanding IPv6 book, hammered the hell out of my ? key in the netsh environment and then just as I started to read the Technet netsh command reference (<em>is stubborness a virtue?</em>) I remembered that you can add filters to any interface within netsh <em>once</em> the RRAS role feature has been installed!</p>
<p>Unfortunately even with the RRAS role features installed Windows still couldn&#8217;t address the SixXS tunnel. So, I bit the bullet and decided to secure the Network a different way.</p>
<p>Even though I can&#8217;t stop packets coming in from the SixXS tunnel I can prevent them getting forwarded to interfaces. The following netsh commands block all packets except pings, those that originate from the LAN or are for port 80:<br />
<code><br />
set filter name="LAN Zone" filtertype=OUTPUT action=DROP<br />
add filter name="LAN Zone" filtertype=OUTPUT srcaddr=:: srcprefixlen=0     dstaddr=:: dstprefixlen=0 proto=ICMP type=255 code=255<br />
add filter name="LAN Zone" filtertype=OUTPUT srcaddr=:: srcprefixlen=0     dstaddr=:: dstprefixlen=0 proto=TCP srcport=0 dstport=80<br />
add filter name="LAN Zone" filtertype=OUTPUT srcaddr=2a01:348:18e:1:: srcprefixlen=64     dstaddr=:: dstprefixlen=0 proto=ANY<br />
set filter name="LAN Zone" fragcheck=disable<br />
</code></p>
<p>This is by no means perfect so I&#8217;ve subsequently added a lot more rules to the router. (<em>No port scanning please, the text message sound for netflow alerts is rather jarring!</em>)</p>
<h2>Conclusions</h2>
<p>IPv6 is an exciting new area to explore, the IPv6 Internet isn&#8217;t quite there yet (IPv6 sites are still few &#038; far between) but it is nice to see <a href="http://www.sixxs.net/misc/coolstuff/">applications</a> out there and its a refreshing change to not have to worry about NAT.</p>
<p>With Christmas fast approaching I think I&#8217;ll reward myself with a shiny &#8216;new&#8217; 2600XM with the IPv6 stack to handle the routing between my various zones and an ASA or two for the LAN segment. If I do then I&#8217;ll probably do another quick follow up regarding IPv6 subnetting, experiences with the Cisco IPv6 stack and whatever else I&#8217;ve stumbled upon in the mean time.</p>
<h2>Interesting Notes</h2>
<p>During the course of this little experiment I found a few random quirks that might amuse:</p>
<ul>
<li>The Windows Server 2008 DHCP Server can bind to a 6 in 4 tunnel but the DNS Server cannot!</li>
<li>A very petty observation but theres a <a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/interface_properties_typo.png">typo</a> in the Interface Properties!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2008/11/03/namos-lan-native-ipv6-complete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPv6 Only Exchange 2007</title>
		<link>http://blog.networksaremadeofstring.co.uk/2008/10/15/ipv6-only-exchange-2007/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2008/10/15/ipv6-only-exchange-2007/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 23:48:13 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[NAMOS]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=236</guid>
		<description><![CDATA[We already know that disabling IPv6 on a 2008 &#038; Exchange 2007 server breaks things but what if we go IPv6 only? IPv6 Only Domain Controllers: The installation didn&#8217;t cause any trouble but after initially logging on and running a DCDiag we see this: It turns out that the install of the DNS Server had [...]]]></description>
			<content:encoded><![CDATA[<p>We already know that disabling IPv6 on a 2008 &#038; Exchange 2007 server breaks things but what if we go IPv6 only?</p>
<h2>IPv6 Only Domain Controllers:</h2>
<p>The installation didn&#8217;t cause any trouble but after initially logging on and running a DCDiag we see this:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/first_dcdiag.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/first_dcdiag-289x300.png" alt="" title="Initial DCDiag After Installing AD" width="289" height="300" class="aligncenter size-medium wp-image-237" /></a></p>
<p>It turns out that the install of the DNS Server had set the NIC&#8217;s properties to be ::1 but the DNS Server was only listening on the Static Site Local address FEC0::2 and its self assigned Link Local. This of course caused all DNS reliant checks to fail and cause a whole world of pain.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>Changing the NIC DNS properties to FEC0::2 resulted in a different set of errors:</p>
<p><a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/second_dcdiag.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/second_dcdiag-148x300.png" alt="" title="Second DCDiag Run" width="148" height="300" class="aligncenter size-medium wp-image-243" /></a></p>
<p>There were actually 10&#8242;s of the System Log errors which made me panic for a bit till I remembered that this is expected behaviour. The expected behaviour is that if there are any Warnings or other bad apples in the Event logs DCDiag will throw some unfriendly errors. </p>
<p>These errors appear to be even <em>more</em> unfriendly owing to a <a href="http://support.microsoft.com/kb/934640">bug</a> in how the Event Viewer copes with IPv6 address.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<p>A quick purge or the Event logs later and we are back in business:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/third_dcdiag.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/third_dcdiag-176x300.png" alt="" title="Third DCDiag" width="176" height="300" class="alignright size-medium wp-image-265" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h2>Preparing the Exchange Server</h2>
<p>Exchange 2007 has several prerequisites that need to be installed before Setup can be successfully launched. First I&#8217;ll add the prerequisites that don&#8217;t affect / require a machine to be bound to a domain, if they install correctly then I&#8217;ll bind it to the domain (<em>and see how that goes</em>) and finish off with the prerequisites that require a machine to be bound to the domain.</p>
<p>Installing the non-domain related roles / features went smoothly:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/servermanager_cmd_1.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/servermanager_cmd_1-300x240.png" alt="" title="Non Domain Roles and Features" width="300" height="240" class="aligncenter size-medium wp-image-274" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Unfortunately binding to the domain was not as smooth:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/domain_bind_error.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/domain_bind_error-300x275.png" alt="" title="domain_bind_error" width="300" height="275" class="aligncenter size-medium wp-image-279" /></a></p>
<p>The first issue to resolve is whether Windows Server 2008 actually wants a A record or whether someone just hasn&#8217;t got round to updating the error dialog.<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Firing up the NSLookup tool we see that [despite some timeouts (??)] DNS is working as expected. Although this was evident because the SRV lookups for the domain resulted in the name of the Domain Controller.<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/nslookup_success.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/nslookup_success-300x148.png" alt="" title="nslookup_success" width="300" height="148" class="aligncenter size-medium wp-image-280" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
So I did what every curious Windows Admin knows might fix the problem, do it again. And who&#8217;d have guessed it?<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/domain_bind_succss.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/domain_bind_succss-266x300.png" alt="" title="Domain Bind Success" width="266" height="300" class="aligncenter size-medium wp-image-281" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Hmm, well with that sorted and following a quick reboot its time to see if the final prerequisite piece of the puzzle works:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/rsat-adds_successful_use.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/rsat-adds_successful_use-158x300.png" alt="" title="rsat-adds_successful_use" width="158" height="300" class="aligncenter size-medium wp-image-289" /></a><br />
Excellent! </p>
<p>There are a few errors but these may not be show stoppers. </p>
<p>Onto the next stage!<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h2>Installing Exchange 2007 on an IPv6 Only 2008 Server</h2>
<p>Well unfortunately we&#8217;ve stumbled at the first hurdle:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/exchange_setup_fail.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/exchange_setup_fail-300x261.png" alt="" title="exchange_setup_fail" width="300" height="261" class="aligncenter size-medium wp-image-294" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
The <a href="http://technet.microsoft.com/en-gb/library/bb629624.aspx">link</a> the error mentions tells us the following:<br />
<code><br />
IPv6 is only supported in Exchange 2007 SP1 when it is installed on a Windows Server 2008 computer that has both IPv4 and IPv6 enabled. If you disable the IPv4 protocol, Exchange 2007 SP1 can't support IPv6.</code></p>
<p>Well screw that, the Install button hasn&#8217;t greyed out so onwards to Victory!<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/setup_success.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/setup_success-300x261.png" alt="" title="setup_success" width="300" height="261" class="aligncenter size-medium wp-image-300" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Setup claims to have installed, lets see if the SMTP element is contactable:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/telnet_success.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/telnet_success-300x229.png" alt="" title="telnet_success" width="300" height="229" class="aligncenter size-medium wp-image-302" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h2>Using Exchange 2007 in a Native IPv6 Environment</h2>
<p>OWA worked without any major hassles and sending internal email worked fine. Unfortunately trying to send email to an &#8216;external&#8217; host resulted in a &#8220;451 4.4.0 DNS Query Failed&#8221;. </p>
<p>Looking through the Event Logs I found this:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/dns_error.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/dns_error-300x207.png" alt="" title="dns_error" width="300" height="207" class="aligncenter size-medium wp-image-307" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
Running the suggested powershell command did indeed show that no DNS Servers were set:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/powershell_clue.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/powershell_clue-300x148.png" alt="" title="powershell_clue" width="300" height="148" class="aligncenter size-medium wp-image-308" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
No matter what I did using netsh or the NIC GUI the error remained, I resorted to setting the DNS entries in the Hub Transport server properties:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/dns_properties.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/dns_properties-262x300.png" alt="" title="dns_properties" width="262" height="300" class="aligncenter size-medium wp-image-309" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
We now get another error but hey at least its progress:<br />
<code>451 4.4.0 primary target IP address responded with "421.4.4.2 unable to connect."attempted failover to alternate host, but that did not succeed.Either there are no alternate hosts, or delivery failed to all alternate hosts.</code></p>
<p>Turns out I forgot to make the Postfix server listen on its IPv6 address :/ A few quick config changes later and Victory is mine!<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/postfix_success.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/postfix_success-300x229.png" alt="" title="postfix_success" width="300" height="229" class="aligncenter size-medium wp-image-312" /></a><br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;</p>
<h2>Conclusion</h2>
<p>Well its a bit painful to get going but it appears to work once setup. I&#8217;ll keep this going with some scheduled in and out email to see if it dies after a week or so.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2008/10/15/ipv6-only-exchange-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dual Stack (IPv4 &amp; IPv6) DHCP in Windows Server 2008</title>
		<link>http://blog.networksaremadeofstring.co.uk/2008/10/11/dual-stack-ipv4-ipv6-dhcp-in-windows-server-2008/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2008/10/11/dual-stack-ipv4-ipv6-dhcp-in-windows-server-2008/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 15:50:55 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[NAMOS]]></category>
		<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=213</guid>
		<description><![CDATA[IPv6 is coming and I&#8217;m trying to stay ahead of the curve on this one so I&#8217;m moving the NAMOS LAN over to an IPv6 network [public services such as DNS, Web and mail are already running on IPv6] which means in the meantime I&#8217;m going to have to go through some of the transitional [...]]]></description>
			<content:encoded><![CDATA[<p>IPv6 is coming and I&#8217;m trying to stay ahead of the curve on this one so I&#8217;m moving the NAMOS LAN over to an IPv6 network <em>[public services such as DNS, Web and mail are already running on IPv6]</em> which means in the meantime I&#8217;m going to have to go through some of the transitional pains.</p>
<p>Armed with a <em>[now depreciated]</em> netblock I set about the practise run for the Plan O&#8217; Doom. </p>
<p>Configuring the scopes is easy and so doesn&#8217;t really need to be covered but in order to split my /48 [SixXS subnets are /48] into more usable subnets I cheated on the calculations and used <a href="http://www.liquidalchemy.com/liquidalchemy/">Rhys Koedijk&#8217;s IPv6 Subnet calculator</a>.</p>
<p>A word of caution, despite setting up the Scopes and binding static IPv6 addresses on the relevant interfaces the clients were not getting any leases because the Interfaces on the relevant subnets were not configured correctly. You will need to run the following command to get leases working:<br />
<code>netsh interface ipv6 set interface <interface number>  advertise=enabled  manageAddress=enabled</code><br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/ipv6_interface_settings.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/ipv6_interface_settings-300x180.png" alt="" title="ipv6_interface_settings" width="300" height="180" class="aligncenter size-medium wp-image-215" /></a><br />
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br />
Unfortunately a day later I had a quick look at the leases on my &#8216;test&#8217; subnetwork and was greeted by the following:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/bad_address_ipv6.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/bad_address_ipv6-300x214.png" alt="" title="bad_address_ipv6" width="300" height="214" class="aligncenter size-medium wp-image-216" /></a></p>
<p><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br />
Thinking that this could be due to my previous experiments I deleted the leases and then logged onto each machine that should have IPv6 enabled and did a release6 &#038; renew6.</p>
<p>Unfortunately there was <em>still</em> one left:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/bad_address_ipv6_2.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/bad_address_ipv6_2-300x213.png" alt="" title="bad_address_ipv6_2" width="300" height="213" class="aligncenter size-medium wp-image-225" /></a><br />
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br />
A.J. Anto has an <a href="http://blogs.msdn.com/anto_rocks/archive/2005/02/22/378008.aspx">old post</a> which details why these BAD_ADDRESS&#8217;s should be showing up but that doesn&#8217;t seem to be the case here.</p>
<p>A bit more research found a Hyper V&#8217;d Vista machine that I&#8217;d forgotten about which had a 12 day lease.</p>
<p>Interestingly even if you assign a static IPv6 address to an interface Windows Server 2008 (and probably Vista too) still request an IP from DHCP:<br />
<a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/multi_ipv6.png"><img src="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2008/10/multi_ipv6-300x148.png" alt="" title="Multiple IPv6 Addresses" width="300" height="148" class="aligncenter size-medium wp-image-230" /></a><br />
<br/><br/><br/><br/><br/><br/><br/><br/><br />
The next IPv6 experiment is a SixXS tunnel to a Juniper Netscreen 5GT with the LAN and Wireless segments having &#8216;real&#8217; IPv6 addresses. &#8211; Keep an eye out for the &#8220;NetworksAreMadeOfString IPv6&#8243; SSID.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2008/10/11/dual-stack-ipv4-ipv6-dhcp-in-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Last H.O.P.E and Tackling the Debian OpenSSL Issue</title>
		<link>http://blog.networksaremadeofstring.co.uk/2008/07/30/last-hope-and-tackling-the-debian-openssl-issue/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2008/07/30/last-hope-and-tackling-the-debian-openssl-issue/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 17:34:38 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Datacenter]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/2008/07/30/last-hope-and-tackling-the-debian-openssl-issue/</guid>
		<description><![CDATA[Well I&#8217;m back from my trip to New York and I&#8217;ve brought back a couple of things. With the most tracks HOPE has ever had I was truly spoilt for choice but I spent most of my time [when I wasn't showing our US friends how drinking should be done] visiting talks that had potential [...]]]></description>
			<content:encoded><![CDATA[<p>Well I&#8217;m back from my trip to New York and I&#8217;ve brought back a couple of things.</p>
<p>With the most tracks HOPE has ever had I was truly spoilt for choice but I spent most of my time [<em>when I wasn't showing our US friends how drinking should be done</em>] visiting talks that had potential datacenter impact.</p>
<p>Kevin Figueroa, Marco Figueroa and Anthony L. Williams reminded me that VLAN&#8217;s and other layer 2 stuff is still vulnerable to many attacks. Most are just Denial of Service stuff that would be detected almost instantly and very easily fixed (<em>although not easily preventable</em>) but the cross VLAN packet injection / snooping made me rethink some of my installations that packet injection / snooping would not be a critical issue but might not be desirable. Bare in mind though that in order to attack layer 2 someone needs to own a box on my layer 2 infrastructure which is much more of an issue! </p>
<p>The demonstration that stuck with me the most was Jacob Appelbaum, Dino Dai Zovi and Karsten Nohl&#8217;s talk regarding the Debian OpenSSL catastrophe. When I first heard about it there was much smugness (<em>being as I only use Red Hat Enterprise / CentOS and FreeBSD</em>) My fellow SysAdmins and I had many hours of fun reminding our collegues who had chosen Debian as their Distro of choice of this &#8216;little&#8217; bug.</p>
<p>Unfortunately our smugness was shortlived as these Debian keys can end up in a RedHat servers authorised_keys file which results in that server being vulnerable to <a href="http://www.metasploit.com/users/hdm/tools/debian-openssl/">Brute Forcing</a>. Knowing how lazy people are and how widespread the careless use of root is there was likely to be a few machines out there just waiting to get rooted. </p>
<p>The majority of tools (<em>asides from the <a href="http://security.debian.org/project/extra/dowkd/dowkd.pl.gz">official Debian tools</a></em>) are designed for discovering vulnerable servers that <strong>don&#8217;t</strong> belong to you! The Debian tool is great unless for one reason or another you don&#8217;t / can&#8217;t have Perl installed.</p>
<p>Therefore I present to you another hacked together bash script that anyone <em>could</em> have put together in 5 minutes but maybe this&#8217;ll save someone the hassle.</p>
<p><code><br />
#!/bin/bash<br />
#--------------------------------------<br />
# Looks for fscking debian client keys<br />
# Gareth#NetworksAreMadeOfString.co.uk<br />
#--------------------------------------<br />
<br />
for KeysFile in `locate authorized_keys`; do<br />
&nbsp;&nbsp;echo<br />
&nbsp;&nbsp;echo Testing $KeysFile for weak keys<br />
&nbsp;&nbsp;echo -------------------------------------------------<br />
<br />
&nbsp;&nbsp;cat $KeysFile | while read line; do<br />
<br />
&nbsp;&nbsp;&nbsp;echo $line > pubkey.tmp<br />
<br />
&nbsp;&nbsp;&nbsp;RawFP=`ssh-keygen -l -f pubkey.tmp | awk '{print $2}'`<br />
<br />
&nbsp;&nbsp;&nbsp;FP=${RawFP//:/}<br />
<br />
&nbsp;&nbsp;&nbsp;MatchCount=`grep -c $FP FingerPrints.db`<br />
<br />
&nbsp;&nbsp;&nbsp;if [ $MatchCount -gt 0 ]; then<br />
&nbsp;&nbsp;&nbsp;echo -e '\E[40;31m'"\033[1m!!!!! WEAK KEY FOUND!!!!!!\033[0m"<br />
&nbsp;&nbsp;&nbsp;echo $line<br />
&nbsp;&nbsp;&nbsp;fi<br />
&nbsp;&nbsp;&nbsp;done<br />
&nbsp;&nbsp;done<br />
&nbsp;echo<br />
&nbsp;echo ------------- DONE -------------<br />
</code></p>
<p>The FingerPrints.db file can be found <a href="http://blog.networksaremadeofstring.co.uk/wp-content/uploads/Directs/FingerPrints.db">here</a></p>
<p>Hopefully you&#8217;ll find vulnerable user accounts before someone else does!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2008/07/30/last-hope-and-tackling-the-debian-openssl-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora 8 Released</title>
		<link>http://blog.networksaremadeofstring.co.uk/2007/11/10/fedora-8-released/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2007/11/10/fedora-8-released/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 23:35:02 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/2007/11/10/fedora-8-released/</guid>
		<description><![CDATA[The new version of Fedora is upon us, Rejoice! Feature List Where to get it Update &#8211; 22/11/2007 In little under 2 weeks I&#8217;ve seeded nearly 40Gb! Ubuntu 7.10 has only seeded 33Gb and has been out for twice as long. Read into that what you will!]]></description>
			<content:encoded><![CDATA[<p>The new version of Fedora is upon us, Rejoice!</p>
<p><a href="http://fedoraproject.org/wiki/Releases/8/FeatureList">Feature List</a><br />
<a href="http://fedoraproject.org/get-fedora">Where to get it</a></p>
<p><strong>Update &#8211; 22/11/2007</strong><br />
In little under 2 weeks I&#8217;ve seeded nearly 40Gb! Ubuntu 7.10 has only seeded 33Gb and has been out for twice as long. <em>Read into that what you will!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2007/11/10/fedora-8-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caching Yum Package Updates to Simulate the Bandwidth Benefits of RHN Satellites</title>
		<link>http://blog.networksaremadeofstring.co.uk/2007/05/18/caching-yum-package-updates-to-simulate-the-bandwidth-benefits-of-rhn-satellites/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2007/05/18/caching-yum-package-updates-to-simulate-the-bandwidth-benefits-of-rhn-satellites/#comments</comments>
		<pubDate>Fri, 18 May 2007 11:01:25 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Datacenter]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Systems]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/2007/05/18/caching-yum-package-updates-to-simulate-the-bandwidth-benefits-of-rhn-satellites/</guid>
		<description><![CDATA[This months updates have meant that a lot of my servers now have outdated packages. Bandwidth isn&#8217;t really too much of problem when it comes to my RHEL servers as they sit on 100mbit connections in Telehouse and Texas, however all my home and office based CentOS servers sit on a mixture of 2Mbit SDSL, [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/rhn.jpg' title='Random View of the RHN Interface'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/rhn.jpg' style="border-style: none" alt='Random View of the RHN Interface' /></a> This months updates have meant that a lot of my servers now have outdated packages. Bandwidth isn&#8217;t really too much of problem when it comes to my RHEL servers as they sit on 100mbit connections in Telehouse and Texas, however all my home and office based CentOS servers sit on a mixture of 2Mbit SDSL, 20Mbit Cable and 8Mb ADSL connections. Thats not really a lot of bandwidth for what could be a couple of gigs of data, especially when you consider that most of these lines sit at around 80% capacity (I know I know, don&#8217;t ask&#8230;.).</p>
<p>For those SysAdmins with hundreds of servers in a datacenter and can&#8217;t afford to saturate their links downloading all of these packages each and every time RedHat offer some products one of which is the <a href="http://www.redaht.com/docs/manuals/RHNetwork/satellite/4.1.0/s1-intro-sat.html">RHN Satellite</a> entitlement. Now I thought to myself that if RedHat can provide what they call <a href="http://www.redaht.com/docs/manuals/RHNetwork/proxy/4.1.0/s1-example-topologies-sat.html">RedHat Proxy for RHN Satellites</a> then it is possible that I can do something similar for Yum. <em>(I&#8217;m letting the RHEL servers update directly because they have plenty of bandwidth available and more importantly I don&#8217;t have any Satellite entitlements!)</em>.</p>
<p>The first thing I considered was utilising Squid on my trusty router o&#8217; doom and then I realised that it is running RedHat 9, only has a 4Gb HDD and 128Mb of RAM. That idea was quickly scrapped. Then I realised that the CacheFlow 600 was DualNIC enabled and even with the <a href="http://blog.networksaremadeofstring.co.uk/2007/05/10/free-wifi-and-what-people-do-with-it/">neighbourhood trying to hammer my bandwidth</a> it was still sitting quite happily at only 13% capacity. </p>
<p>After configuring the CacheFlow (<em>since this article is more about the benefits of caching, coupled with the fact that I guess I&#8217;m the only person who has a CacheFlow at home I&#8217;ll skip that bit</em>) it was a simple case of editing the yum.conf of each machine. </p>
<p>I didn&#8217;t want all traffic to be going through the CacheFlow (not sure why) and since the CacheFlow is not the default gateway for their side of the network it would have required a static route on the Router O&#8217; Doom to send all traffic from the CentOS machines for the repo&#8217;s back through to the CacheFlow. Obviously it wouldn&#8217;t be wise to forget to filter for the source of the requests otherwise the CacheFlow&#8217;s requests would get sent back to itself and then I would probably end up in a whole new world of pain.</p>
<p>Adding a proxy for Yum to use is simple:<br />
<code><br />
[main]<br />
cachedir=/var/cache/yum<br />
debuglevel=2<br />
logfile=/var/log/yum.log<br />
pkgpolicy=newest<br />
distroverpkg=centos-release<br />
tolerant=1<br />
exactarch=1<br />
retries=20<br />
obsoletes=1<br />
gpgcheck=1<br />
<strong>proxy=http://172.16.0.7:8080</strong><br />
</code></p>
<p>With that done I ran the first CentOS machine off on a little jaunt to do a full package update. With the CentOS Plus repository enabled the package list came to 178Mb, multiple that by 5 machines and thats 890Mb excluding overheads of course. Ok so maybe all of this is a bit overkill but hey its something to do and after all electricity is free isn&#8217;t it&#8230;&#8230;&#8230;</p>
<p><strong>Initial Run:</strong><br />
<strong>Time:</strong> 26mins<br />
<strong>Average Throughput:</strong> 146.4 kB/s</p>
<p><strong>4 Remaining Servers:</strong><br />
<strong>Time:</strong> 9mins<br />
<strong>Average Throughput:</strong> 580.2kB/s</p>
<p>Whilst the times and average speeds speak for themselves the MRTG graphs of what happened are even better:</p>
<p><strong>CacheFlow Client Throughput (Cacheflow to Clients)</strong><br />
<a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/cacheflow-client-http-traffic-day.png' title='CacheFlow Client Throughput'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/cacheflow-client-http-traffic-day.png' alt='CacheFlow Client Throughput' /></a><br />
<br />&nbsp;<br />
<strong>CacheFlow Server Throughput (Cacheflow to Internet)</strong><br />
<a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/cacheflow-server-http-traffic-day.png' title='CacheFlow Server Throughput'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/cacheflow-server-http-traffic-day.png' alt='CacheFlow Server Throughput' /></a><br />
<br />&nbsp;<br />
The small &#8216;blip&#8217; in traffic towards the internet is the CacheFlow <a href="http://www.bluecoat.com/resources/technology/proxycaching.html#c">checking</a> whether anything had changed since it was last cached. </p>
<p>The benefits here are apparant even if at this scale it isn&#8217;t really worth the effort. However NAMOS isn&#8217;t about that, hell it&#8217;ll probably never be about that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2007/05/18/caching-yum-package-updates-to-simulate-the-bandwidth-benefits-of-rhn-satellites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free WiFi and What People Do With It</title>
		<link>http://blog.networksaremadeofstring.co.uk/2007/05/10/free-wifi-and-what-people-do-with-it/</link>
		<comments>http://blog.networksaremadeofstring.co.uk/2007/05/10/free-wifi-and-what-people-do-with-it/#comments</comments>
		<pubDate>Thu, 10 May 2007 12:15:56 +0000</pubDate>
		<dc:creator>Gareth Llewellyn</dc:creator>
				<category><![CDATA[Networks]]></category>

		<guid isPermaLink="false">http://blog.networksaremadeofstring.co.uk/?p=4</guid>
		<description><![CDATA[Anyone travelling through Reading may have at some point seen the unsecured wireless network called NAMOS. Well thats me. The Network isn&#8217;t totally insecure, the Access Points sit behind a Juniper NS5GT and all web / IM / mail is piped through a BlueCoat Security Appliance. I noticed that the client stats were increasing and [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone travelling through Reading may have at some point seen the unsecured wireless network called NAMOS. Well thats me.</p>
<p>The Network isn&#8217;t totally insecure, the Access Points sit behind a Juniper NS5GT and all web / IM / mail is piped through a <a href="http://www.bluecoat.com/products/sg/810.html">BlueCoat Security Appliance</a>. I noticed that the client stats were increasing and I was wondering what people were doing with the system. </p>
<p>As indicated earlier a Firewall and Security appliance sits between the wireless and my Internet router, the Firewall only allows Web, IM and IMAP/POP3 through. So I was thinking what would these people would do if I let them do what they want. An investigation was called for!</p>
<p>So cue sticking <a href="http://www.ntop.org/">NTOP</a> on a spare machine and a quick mirrored port later means I can watch what happens. 24 hours later I had some interesting results. </p>
<p><strong>Basic Traffic Breakdown:</strong><br />
<a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/ipprotodistribution.png' title='Wifi Traffic'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/ipprotodistribution.png' alt='Wifi Traffic' /></a></p>
<p><strong>Packet Size Breakdown:</strong><br />
<a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/pktsizedistribpie.png' title='Wifi Traffic - Packet Sizes'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/pktsizedistribpie.png' alt='Wifi Traffic - Packet Sizes' /></a></p>
<p><strong>Distance of Hosts</strong><br />
<a href='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/hostsdistancechart.png' title='Hosts Distance'><img src='http://blog.networksaremadeofstring.co.uk/wp-content/uploads/2007/05/hostsdistancechart.png' alt='Hosts Distance' /></a></p>
<p><strong>Network Throughput</strong><br />
Actual	681.8 Kbps<br />
Last Minute	624.4 Kbps<br />
Last 5 Minutes	644.0 Kbps<br />
Peak	7.7 Mbps<br />
Average	617.7 Kbps</p>
<p>So I think we can safely say that people like Torrents and Usenet.</p>
<p><em>A note on Privacy: The BlueCoat device displays a splash screen when a user first attempts to connect to a website and also inserts a message to both parties at the start of an IM conversation. So people knew that there was the possibility that what they were doing was going to be recorded.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.networksaremadeofstring.co.uk/2007/05/10/free-wifi-and-what-people-do-with-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
