<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Blog:: Craig Pringle - Security</title>
    <link>http://www.pringle.net.nz/blog/</link>
    <description>A collection of my thoughts about TabletPCs, mobility and, well other stuff...</description>
    <image>
      <url>http://www.pringle.net.nz/blog/images/pringle.gif</url>
      <title>Blog:: Craig Pringle - Security</title>
      <link>http://www.pringle.net.nz/blog/</link>
    </image>
    <language>en-us</language>
    <copyright>Craig Pringle</copyright>
    <lastBuildDate>Thu, 02 Jul 2009 12:02:48 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>craig@pringle.net.nz</managingEditor>
    <webMaster>craig@pringle.net.nz</webMaster>
    <item>
      <trackback:ping>http://www.pringle.net.nz/blog/Trackback.aspx?guid=0db68b07-0be2-4708-81e0-5fccecb33872</trackback:ping>
      <pingback:server>http://www.pringle.net.nz/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx</pingback:target>
      <dc:creator>Craig Pringle</dc:creator>
      <wfw:comment>http://www.pringle.net.nz/blog/CommentView,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx</wfw:comment>
      <wfw:commentRss>http://www.pringle.net.nz/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0db68b07-0be2-4708-81e0-5fccecb33872</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Several people have asked for me to post more detail about the CMD scripts that I
wrote to <a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx">get
the Cisco VPN client working on my 64-bit Win 7 machine using Virtual XP</a> .
</p>
        <p>
Basically I have written two scripts.  One adds routes to the subnets I need
at work and the other deletes them.  So – what are routes?  Basically they
are the directions that computers use to send communications to the right place.  
</p>
        <p>
The first thing you need to do is identify what network addresses are in use on your
work network.  Fortunately the Cisco client makes this fairly easy for you. 
Once the Cisco VPN client is installed in the virtual XP environment, connect the
VPN and then Select the <em>Statistics </em>option from the <em>Status </em>menu in
the VPN client window.  This will list the subnets on your remote network as
shown below:
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/CommandScriptsforusewithCiscoVPNHack_13600/image_4.png">
            <img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/CommandScriptsforusewithCiscoVPNHack_13600/image_thumb_1.png" width="244" height="172" />
          </a>
        </p>
        <p>
I created a text file where each line in the file was a remote subnet and subnet mask,
separated by a semicolon.  For example if your remote network used three networks:
192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 then your text file would look like
this:
</p>
        <p>
192.168.1.0;255.255.255.0 
<br />
192.168.2.0;255.255.255.0 
<br />
192.168.3.0;255.255.255.0
</p>
        <p>
Save this text file to your hard drive.  I saved mine in c:\utils\addroutes.txt
</p>
        <p>
In a nutshell when I am connected to the VPN I run AddRoutes.cmd script and it helps
the Windows 7 machine identify the traffic intended for my work network.  In
the example above it would need to know to send any traffic for the above three networks
to the Loopback adaptor of the host <a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx">as
discussed in my previous post</a>.
</p>
        <p>
Here is what is in the AddRoutes.cmd script:
</p>
        <p>
@Echo Off 
<br />
Set GW=192.168.233.1 
<br />
Echo Setting Up Routes: 
<br />
for /F "delims=; tokens=1-2" %%i in (c:\utils\vpnroutes.txt) Do route add
%%i Mask %%j %GW% metric 1&gt;NUL 
<br />
Echo Done!
</p>
        <p>
(note that “for” through to NUL is all one line)
</p>
        <p>
What does this do?  The first line tells the script not to show the commands
as it runs them.
</p>
        <p>
The next line creates a variable called GW and sets it to the IP Address of the loopback
adaptor.
</p>
        <p>
The third line just provides some visual feedback and tells you that it is about to
add the routes.
</p>
        <p>
Line 4 is the workhorse.  I’m not going to go into the nuts and bolts of the
“for” command, but it is very powerful.  If you want to know more, you can type
“for /?” at the command line.  In a nutshell what line 4 says is:
</p>
        <p>
In C:\utils\vpnroutes.txt each line is a list of values seperated by semicolons. 
For each line run the following command with the first two values:
</p>
        <p>
route add <em>Value1</em> mask <em>Value2 GW</em></p>
        <p>
Where GW is the address of the gateway we set in line 2.
</p>
        <p>
That’s it – you are online and know how to talk to your VPN network.
</p>
        <p>
Now when you disconnect  you don’t need those routes anymore, and if you leave
them there they may cause issues.  So DeleteRoutes.cmd removes them again.
</p>
        <p>
Here is what is in DelRoutes.cmd:
</p>
        <p>
@Echo Off 
<br />
Echo Deleteing Routes... 
<br />
for /F "delims=; tokens=1" %%i in (c:\utils\vpnroutes.txt) Do route delete
%%i&gt;NUL 
<br />
Echo Done!
</p>
        <p>
This is very similar to the first script – For each line in the vpnroutes.txt file
it runs a command to remove the route again.  
</p>
        <p>
There is one last thing you may need to make everything work as expected and that
is name resolution.  This one is easy to fix.  If you know the address of
your DNS server on your remote network add it as the DNS server on the properties
of the loopback adaptor.  This won’t cause any issues if you leave it there full
time.
</p>
        <p>
Hope that helps everyone.  I will admit it is a bit of a nasty work around but
it does work.
</p>
        <img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=0db68b07-0be2-4708-81e0-5fccecb33872" />
      </body>
      <title>Command Scripts for use with Cisco VPN Hack</title>
      <guid isPermaLink="false">http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx</guid>
      <link>http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx</link>
      <pubDate>Thu, 02 Jul 2009 12:02:48 GMT</pubDate>
      <description>&lt;p&gt;
Several people have asked for me to post more detail about the CMD scripts that I
wrote to &lt;a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx"&gt;get
the Cisco VPN client working on my 64-bit Win 7 machine using Virtual XP&lt;/a&gt; .
&lt;/p&gt;
&lt;p&gt;
Basically I have written two scripts.&amp;#160; One adds routes to the subnets I need
at work and the other deletes them.&amp;#160; So – what are routes?&amp;#160; Basically they
are the directions that computers use to send communications to the right place.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
The first thing you need to do is identify what network addresses are in use on your
work network.&amp;#160; Fortunately the Cisco client makes this fairly easy for you.&amp;#160;
Once the Cisco VPN client is installed in the virtual XP environment, connect the
VPN and then Select the &lt;em&gt;Statistics &lt;/em&gt;option from the &lt;em&gt;Status &lt;/em&gt;menu in
the VPN client window.&amp;#160; This will list the subnets on your remote network as
shown below:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/CommandScriptsforusewithCiscoVPNHack_13600/image_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/CommandScriptsforusewithCiscoVPNHack_13600/image_thumb_1.png" width="244" height="172" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I created a text file where each line in the file was a remote subnet and subnet mask,
separated by a semicolon.&amp;#160; For example if your remote network used three networks:
192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 then your text file would look like
this:
&lt;/p&gt;
&lt;p&gt;
192.168.1.0;255.255.255.0 
&lt;br /&gt;
192.168.2.0;255.255.255.0 
&lt;br /&gt;
192.168.3.0;255.255.255.0
&lt;/p&gt;
&lt;p&gt;
Save this text file to your hard drive.&amp;#160; I saved mine in c:\utils\addroutes.txt
&lt;/p&gt;
&lt;p&gt;
In a nutshell when I am connected to the VPN I run AddRoutes.cmd script and it helps
the Windows 7 machine identify the traffic intended for my work network.&amp;#160; In
the example above it would need to know to send any traffic for the above three networks
to the Loopback adaptor of the host &lt;a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx"&gt;as
discussed in my previous post&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Here is what is in the AddRoutes.cmd script:
&lt;/p&gt;
&lt;p&gt;
@Echo Off 
&lt;br /&gt;
Set GW=192.168.233.1 
&lt;br /&gt;
Echo Setting Up Routes: 
&lt;br /&gt;
for /F &amp;quot;delims=; tokens=1-2&amp;quot; %%i in (c:\utils\vpnroutes.txt) Do route add
%%i Mask %%j %GW% metric 1&amp;gt;NUL 
&lt;br /&gt;
Echo Done!
&lt;/p&gt;
&lt;p&gt;
(note that “for” through to NUL is all one line)
&lt;/p&gt;
&lt;p&gt;
What does this do?&amp;#160; The first line tells the script not to show the commands
as it runs them.
&lt;/p&gt;
&lt;p&gt;
The next line creates a variable called GW and sets it to the IP Address of the loopback
adaptor.
&lt;/p&gt;
&lt;p&gt;
The third line just provides some visual feedback and tells you that it is about to
add the routes.
&lt;/p&gt;
&lt;p&gt;
Line 4 is the workhorse.&amp;#160; I’m not going to go into the nuts and bolts of the
“for” command, but it is very powerful.&amp;#160; If you want to know more, you can type
“for /?” at the command line.&amp;#160; In a nutshell what line 4 says is:
&lt;/p&gt;
&lt;p&gt;
In C:\utils\vpnroutes.txt each line is a list of values seperated by semicolons.&amp;#160;
For each line run the following command with the first two values:
&lt;/p&gt;
&lt;p&gt;
route add &lt;em&gt;Value1&lt;/em&gt; mask &lt;em&gt;Value2 GW&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Where GW is the address of the gateway we set in line 2.
&lt;/p&gt;
&lt;p&gt;
That’s it – you are online and know how to talk to your VPN network.
&lt;/p&gt;
&lt;p&gt;
Now when you disconnect&amp;#160; you don’t need those routes anymore, and if you leave
them there they may cause issues.&amp;#160; So DeleteRoutes.cmd removes them again.
&lt;/p&gt;
&lt;p&gt;
Here is what is in DelRoutes.cmd:
&lt;/p&gt;
&lt;p&gt;
@Echo Off 
&lt;br /&gt;
Echo Deleteing Routes... 
&lt;br /&gt;
for /F &amp;quot;delims=; tokens=1&amp;quot; %%i in (c:\utils\vpnroutes.txt) Do route delete
%%i&amp;gt;NUL 
&lt;br /&gt;
Echo Done!
&lt;/p&gt;
&lt;p&gt;
This is very similar to the first script – For each line in the vpnroutes.txt file
it runs a command to remove the route again.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
There is one last thing you may need to make everything work as expected and that
is name resolution.&amp;#160; This one is easy to fix.&amp;#160; If you know the address of
your DNS server on your remote network add it as the DNS server on the properties
of the loopback adaptor.&amp;#160; This won’t cause any issues if you leave it there full
time.
&lt;/p&gt;
&lt;p&gt;
Hope that helps everyone.&amp;#160; I will admit it is a bit of a nasty work around but
it does work.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=0db68b07-0be2-4708-81e0-5fccecb33872" /&gt;</description>
      <comments>http://www.pringle.net.nz/blog/CommentView,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx</comments>
      <category>Connectivity</category>
      <category>Security</category>
      <category>Windows 7</category>
    </item>
    <item>
      <trackback:ping>http://www.pringle.net.nz/blog/Trackback.aspx?guid=2044fd9d-c47b-4a8a-ac4d-b9e449debe51</trackback:ping>
      <pingback:server>http://www.pringle.net.nz/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.pringle.net.nz/blog/PermaLink,guid,2044fd9d-c47b-4a8a-ac4d-b9e449debe51.aspx</pingback:target>
      <dc:creator>Craig Pringle</dc:creator>
      <wfw:comment>http://www.pringle.net.nz/blog/CommentView,guid,2044fd9d-c47b-4a8a-ac4d-b9e449debe51.aspx</wfw:comment>
      <wfw:commentRss>http://www.pringle.net.nz/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2044fd9d-c47b-4a8a-ac4d-b9e449debe51</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Previously <a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx">I
blogged about the lack of a 64-bit Cisco VPN client</a>.  
</p>
        <p>
In the <a href="http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx#commentstart">comments
of that post yaz points out</a> that NCP has a Beta Client that works on 64-bit clients
– and that includes Windows 7.  It also supports 3rd party VPNs and that includes
Cisco.
</p>
        <p>
The NCP beta client is available <a href="http://www.ncp-e.com/en/downloads/software.html">via
this page</a>.  Install was simple and there is even a UI to import your existing
Cisco VPN profile.  
</p>
        <p>
It appears to be a 30 day trial – which is a bit odd for a beta product.  It
does appear to work though.  I’ll give it a good work out over the next couple
of days and report back.
</p>
        <img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=2044fd9d-c47b-4a8a-ac4d-b9e449debe51" />
      </body>
      <title>Working VPN Client for Win7 x64</title>
      <guid isPermaLink="false">http://www.pringle.net.nz/blog/PermaLink,guid,2044fd9d-c47b-4a8a-ac4d-b9e449debe51.aspx</guid>
      <link>http://www.pringle.net.nz/blog/PermaLink,guid,2044fd9d-c47b-4a8a-ac4d-b9e449debe51.aspx</link>
      <pubDate>Mon, 25 May 2009 11:44:26 GMT</pubDate>
      <description>&lt;p&gt;
Previously &lt;a href="http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx"&gt;I
blogged about the lack of a 64-bit Cisco VPN client&lt;/a&gt;.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
In the &lt;a href="http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx#commentstart"&gt;comments
of that post yaz points out&lt;/a&gt; that NCP has a Beta Client that works on 64-bit clients
– and that includes Windows 7.&amp;#160; It also supports 3rd party VPNs and that includes
Cisco.
&lt;/p&gt;
&lt;p&gt;
The NCP beta client is available &lt;a href="http://www.ncp-e.com/en/downloads/software.html"&gt;via
this page&lt;/a&gt;.&amp;#160; Install was simple and there is even a UI to import your existing
Cisco VPN profile.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
It appears to be a 30 day trial – which is a bit odd for a beta product.&amp;#160; It
does appear to work though.&amp;#160; I’ll give it a good work out over the next couple
of days and report back.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=2044fd9d-c47b-4a8a-ac4d-b9e449debe51" /&gt;</description>
      <comments>http://www.pringle.net.nz/blog/CommentView,guid,2044fd9d-c47b-4a8a-ac4d-b9e449debe51.aspx</comments>
      <category>Connectivity</category>
      <category>General</category>
      <category>Security</category>
      <category>Windows 7</category>
    </item>
    <item>
      <trackback:ping>http://www.pringle.net.nz/blog/Trackback.aspx?guid=12ee0de7-f998-4084-8b06-537b3dbd5d9a</trackback:ping>
      <pingback:server>http://www.pringle.net.nz/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</pingback:target>
      <dc:creator>Craig Pringle</dc:creator>
      <wfw:comment>http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</wfw:comment>
      <wfw:commentRss>http://www.pringle.net.nz/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=12ee0de7-f998-4084-8b06-537b3dbd5d9a</wfw:commentRss>
      <slash:comments>9</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
For reasons that escape me Cisco have chosen not to release a 64-bit version of the
IPSec Cisco VPN Client. 
</p>
        <p>
This is a problem for me since I installed the 64-bit version of Windows 7 RC on my
Toshiba M750.
</p>
        <p>
To get around this without rebuilding with the 32-bit version I employed Windows 7’s
new <a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">XP Mode</a> –
aka Virtual XP.
</p>
        <p>
First I followed the steps on the <a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">download
page</a>:
</p>
        <ol>
          <li>
Enabled virtualisation extensions in the BIOS. 
</li>
          <li>
Download and install the Virtual PC Beta. 
</li>
          <li>
Download Windows XP Mode. 
</li>
        </ol>
        <p>
That done I fired up the <em>Virtual Windows XP</em> from my Start Menu:
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_14.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_6.png" width="241" height="82" />
          </a>
        </p>
        <p>
This loaded up a Virtual Machine already running Windows XP.  I installed the
Cisco VPN Client and verified that it could connect to the VPN.  
</p>
        <p>
This is where it gets a little tricky.  At this point I have my Toshiba, which
is the host and an XP machine which is a guest.  The XP Guest has a virtual adaptor
that leverages the host’s network adaptor and can connect to the remote network. 
But the host has not way to connect through the guest to get to the remote network.
</p>
        <p>
For initial testing I created a static route for one of the subnets and pointed it
to the IP Address of the guest.  This worked, but it is a bit fiddly as the guest
IP address is assigned by DHCP and as such will change depending on where I am.
</p>
        <p>
I wanted something that required a little less work to get connected.  To achieve
this I needed to create a virtual adaptor on the Host.  This is done by adding
a loopback adapter to the host.
</p>
        <p>
          <strong>Adding a Loopback Adapter to the Host</strong>
        </p>
        <p>
In Device Manager right click the root node and select <em>Add Legacy Hardware</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb.png" width="244" height="162" />
          </a>
        </p>
        <p>
On the welcome screen click <em>Next</em>.
</p>
        <p>
Then select <em>Install the hardware that I manually select from a list (Advanced) </em>and
then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_1.png" width="244" height="181" />
          </a>
        </p>
        <p>
Scroll down and select <em>Network Adapters </em>and then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_6.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_2.png" width="218" height="215" />
          </a>
        </p>
        <p>
Then select <em>Microsoft </em>as the Manufacturer and <em>Microsoft Loopback Adapter </em>and
then click <em>Next</em></p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_10.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_4.png" width="244" height="59" />
          </a>
        </p>
        <p>
        </p>
        <p>
On the confirmation screen click <em>Next</em>.  Then when the installation finishes
click <em>Finish</em>.
</p>
        <p>
        </p>
        <p>
Once this has completed you will find a new network adapter in the Network Connections.
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_12.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_5.png" width="244" height="105" />
          </a>
        </p>
        <p>
I configured this adapter with a private IP address in a range that I don’t use at
home or work.  
</p>
        <p>
Next I added a second Virtual Adapter to the Virtual Windows XP machine and bound
this to the new Loopback Adapter.  I assigned a static address to this in the
same range as the Loopback adapter.
</p>
        <p>
Because the network I am connecting to uses a number of subnets I wrote two quick
CMD scripts.  One adds the routes on the host, the other removes them.
</p>
        <p>
Virtual PC also creates shortcuts for applications installed in the guest on the Start
Menu of the host.  
</p>
        <p>
          <a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_16.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_7.png" width="240" height="178" />
          </a>
        </p>
        <p>
To connect to my VPN I can run this and it hides Virtual Machine’s desktop and the
VPN client looks like it is running on the Windows 7 machine.  I then run my
script to create the routes and I can work away.  When I disconnect the VPN I
run another script to delete the routes again.  Of course I can add shortcuts
to all three actions to my desktop to ease the process.  Not quite as clean as
installing the client directly on the machine, but it works.
</p>
        <p>
          <font color="#ff0000">Update:</font> For details of the command scripts <a href="http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx">see
this post.</a></p>
        <img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12ee0de7-f998-4084-8b06-537b3dbd5d9a" />
      </body>
      <title>Cisco VPN Client on Windows 7 x64</title>
      <guid isPermaLink="false">http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</guid>
      <link>http://www.pringle.net.nz/blog/PermaLink,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</link>
      <pubDate>Sun, 10 May 2009 12:16:04 GMT</pubDate>
      <description>&lt;p&gt;
For reasons that escape me Cisco have chosen not to release a 64-bit version of the
IPSec Cisco VPN Client. 
&lt;/p&gt;
&lt;p&gt;
This is a problem for me since I installed the 64-bit version of Windows 7 RC on my
Toshiba M750.
&lt;/p&gt;
&lt;p&gt;
To get around this without rebuilding with the 32-bit version I employed Windows 7’s
new &lt;a href="http://www.microsoft.com/windows/virtual-pc/download.aspx"&gt;XP Mode&lt;/a&gt; –
aka Virtual XP.
&lt;/p&gt;
&lt;p&gt;
First I followed the steps on the &lt;a href="http://www.microsoft.com/windows/virtual-pc/download.aspx"&gt;download
page&lt;/a&gt;:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
Enabled virtualisation extensions in the BIOS. 
&lt;/li&gt;
&lt;li&gt;
Download and install the Virtual PC Beta. 
&lt;/li&gt;
&lt;li&gt;
Download Windows XP Mode. 
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
That done I fired up the &lt;em&gt;Virtual Windows XP&lt;/em&gt; from my Start Menu:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_14.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_6.png" width="241" height="82" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
This loaded up a Virtual Machine already running Windows XP.&amp;#160; I installed the
Cisco VPN Client and verified that it could connect to the VPN.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
This is where it gets a little tricky.&amp;#160; At this point I have my Toshiba, which
is the host and an XP machine which is a guest.&amp;#160; The XP Guest has a virtual adaptor
that leverages the host’s network adaptor and can connect to the remote network.&amp;#160;
But the host has not way to connect through the guest to get to the remote network.
&lt;/p&gt;
&lt;p&gt;
For initial testing I created a static route for one of the subnets and pointed it
to the IP Address of the guest.&amp;#160; This worked, but it is a bit fiddly as the guest
IP address is assigned by DHCP and as such will change depending on where I am.
&lt;/p&gt;
&lt;p&gt;
I wanted something that required a little less work to get connected.&amp;#160; To achieve
this I needed to create a virtual adaptor on the Host.&amp;#160; This is done by adding
a loopback adapter to the host.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Adding a Loopback Adapter to the Host&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
In Device Manager right click the root node and select &lt;em&gt;Add Legacy Hardware&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb.png" width="244" height="162" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
On the welcome screen click &lt;em&gt;Next&lt;/em&gt;.
&lt;/p&gt;
&lt;p&gt;
Then select &lt;em&gt;Install the hardware that I manually select from a list (Advanced) &lt;/em&gt;and
then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_1.png" width="244" height="181" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Scroll down and select &lt;em&gt;Network Adapters &lt;/em&gt;and then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_2.png" width="218" height="215" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Then select &lt;em&gt;Microsoft &lt;/em&gt;as the Manufacturer and &lt;em&gt;Microsoft Loopback Adapter &lt;/em&gt;and
then click &lt;em&gt;Next&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_10.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_4.png" width="244" height="59" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
On the confirmation screen click &lt;em&gt;Next&lt;/em&gt;.&amp;#160; Then when the installation finishes
click &lt;em&gt;Finish&lt;/em&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Once this has completed you will find a new network adapter in the Network Connections.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_12.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_5.png" width="244" height="105" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
I configured this adapter with a private IP address in a range that I don’t use at
home or work.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
Next I added a second Virtual Adapter to the Virtual Windows XP machine and bound
this to the new Loopback Adapter.&amp;#160; I assigned a static address to this in the
same range as the Loopback adapter.
&lt;/p&gt;
&lt;p&gt;
Because the network I am connecting to uses a number of subnets I wrote two quick
CMD scripts.&amp;#160; One adds the routes on the host, the other removes them.
&lt;/p&gt;
&lt;p&gt;
Virtual PC also creates shortcuts for applications installed in the guest on the Start
Menu of the host.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_16.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.pringle.net.nz/blog/content/binary/WindowsLiveWriter/a80875bd5ad9_11FEF/image_thumb_7.png" width="240" height="178" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
To connect to my VPN I can run this and it hides Virtual Machine’s desktop and the
VPN client looks like it is running on the Windows 7 machine.&amp;#160; I then run my
script to create the routes and I can work away.&amp;#160; When I disconnect the VPN I
run another script to delete the routes again.&amp;#160; Of course I can add shortcuts
to all three actions to my desktop to ease the process.&amp;#160; Not quite as clean as
installing the client directly on the machine, but it works.
&lt;/p&gt;
&lt;p&gt;
&lt;font color="#ff0000"&gt;Update:&lt;/font&gt; For details of the command scripts &lt;a href="http://www.pringle.net.nz/blog/PermaLink,guid,0db68b07-0be2-4708-81e0-5fccecb33872.aspx"&gt;see
this post.&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12ee0de7-f998-4084-8b06-537b3dbd5d9a" /&gt;</description>
      <comments>http://www.pringle.net.nz/blog/CommentView,guid,12ee0de7-f998-4084-8b06-537b3dbd5d9a.aspx</comments>
      <category>Connectivity</category>
      <category>M750</category>
      <category>Security</category>
      <category>Virtual PC</category>
      <category>Windows 7</category>
    </item>
    <item>
      <trackback:ping>http://www.pringle.net.nz/blog/Trackback.aspx?guid=12fbb58f-5951-4d59-9194-d450cf88fcaa</trackback:ping>
      <pingback:server>http://www.pringle.net.nz/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.pringle.net.nz/blog/PermaLink,guid,12fbb58f-5951-4d59-9194-d450cf88fcaa.aspx</pingback:target>
      <dc:creator>Craig Pringle</dc:creator>
      <wfw:comment>http://www.pringle.net.nz/blog/CommentView,guid,12fbb58f-5951-4d59-9194-d450cf88fcaa.aspx</wfw:comment>
      <wfw:commentRss>http://www.pringle.net.nz/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=12fbb58f-5951-4d59-9194-d450cf88fcaa</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
My friend Chris recently took the plunge and installed Windows 7 on his Lenovo T61
notebook.  He had managed to get the fingerprint reader working on it and has <a href="http://www.cgoosen.com/2009/03/lenovo-t61-biometric-device-on-windows-7/">documented
the process in great detail</a>.  
</p>
        <blockquote>
          <p>
After rebuilding my trusty T61 with Windows 7 about a week ago, the only device that
was not functioning correctly was the “biometric coprocessor”. I tried installing
the software using ThinkVantage Productivity Center, but this did not work. After
asking google, I found that the device was manufactured by UPEK and that they have
released a Windows 7 driver on their site.
</p>
        </blockquote>
        <p>
Chris’ post is a great reference on <a href="http://www.cgoosen.com/2009/03/lenovo-t61-biometric-device-on-windows-7/">how
to install and configure the Lenovo T61 fingerprint reader in Windows 7</a>. 
Check it out.
</p>
        <img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12fbb58f-5951-4d59-9194-d450cf88fcaa" />
      </body>
      <title>Windows 7, Fingerprints and a T61</title>
      <guid isPermaLink="false">http://www.pringle.net.nz/blog/PermaLink,guid,12fbb58f-5951-4d59-9194-d450cf88fcaa.aspx</guid>
      <link>http://www.pringle.net.nz/blog/PermaLink,guid,12fbb58f-5951-4d59-9194-d450cf88fcaa.aspx</link>
      <pubDate>Thu, 12 Mar 2009 10:27:14 GMT</pubDate>
      <description>&lt;p&gt;
My friend Chris recently took the plunge and installed Windows 7 on his Lenovo T61
notebook.&amp;#160; He had managed to get the fingerprint reader working on it and has &lt;a href="http://www.cgoosen.com/2009/03/lenovo-t61-biometric-device-on-windows-7/"&gt;documented
the process in great detail&lt;/a&gt;.&amp;#160; 
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
After rebuilding my trusty T61 with Windows 7 about a week ago, the only device that
was not functioning correctly was the “biometric coprocessor”. I tried installing
the software using ThinkVantage Productivity Center, but this did not work. After
asking google, I found that the device was manufactured by UPEK and that they have
released a Windows 7 driver on their site.
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
Chris’ post is a great reference on &lt;a href="http://www.cgoosen.com/2009/03/lenovo-t61-biometric-device-on-windows-7/"&gt;how
to install and configure the Lenovo T61 fingerprint reader in Windows 7&lt;/a&gt;.&amp;#160;
Check it out.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.pringle.net.nz/blog/aggbug.ashx?id=12fbb58f-5951-4d59-9194-d450cf88fcaa" /&gt;</description>
      <comments>http://www.pringle.net.nz/blog/CommentView,guid,12fbb58f-5951-4d59-9194-d450cf88fcaa.aspx</comments>
      <category>Lenovo</category>
      <category>Security</category>
      <category>Windows 7</category>
    </item>
  </channel>
</rss>