<?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>madnet.ch - Rolf Klemenz &#187; vpn</title>
	<atom:link href="http://www.madnet.ch/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madnet.ch</link>
	<description>because technology matters</description>
	<lastBuildDate>Thu, 06 Oct 2011 19:02:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setup a VPN between Mac OS X 10.5 and an iPhone over a Netopia 3346 from Bluewin</title>
		<link>http://www.madnet.ch/2009/08/30/setup-a-vpn-between-mac-os-x-10-5-and-an-iphone-over-a-netopia-3346-from-bluewin/</link>
		<comments>http://www.madnet.ch/2009/08/30/setup-a-vpn-between-mac-os-x-10-5-and-an-iphone-over-a-netopia-3346-from-bluewin/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 12:38:31 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bluewin]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[netopia]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.madnet.ch/?p=353</guid>
		<description><![CDATA[Took me quite some time but, finally I managed to get it up-and-running: My personal VPN, connecting my iPhone and my home network. This post outlines the most important things. <a href="http://www.madnet.ch/2009/08/30/setup-a-vpn-between-mac-os-x-10-5-and-an-iphone-over-a-netopia-3346-from-bluewin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Took me quite some time but, finally I managed to get it up-and-running: My personal VPN, connecting my iPhone and my home network. This post outlines the most important things.</p>
<p>Your Mac OS X has all the capabilities built-in to setup a secure VPN:</p>
<ul>
<li>racoon (ipsec)</li>
<li>vpnd (l2tp/pptp tunnelling)</li>
<li>pppd (connection)</li>
</ul>
<p><br/><br />
The only difference to Mac OS X Server is that there&#8217;s no GUI for a simple configuration. </p>
<h3>VPN Server Set-up</h3>
<p>There&#8217;s where iVPN comes handy.<br />
It&#8217;s straight forward to use and self-explaining. iVPN maintains a valid configuration file for vpnd <code>(/Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist)</code> and takes care of your <code>chap.secrets</code> and <code>user.plist</code> (both in <code>/etc/ppp</code>).<br />
<em>Versions above 2.4 cost something — but you can use the old 2.4 release (<a href="http://the.0gravity.co.uk/universe/apple/osx/leopard/vpnserver/iVPN-2.4b.zip">Download here</a>)<br />
because you only need it for the initial set-up.<br />
</em><br />
The only thing to do after you created your config with iVPN 2.4 is to <code>chmod 600 /etc/ppp/*</code> to protect the plain text passwords. </p>
<p>To start your vpn, you can use either iVPN or simply call <code>vpnd</code> from your terminal.</p>
<h3>Client Set-up</h3>
<p>Now configure your iPhone to use L2TP/IPsec and run a local test on your wireless LAN. Use the same values like before&#8230; Works? Good, then proceed.</p>
<h3>Netopia Router/Firewall/NAT Config</h3>
<p>Put your netopia to &#8216;expert mode&#8217;. Goto configuration->NAT/Games. </p>
<p>The Netopia box needs to have the following ports forwarded to your VPN server:<br />
<div id="attachment_356" class="wp-caption alignnone" style="width: 310px"><a href="http://www.madnet.ch/wp-content/uploads/Bild-2.png" rel="lightbox"><img src="http://www.madnet.ch/wp-content/uploads/Bild-2-300x173.png" alt="Netopia Port Forwards" title="Netopia config" width="300" height="173" class="size-medium wp-image-356 colorbox-353"/></a><p class="wp-caption-text">Netopia Port Forwards</p></div></p>
<p>&#8220;L2TP&#8221; is a manual UDP Port 4500 forward<br />
&#8220;L2TP Traffic&#8221; is a manual UDP Port 1701 forward </p>
<p>Now configure your iPhone to use your public IP address and try to connect. </p>
<p>On your VPN server you should see all activity in the log file <code>/var/log/ppp/vpnd.log</code></p>
<p>I&#8217;ve chosen to use L2TP/IPsec because it is more secure.<br />
PPTP is basically supported as well, but I did not get it to run and I didn&#8217;t want to spend more time on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2009/08/30/setup-a-vpn-between-mac-os-x-10-5-and-an-iphone-over-a-netopia-3346-from-bluewin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

