<?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>Pelago :: web design &#38; development blog &#187; vpn</title>
	<atom:link href="http://www.pelagodesign.com/blog/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pelagodesign.com/blog</link>
	<description>Santa Barbara Web Design and Web Development Blog on the web world and other randoms</description>
	<lastBuildDate>Wed, 09 Mar 2011 16:31:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Ubuntu Linux: How to setup a VPN connection to a SonicWall router using Openswan and Pre-shared Keys (PSK)</title>
		<link>http://www.pelagodesign.com/blog/2009/05/18/ubuntu-linux-how-to-setup-a-vpn-connection-to-a-sonicwall-router-using-openswan-and-pre-shared-keys-psk/</link>
		<comments>http://www.pelagodesign.com/blog/2009/05/18/ubuntu-linux-how-to-setup-a-vpn-connection-to-a-sonicwall-router-using-openswan-and-pre-shared-keys-psk/#comments</comments>
		<pubDate>Mon, 18 May 2009 19:27:59 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Creative Engineering]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openswan]]></category>
		<category><![CDATA[psk]]></category>
		<category><![CDATA[sonicwall]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.pelagodesign.com/blog/?p=403</guid>
		<description><![CDATA[Contents Background Configuring the Sonicwall Router Installing Openswan Configuring Openswan Starting and stopping the VPN connection References Background Pelago is a web design and development agency in Santa Barbara, California. Since our humble beginnings in August of 2000, we&#8217;ve seen the Internet landscape evolve exponentially in the last nine years. Our most current challenge as [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 40%; margin: 23px 0 11px 9px; padding: 13px 17px 11px 5px; background-color: #EFEFE6; border: 1px solid #CCCCBB;">
Contents</p>
<ul>
<li><a href="#background" title="Background">Background</a></li>
<li><a href="#configuringsonicwall" title="Configuring the SonicWall Router">Configuring the Sonicwall Router</a></li>
<li><a href="#installingopenswan" title="Installing Openswan">Installing Openswan</a></li>
<li><a href="#configuringopenswan" title="Configuring Openswan">Configuring Openswan</a></li>
<li><a href="#startingstopping" title="Starting and stopping the VPN connection">Starting and stopping the VPN connection</a></li>
<li><a href="#references" title="References">References</a></li>
</ul>
</div>
<p><a name="background"></a><br />
<h2>Background</h2>
<p>Pelago is a web design and development agency in Santa Barbara, California. Since our humble beginnings  in August of 2000, we&#8217;ve seen the Internet landscape evolve exponentially in the last nine years. Our most current challenge as a creative and engineering agency is in embracing diversity in platforms and the inevitable shift towards the remote office. We use three different operating systems &mdash; Windows, OS X and Linux &mdash; on a daily basis. In addition to developing web-based project management software that is compatible with all three platforms, our designers and developers rely on them  inside and outside of the office. Tunneling through the firewall from outside the office was our next requirement for embracing a diverse and distributed remote office. </p>
<p>Our SonicWall router makes it easy enough to establish a VPN connection using Windows. There is a client that can be downloaded from the SonicWall web site. What about other operating systems? Our developers often use Ubuntu Linux from home and required a way to VPN into the office. Once established, a VPN connection allows access to development servers, remote desktops, and other network resources inside the firewall; so you can see why it would be essential for the remote office.</p>
<p>The problem, as most Linux users out there already know, is that setting up a VPN connection in Ubuntu Linux is not very easy. After much trial and error, here is how we got the VPN working on Ubuntu Linux using Openswan.</p>
<p><a name="configuringsonicwall"></a><br />
<h2>Configuring the SonicWall Router</h2>
<p>Login to your SonicWall router admin and make the following adjustments to the VPN settings.</p>
<ol>
<li style="margin: 6px 0 14px 0;">
<strong>Click on the VPN link and note the Unique Firewall Identifier for your SonicWall router. You will need it later for the value <code>sonicwall.unique.identifier</code>.</strong><br />
<img src="http://www.pelagodesign.com/blog/wp-content/uploads/2009/05/vpn_settings1.png" alt="SonicWall VPN Settings" title="SonicWall VPN Settings" width="640" height="372" class="size-full wp-image-406" />
</li>
<li style="margin: 6px 0 14px 0;">
<strong>Under VPN Policies, create or edit the &#8216;GroupVPN&#8217; policy.</strong>
</li>
<li style="margin: 6px 0 14px 0;"><strong>Click on the General tab and set the following:</strong><br />
<img src="http://www.pelagodesign.com/blog/wp-content/uploads/2009/05/vpn_general.png" alt="SonicWall VPN General Settings " title="SonicWall VPN General Settings " width="625" height="326" class="size-full wp-image-408" /></p>
<ul>
<li>IPSec Keying Mode: IKE using Preshared Secret</li>
<li>Shared Secret: shared.secret.key <em>(enter your secret key here)</em></li>
</ul>
<ul>
</ul>
</li>
<li style="margin: 6px 0 14px 0;">
<strong>Click on the Proposals tab and set the following:</strong><br />
<img src="http://www.pelagodesign.com/blog/wp-content/uploads/2009/05/vpn_proposals.png" alt="SonicWall VPN Proposals Settings" title="SonicWall VPN Proposals Settings" width="625" height="525" class="size-full wp-image-411" /></p>
<ul>
<li>IKE (Phase 1) Proposal<br />
		DH Group: Group 5<br />
		Encryption: 3DES<br />
		Authentication: SHA1
        </li>
<li>Ipsec (Phase 2) Proposal<br />
		Protocol: ESP<br />
		Encryption: 3DES<br />
		Authentication: SHA1
        </li>
<li>Enable Perfect Forward Secrecy <em>(checked)</em><br />
		DH Group: Group 5
        </li>
</ul>
</li>
</ol>
<p><a name="installingopenswan"></a><br />
<h2>Installing Openswan</h2>
<p>If you are using Ubuntu, open a terminal window and type in:<br />
<code>sudo apt-get install openswan</code><br />
The install will ask you a few questions about how you want to set it up. Select the suggested default for each step. This will install Openswan and create the ipsec.conf and ipsec.secrets configuration files.</p>
<p><a name="configuringopenswan"></a><br />
<h2>Configuring Openswan</h2>
<p><strong>Add the following connection parameters to your /etc/ipsec.conf file:</strong><br />
<code>conn sonicwall<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type=tunnel<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left=192.168.2.31 #your IP<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;leftid=@GroupVPN<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;leftxauthclient=yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;right=xxx.xxx.xxx.xxx #IP address of your sonicwall router<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rightsubnet=192.168.1.0/24 #gateway IP for your LAN. This will work for most<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rightxauthserver=yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rightid=@sonicwall.unique.identifier<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyingtries=0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pfs=yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aggrmode=yes<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;auto=add<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;auth=esp<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esp=3DES-SHA1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ike=3DES-SHA1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;authby=secret<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#xauth=yes<br />
</code></p>
<p>Update: After upgrading to Ubuntu 9.10 a few things changed in the conf file. First, I had to comment out &#8216;xauth=yes&#8217; as it was throwing an error.</p>
<p><strong>Add the following line to your /etc/ipsec.secrets file</strong><br />
<code>@GroupVPN @sonicwall.unique.identifer : PSK "shared.secret.key"</code></p>
<p><a name="startingstopping"></a><br />
<h2>Starting and stopping the VPN connection</h2>
<p><strong>Starting ipsec and opening the VPN connection</strong><br />
<code>sudo ipsec setup &ndash;&ndash;start<br />
sudo ipsec auto &ndash;&ndash;add sonicwall <em>(note: if you change the configuration files, you'll need to run 'sudo ipsec auto &ndash;&ndash;replace sonicwall' to reload the file)</em><br />
sudo ipsec whack &ndash;&ndash;name sonicwall &ndash;&ndash;initiate<br />
</code><br />
<strong>Closing the VPN connection and stopping ipsec</strong><br />
<code>sudo ipsec whack &ndash;&ndash;name sonicwall &ndash;&ndash;terminate<br />
sudo ipsec setup &ndash;&ndash;stop<br />
</code></p>
<p><a name="references"></a><br />
<h2>References</h2>
<p>The following links were useful for getting the VPN connection up and running on Ubuntu Linux:<br />
<strong>Openswan wiki page for SonicWall routers:</strong><br />
<a href="http://wiki.openswan.org/index.php/Openswan/SonicWall" title="Openswan wiki page for SonicWall routers">http://wiki.openswan.org/index.php/Openswan/SonicWall</a><br />
<strong>SonicWall PDF instructions for using Agressive Mode and IKE with Pre-shared Keys</strong><br />
<a href="http://www.sonicwall.com/downloads/SonicOS_Enhanced_to_Openswan_Using_Aggressive_Mode_IKE_with_PreShared_key.pdf" title="SonicWall PDF instructions for using Agressive Mode and IKE with Pre-shared Keys">http://www.sonicwall.com/downloads<wbr />/SonicOS_Enhanced_to_Openswan_Using_Aggressive_Mode_IKE_with_PreShared_key.pdf<br />
</a></p>
<p><strong><em>11/05/2010 Update:</em></strong><br />
We are now on our third SonicWall Router. The original 170 didn&#8217;t have enough features for us. It&#8217;s replacement, the 2040 recently went belly up. We are now running on the 2400. When we made the upgrade the Linux VPN stopped working. Checking the logs on the 2400 revealed a message stating the IDs did not match during Phase 1 IKE. It took some googling to figure out but the fix was to change the leftid so that it matched the name of the security policy. In this case, GroupVPN:<br />
<code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;leftid=@GroupVPN<br />
</code></p>
<p>Another update you can make to the above configuration is to add the following lines to your configuration to allow VPN access from any IP:</p>
<p>Add interfaces<br />
<code><br />
config setup<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interfaces=%defaultroute</p>
<p>conn sonicwall<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left=%defaultroute<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelagodesign.com/blog/2009/05/18/ubuntu-linux-how-to-setup-a-vpn-connection-to-a-sonicwall-router-using-openswan-and-pre-shared-keys-psk/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
		<item>
		<title>Print to local computer over VPN</title>
		<link>http://www.pelagodesign.com/blog/2007/09/19/print-to-local-computer-over-vpn/</link>
		<comments>http://www.pelagodesign.com/blog/2007/09/19/print-to-local-computer-over-vpn/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 04:33:33 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Creative Engineering]]></category>
		<category><![CDATA[it]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.pelagodesign.com/blog/2007/09/19/print-to-local-computer-over-vpn/</guid>
		<description><![CDATA[Surprisingly, for the first time today I needed to print to my local computer at home from a program at work over our VPN. After doing a little digging I found someone with the same problem at TechRepublic who recommended Printer Anywhere. I just installed it and it worked like a champ. In fact, you [...]]]></description>
			<content:encoded><![CDATA[<p>Surprisingly, for the first time today I needed to print to my local computer at home from a program at work over our VPN.  After doing a little digging I found <a href="http://techrepublic.com.com/5208-6230-0.html?forumID=101&#038;threadID=220671&#038;messageID=2316925" target="_blank" title="print to local computer over VPN">someone with the same problem at TechRepublic</a> who recommended <strong>Printer Anywhere</strong>.  I just installed it and it worked like a champ.  In fact, you can print to any printer that has Printer Anywhere installed on both computers.  A pretty cool little product.</p>
<p><a href="http://www.printeranywhere.com/download.sdf" target="_blank" title="Printer Anywhere">Learn more or download Printer Anywhere here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelagodesign.com/blog/2007/09/19/print-to-local-computer-over-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

